xDCx Posted June 29, 2006 Share Posted June 29, 2006 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 (yeah that allready happend to me trying ) Link to comment Share on other sites More sharing options...
xDCx Posted July 1, 2006 Author Share Posted July 1, 2006 No one can help me?http://dcwebdesign.awardspace.com/take a look at it in FF and IE and try the menu...heres the javascript filehttp://dcwebdesign.awardspace.com/nav.jsand you won't need this but just to make it complete..http://dcwebdesign.awardspace.com/style.cssThe menu just doesn't show up in FireFox Link to comment Share on other sites More sharing options...
Err Posted July 1, 2006 Share Posted July 1, 2006 Have you tried some of the CSS menus? Most of then are great on different browsers, and you don't have to have js enabled to view the menu.. it's all css. Here you go:http://www.cssplay.co.uk/menus/example_flyout.html Link to comment Share on other sites More sharing options...
xDCx Posted July 5, 2006 Author Share Posted July 5, 2006 thx a lot Link to comment Share on other sites More sharing options...
xDCx Posted July 6, 2006 Author Share Posted July 6, 2006 Now I get that you can use xml like structures in xhtml+css...it works great :)js went to trashbin Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now