Ask Experts Questions for FREE Help !
Ask
    Jakesnake's Avatar
    Jakesnake Posts: 1, Reputation: 1
    New Member
     
    #1

    Jul 10, 2010, 12:07 PM
    How do you make a popup image in html that will close after 5 seconds?
    I have recently developed my website; http://jake-thompson.co.uk but want to have an image that pop's up in the middle of the page that will then automatically close itself in 5 seconds.
    crigby's Avatar
    crigby Posts: 4,343, Reputation: 107
    Outdoor Power Equipment Expert
     
    #2

    Jul 12, 2010, 10:36 AM
    Hi,
    This is not done in HTML. It is done in JavaScript with window.open(). The bad news is that almost any of the current or recent pop-up blockers will block its display. There is a program that is supposed to get around it with what is call a Pop-over.
    Peace,
    Clarke
    slapshot_oi's Avatar
    slapshot_oi Posts: 1,537, Reputation: 589
    Ultra Member
     
    #3

    Jul 12, 2010, 11:36 AM

    Pop-ups are a thing of the past, use a modal window.

    JQuery
    crigby's Avatar
    crigby Posts: 4,343, Reputation: 107
    Outdoor Power Equipment Expert
     
    #4

    Jul 13, 2010, 08:41 AM

    Hi,
    Try this link:
    Modal Image Box
    Also see:
    http://javascript.about.com/library/blmodal.htm
    Though it seems that they require interaction and do not timeout. Know I have seen it done in the past, but cannot remember where.
    Peace,
    Clarke

Not your question? Ask your question View similar questions

 

Question Tools Search this Question
Search this Question:

Advanced Search

Add your answer here.


Check out some similar questions!

How to make an index.html page to... [ 1 Answers ]

Connect with my header file? Scotty13

Create a PC image to html coding [ 1 Answers ]

I want to create images, which are stored in my pc's hard disk, in a web page. For this I want to know the html coding for it. Thanks!

How to put a prompt when there is no image during popup [ 1 Answers ]

Hello! I have a the following code at the head === function popUp(popurl){ var winpops=window.open("","LargeImage","location=no,menubar=no,status=no,directories=no,scrollbars=no,toolbar=no,width=350,height=500"); if (popurl != null) {winpops.document.write("<center><img src= '"+popurl+"'...

How to close all the childwindows(popup window) when closing the parent window [ 3 Answers ]

Hi, all In javascript I need to close all the child windows that I have opened through a parent window Scenario: Here I will be having as many as child window opened and name given to the child window can not be tracked because each will be having a different name, and I am using 70 to...

Html How do I make a search box? [ 1 Answers ]

Hi, and thanks ahead of time. I'm going to have to have a database on my website that can be used with a search engine. But I want to know what I can do using only html if I can. Like if you wanted to look for a park in your area you would just input your zip code, And the park that is closest...


View more questions Search