Click to See Complete Forum and Search --> : rollovers somehow cause a page refresh


rdhs100
09-23-2003, 01:42 PM
We're nearing the end of a website project, but unfortunately a piece of code that I've bolted on has thrown up an annoyance in IE.

On pages with a large amount of content, a mouse rolling over a link causes some sort of page jump that scrolls the page immediately back to the top. This occurs even with very links that have no "onmouseover" events specified!

This is clearly an unacceptable annoyance because it means certain links low down on a page cannot be accessed.

Now, because I've just taken a couple of existing codes from the web, and modified them for my purposes... I'm in way over my head on how to correct this problem. Its only now we've started adding content that the problem has become apparent. If I had spotted it earlier I would have found an alternative design for the site. Too late for that now!

www.wrigleyssolicitors.com/home/index.php

And the offending script is, I reckon, either:
www.wrigleyssolicitors.com/scripts/clamshell.js
or
www.wrigleyssolicitors.com/scripts/findDOM.js

Problem only seems to exist in IE5.

Regards,

Rob

Khalid Ali
09-23-2003, 03:41 PM
Could you be kind enough to let us know which link is causing this....

rdhs100
09-24-2003, 08:33 AM
The links causing the problem are only those in the navigation menus to the right of each page. I think I was wrong about the problem occurring on links that do not also have an "onmouseover" event specified.

I've been using the 'clamshell' script to allow inline showing and hiding of content within a <span> tag, when the mouse rolls over the items in the menu.

I had to use this method because we needed the menu items to be updateable through the PHP content management system... and I had to use inline <span> tags to do it, so the menus would change size in accordance with the number of menu items there were... (phew!). As I said, this is really at the limit of my javascript knowledge, and I have a notion its something fairly straight-forward, but I simply cannot percieve.

Many thanks.

Rob