As********@gmail.com wrote:
http://insideout.fcsjobshop.co.uk/cart/search.asp
If you follow this link, click 'Search jobs...', you'll see there are
'more info...' buttons against each job, this changes the 'InnerHTML'
of the display text to a longer version of the same. for some reason
the expanding of the text makes the whole page go screwy.
It doesn't happen on the first 'more info...' button so maybe theres
something about that, that causes it, dunno. absolutely stumped.
Cheers.
AsciiSmoke
Firefox reports use of "MainMenu" in global scope rather than as an
ID (this is an IE-ism). The comp.lang.javascript FAQ suggests a fix:
<URL:http://jibbering.com/faq/#FAQ4_15>
There also seems to be no point in using innerHTML to change the
description. Why change the display property of the div containing
the extended description to 'none' onload. Then when the user clicks
'More information...' change it to ''.
That way users can show/hide whatever, you don't need an explicit
function to hide and show each individual extended description and
non-JavaScript users can see the descriptions too.
--
Rob