SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot pannick's Avatar
    Join Date
    Aug 2003
    Location
    Florida
    Posts
    191
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Banner rotation based on time of day

    I am looking for a javascript or asp script that will rotate a banner on my companies website based on time of day. It is a radio site so I would like it to be able to put the banners on like one the air Mike's banner between 7-10 am and Bill's banner bewteen 10am - 1pm.

    I am not good with either asp or jscript, only html but any tips would be appreciated.

    thanks
    jp

  2. #2
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,786
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Probably best done with ASP rather than jscript as then you are not relying on the time set on your visitors' computers being correct.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">


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
  •