setTimeout() without alert

Discussion in 'JavaScript' started by jacka, Jan 17, 2008.

  1. #1
    Hi

    Our website has photos that when mouse goes over it, it gets enlarged.

    And when that image is clicked a new page is loaded with a set of new photos which are also clickable and can also be enlarged when the mouse goes over them.

    Now the problem I am having is when the image from first page is clicked, the second page images are obscured by the enlarged image of the 2nd page image.
    This happens because when some one clicks the first image of the first page, the cursor stay in the same place and the image of the 2nd page is automatically enlarged, thereby obscuring the remaining two small images.

    now what (I think) I need is a small delay after the second page loads, so that the visitor can see the available clickable images before it gets enlarged.

    I have looked into setTimeout() but I don't want any alert messages to appear, and it won't work without it. (I think)

    I hope I have explained it clearly.

    Any help will be much appreciated.
     
    jacka, Jan 17, 2008 IP
  2. rkquest

    rkquest Well-Known Member

    Messages:
    828
    Likes Received:
    23
    Best Answers:
    0
    Trophy Points:
    140
    #2
    setTimeout() works without alert messages. I use it all the time.
     
    rkquest, Jan 17, 2008 IP