#1
  1. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    18
    Rep Power
    0

    Unhappy Help! JavaScript Nightmare!


    I have spent four days on this little nightmare. Does anyone have suggestions for a JS newbie?

    The following URL

    http://www.huntartsweb.com/shared/untitled1.shtml

    has a script which activates a rollover. The buttons in the purple area swap images on rollover, and an image in the grey bar under it swaps out for white text.

    The problem is when the mouse is out of the button area why doesn't the text flip the blank image up as the MouseOut state?

    Please help if you can!

    Ryan
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Jun 2001
    Location
    Toronto, Ontario, Canada
    Posts
    631
    Rep Power
    14
    You have two different sources. When the page loads, this is the source for your 'remote' image:
    infobarStatic.src = "../images/infobar_image.gif"

    Then in the javascript you have:
    infobarStatic.src = "/images/infobar_image.gif"

    Make sure your paths are right.
  4. #3
  5. No Profile Picture
    Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Posts
    18
    Rep Power
    0
    I tried unifying the paths.

    first try:

    http://www.huntartsweb.com/shared/untitled1.shtml

    second try;

    http://www.huntartsweb.com/shared/untitled2.shtml

    neither seems to work.

    Any suggestions?

    ryan
  6. #4
  7. No Profile Picture
    Beelzebub
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2001
    Location
    The nether regions...ok, San Diego
    Posts
    164
    Rep Power
    14
    Ryan, your first example...
    http://www.huntartsweb.com/shared/untitled1.shtml
    seems to work perfectly. The text image swaps and then becomes blank on rolloff. Win2K IE6

IMN logo majestic logo threadwatch logo seochat tools logo