Results 1 to 3 of 3

Thread: Time Specified Page Opening?

  1. #1
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Time Specified Page Opening?

    Hello There :)

    I have a question..I really don't know if this is something that can be accomplished or not. Any help or information on this would be greatly appreciated!

    I am looking for a code that will open a page at a specified time.

    Currently, I am changing the /notyet.html link everyday at 7 pm to /17dec.html (or whatever the date may be), to make a new page pop up.

    <TD ALIGN=“LEFT”>17<br>
    <A HREF="javascript:popUp('http://users.igl.net/canusapro/adventcalendar/notyet.html')"> <img BORDER="0" width="100" height="100" src="http://users.igl.net/canusapro/xmas/soldiers.gif"></A>

    Is there any script out there that will do this automatically?

    Thanks :)
    alsocoors

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,924
    Thanks
    43
    Thanked 3,187 Times in 3,151 Posts
    Blog Entries
    12

    Default

    Code:
    <script type="text/javascript">
    
    function timeYet(){
    var today=new Date()
    if (today.getHours()>18)
    popUp('http://users.igl.net/canusapro/adventcalendar/'+today.getDate()+'dec.html')
    else
    popUp('http://users.igl.net/canusapro/adventcalendar/notyet.html')
    }
    
    </script>
    </head>
    <body>
    <A HREF="javascript:timeYet();"> <img BORDER="0" width="100" height="100" src="http://users.igl.net/canusapro/xmas/soldiers.gif"></A> 
    </body>
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    Dec 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you so much John
    You just made my life much easier!

Bookmarks

Posting Permissions

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