View Full Version : onclick/onmousedown cross browser issue

08-23-2004, 04:34 PM
I'm having trouble with my menu along the top of the page at http://www.rosscummings.f2s.com/test.htm

I compiled a horizontal menu in macromedia fireworks/dreamweaver and each tab correctly loads the required page (or page refs, as not all links have content yet) into the iframe below it. However, when each tab is clicked it should come to the front and change colour. This all works great in Netscape but only almost works in explorer.

I changed to initial onclick command to onmousedown which now works slightly better in explorer (all still great in Netscape) in that the tab is highlighted and moves to the front when the mouse click is down. However it still pops back to another tab afterwards despite then holding the originally requested page of the clicked tab in the iframe.

So basically the menu executes pages correctly in both browsers when the tabs are clicked but in explorer the menu keeps resetting itself graphically. You can "fool" it into holding the correct tab gaphically if you hold down the mouse button on the tab you want and don't release it until away from the menu if this helps

I'm stumped, any suggestions much appreciated,

Willy Duitt
08-23-2004, 04:51 PM
I don't have an answer to your problem but I followed your link from here (http://www.webdeveloper.com/forum/showthread.php?s=&threadid=42516) and using IE6, your page locked up my browser and I had to end the process thru my task manager and it closed all of my open windows with it....


BTW: Did you take the advise which was previously offered and validate your page?
Perhaps if you did, you may find an obvious reason why your page locked up my browser and someone else would not suffer the same fate as I did, losing the work I had open...

08-24-2004, 12:12 AM
Well, I disabled Javascript and went in. It looks like it was the Java applet that locked your system Willy (I also have Java disabled), because the Javascript is the classic Dreamweaver rollover rubbish. I had the following errors in my Javascript Console
Warning: reference to undefined property d.MM_p
Source File: http://www.rosscummings.f2s.com/test.htm
Line: 11

Warning: deprecated arguments usage
Source File: http://www.rosscummings.f2s.com/test.htm
Line: 12There are good ways to do rollovers. Dreamweavers method isn't one of them. Do a search in these forums for rollovers and read what resources people have linked to.