Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 6 of 6
  1. #1
    Regular Coder
    Join Date
    Sep 2004
    Posts
    202
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Exclamation HELP PLEASE Image Rollover Problem

    Go here
    http://junenk.home.comcast.net/haffner/index.html

    And view the source...

    You should see an image array for Action A!!!!
    (Action A is the image that does not change when you mouseover.)

    I want to make ActionA change after the five second timeout, but it is not working.

    What is my problem?
    Last edited by NeilKelty; 12-19-2004 at 03:43 PM. Reason: Need help

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    For one, you are using the same global variables names in both this script and your navigation script which are conflicting with each other...

    var the_timeout;
    var index = 0;

    .....Willy

  • #3
    Regular Coder
    Join Date
    Sep 2004
    Posts
    202
    Thanks
    0
    Thanked 0 Times in 0 Posts
    i changed the variables and it still didn't work

    What now....

  • #4
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Try turning on error reporting...

    The name of your array is: ActionA_images = new Array();
    But you have:
    Line 21: actionA_images[0] = new Image();

    Also, you should use: document.images['IMAGE_NAME].src
    Rather than: window.document.IMAGE_NAME.src

    Lastly; there is an error being thrown in your external navigation script: images is null or not an object

    But I am not inclined to open and look thru that file until you at least fix these problems you posted about... I would suggest that you create another example page which only contains the code relavent to the script at hand and get that working before you try adding it to another document which already contains script errors... And do not forget to turn on error reporting...

    .....Willy

  • #5
    Regular Coder
    Join Date
    Sep 2004
    Posts
    202
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by Willy Duitt
    Lastly; there is an error being thrown in your external navigation script: images is null or not an object
    yeah, i couldnt figure that one out. It doesn't seem to be impairing anything so i figured id work on it later. If you can help that would be great!

    and by the way I do have errors on

  • #6
    Regular Coder
    Join Date
    Sep 2004
    Posts
    202
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thanks for all the help


  •  

    Posting Permissions

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