1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Close After 20 Seconds

Discussion in 'HTML & JavaScript' started by hwolfpack6, Apr 27, 2009.

  1. hwolfpack6

    hwolfpack6 BANNED BANNED

    Joined:
    Dec 11, 2008
    Messages:
    646
    Likes Received:
    175
    Hi,
    I'm using this script:

    Code:
    hxxp://gwaphic.c0m/code/index.php?id=3
    It's called Leightbox. I'm sure this is a relatively easy thing to code.

    I just need the div: "pop01" to close after 20 seconds. It opens up automatically. I just want it to close after 20 seconds allowing users to access the content.

    Code:
    w3.epicsodes.info/test/index.html
    EDIT: Okay, using Google I got it to disappear, but the dark grey background still covers the page. That didn't disappear unfortunately.

    Code:
    class="lbAction" rel="deactivate"
    That's what makes the gateway deactivate (when put in an <a> tag)...I need to get a way to make that happen after 6 seconds...
     
    Last edited: Apr 27, 2009
  2. 00CivicEX

    00CivicEX Jr. VIP Jr. VIP Premium Member

    Joined:
    Mar 3, 2009
    Messages:
    293
    Likes Received:
    214
    have you tried
    Code:
    <BODY onLoad="setTimeout('window.close()', 20000)">
     
  3. hwolfpack6

    hwolfpack6 BANNED BANNED

    Joined:
    Dec 11, 2008
    Messages:
    646
    Likes Received:
    175
    That didn't do anything. I need a way to close the grey transparent background and allow people to click links again.