Jump to content

xDCx

Members
  • Posts

    4
  • Joined

  • Last visited

Posts posted by xDCx

  1. Hey there,I have a big problem...I made some fancy website with javascript, but in firefox it doesn't work when I declare a doctype...As soon as I remove the doctype it just works...<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><td class="menu1" height="18" onMouseOver="menuplus(A1)" onMouseOut="menumin()">var re = 0function menuplus(nr){ A1.style.visibility="hidden"; A2.style.visibility="hidden"; A3.style.visibility="hidden"; re++; (nr).style.visibility="visible";}function menumin(){ re--; setTimeout('test()',500);}function test(nr){ if (re == 0) { A1.style.visibility="hidden"; A2.style.visibility="hidden"; A3.style.visibility="hidden"; }}How can I make this work without removing the doctype declaration?it isn't that onmouseover/onmouse out doesn't work, because when I call the function on a diffrent way it also doesn't work..is it perhaps that firefox doesn't eat changing styles with this doctype, or what?plz help me I'm really confused :blink::):):blink: (yeah that allready happend to me trying :) )

×
×
  • Create New...