Log in

View Full Version : Slashdot Menu with rollover images



DaveS
05-11-2007, 10:28 PM
1) Script Title: Slashdot Menu

2) Script URL (on DD): www.dynamicdrive.com/dynamicindex1/slashdot.htm

3) Describe problem: I have put Slashdot Menu into a template and the pages produced with it work well, with the menu expanding and contracting properly. When I add a rollover image to any of the derived pages, however, the menu contracts and stays contracted until another page (without a rollover image) is opened. This is so for IE and Firefox. I am sure I must be making a well-known mistake; can someone tell me what it is please?

blastup
05-12-2007, 04:49 AM
use. it in css.. don;t use javascript it is slower..

DaveS
05-15-2007, 09:56 PM
use. it in css.. don;t use javascript it is slower..
Thanks. Forgive my ignorance in these matters but do you mean put the rollover commands in a css?

Ictinus
05-15-2007, 11:13 PM
DaveS, this is a bit of a long shot, but...
are your menus contracted by default? and do the pages that contain rollover images have a 'window.onload' event other than the one associated with sdmenu?

If so, it is probably that the second onload is preventing the sdmenu onload from executing.
You may need to have a single onload event load event call what the other onload events were.

slisar
05-16-2007, 12:15 PM
Hi! I noticed the comments in this thread about using the slashdot.org menu that can be expanded. I have a requirement for one of our websites and was wondering if someone could explain how this script works and what i would need to do to implement it in our website.

Steve

DaveS
05-20-2007, 10:10 AM
The menus are contracted by default on the index page but not on any pages thereafter. The code for the rollover is:

<td><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','images/pic2.gif',1)"><img src="images/pic1.gif" width="500" height="297" border="0" id="Image2" /></a></td>

Any ideas?

DimX
05-20-2007, 10:25 AM
Without seeing your problematic page we can't help you.