Jump to content

Javascript Doctype Firefox ?bug?


Recommended Posts

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 :) )

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...