SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Guru laflair13's Avatar
    Join Date
    Nov 2004
    Location
    TN
    Posts
    626
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Countdown Clock for website.

    Basically I want to add a 30 second countdown timer to my site. Is there anyway to do it as well as add css to it? And if possible a pop up happens when the time runs out.

    Here you can see what I have but it just doesnt look right.

    Code:
    http://wolphewebdesign.com/Clients/schroe222/
    Any help would be very appreciated.
    Thanks In Advance

    David

  2. #2
    Follow Me On Twitter: @djg gold trophysilver trophybronze trophy Dan Grossman's Avatar
    Join Date
    Aug 2000
    Location
    Philadephia, PA
    Posts
    20,580
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by laflair13 View Post
    Is there anyway to do it as well as add css to it?
    Style the div the time is in (#timer) as you did the rest of the page

    Quote Originally Posted by laflair13 View Post
    And if possible a pop up happens when the time runs out.
    Where you have the alert() call to pop up the dialog, replace that with whatever you want to happen when the time runs out. Use window.open() to open a new window. To do an overlay type thing (a div that floats on top of the page), first create the overlay in your HTML as normal, then set its style to display:none. Have your javascript change that to display:block to show it.


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
  •