Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New Coder
    Join Date
    Apr 2009
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Switching .gif banners . . .

    I run animated .gif banners on my website and I would like to be able to have a couple set-up to use the same spot, but run each one at different times. At this time, I go into the code and comment out one and uncomment the other , voila done.

    How could I have them switch running every few minutes, so a user would end up seeing them both. I have seen it done on some sites and alot of sites offer shared banner time. How it this done? Thanks

    JD in KC

    http://kcHamRadio.com

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    You could do it with javascript or a server side language. A server side language wouldn't depend on javascript being enabled. What server side languages does your host support? Does it support php?

    What I can tell you is html/css won't be able to do what you want.
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #3
    New Coder
    Join Date
    Apr 2009
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I'm running a vBulletin Forum (like this one) and yes of course, PHP is supported, Thanks

  • #4
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Well how exactly would want them switching? Once every 5 minutes the user is on the site or would you want it to be random? Or switch on every page load?
    ||||If you are getting paid to do a job, don't ask for help on it!||||

  • #5
    New Coder
    Join Date
    Apr 2009
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Every couple of minutes when a user is on the site, or every refresh (page load). I'm not fussy. I assume, once I learn how . . . I can play aroiund with it or even use it for 3 banners, thanks allot . . .


  •  

    Posting Permissions

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