Results 1 to 7 of 7

Thread: Slashdot Menu with rollover images

  1. #1
    Join Date
    May 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Slashdot Menu with rollover images

    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?

  2. #2
    Join Date
    Oct 2006
    Posts
    22
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Default

    use. it in css.. don;t use javascript it is slower..

  3. #3
    Join Date
    May 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by blastup View Post
    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?

  4. #4
    Join Date
    Apr 2007
    Location
    Australia
    Posts
    76
    Thanks
    0
    Thanked 3 Times in 3 Posts

    Default

    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.

  5. #5
    Join Date
    May 2007
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Help for a complete newbie to Java

    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

  6. #6
    Join Date
    May 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    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?
    Last edited by DaveS; 05-20-2007 at 10:13 AM. Reason: Typo/incompetence

  7. #7
    Join Date
    Jun 2006
    Posts
    182
    Thanks
    0
    Thanked 14 Times in 14 Posts

    Default

    Without seeing your problematic page we can't help you.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •