SitePoint Sponsor

User Tag List

Results 1 to 15 of 15

Hybrid View

  1. #1
    Headed Home! KM Richards's Avatar
    Join Date
    Feb 2007
    Location
    I'm right Here!
    Posts
    707
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is JS best for ad banner rotation?

    I'm in need of a good, reliable ad banner rotation setup where I can add/delete banners (and their links) remotely because I'm going to use it on over 100 web pages.

    My question is: is java script the best way to go?
    If so, can anyone provide me with a link to a good script I can try?

    I don't need to track how many clicks, so a simple script would work fine.

  2. #2
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Javascript is THE way. You can't rotate them after the page has loaded without javascript. Someone asked pretty much the same last week on another thread that I replied to. You basically need to look into javascripts setInterval() method. I posted some code for it, so you might want to find that thread.

    Since you're going to use this on so many pages, it might be worth writing a script on the server side that serves the correct javascript array of images you want to rotate based on what page the banner will be on.

  3. #3
    Headed Home! KM Richards's Avatar
    Join Date
    Feb 2007
    Location
    I'm right Here!
    Posts
    707
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I don't write scripts. I just copy and paste them and then change only what's needed so they will work on my site.

    That's why I posted so I can FIND a good script to use.

  4. #4
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Sounds more like you are expecting other to find it for you. Try google.

  5. #5
    Headed Home! KM Richards's Avatar
    Join Date
    Feb 2007
    Location
    I'm right Here!
    Posts
    707
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Pepejeria View Post
    Sounds more like you are expecting other to find it for you. Try google.
    I'm sorry, I thought I might find someone here who had tried a specific script that they could recommend because it worked good for them.

    So sorry to have ticked you off, mate


    Quote Originally Posted by Raffles View Post
    Well, you should be able to FIND the script based on the information I gave you, setInterval specifically. And like I said, I replied to a thread last week where I posted some code that works. In this javascript forum. You should be able to find it.
    Can't find it. A link would be helpful...

  6. #6
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Well, you should be able to FIND the script based on the information I gave you, setInterval specifically. And like I said, I replied to a thread last week where I posted some code that works. In this javascript forum. You should be able to find it.

  7. #7
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    That's odd. It's on the second page of this forum. The title includes the words "banner" and "rotation".

    http://www.sitepoint.com/forums/showthread.php?t=468809

  8. #8
    Headed Home! KM Richards's Avatar
    Join Date
    Feb 2007
    Location
    I'm right Here!
    Posts
    707
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's not going to work for me

  9. #9
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    That's why I wrote the second paragraph in my first post. How do you intend to do whatever it is you want to do "remotely"?

  10. #10
    Headed Home! KM Richards's Avatar
    Join Date
    Feb 2007
    Location
    I'm right Here!
    Posts
    707
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alrighty, thanks anyway

  11. #11
    Headed Home! KM Richards's Avatar
    Join Date
    Feb 2007
    Location
    I'm right Here!
    Posts
    707
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Does anyone know of any other forums where one might get some recommendations?

  12. #12
    code ninja hamstu's Avatar
    Join Date
    Nov 2002
    Location
    Montréal, Canada
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You seem to know what you want, have you done some thorough searching?

    This is a very simple type of script, so don't expect everyone to have suggestions on what to use. Many probably write their own.

  13. #13
    Headed Home! KM Richards's Avatar
    Join Date
    Feb 2007
    Location
    I'm right Here!
    Posts
    707
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Looks like I need to find another forum where folks are willing to help.
    Thanks anyway.

  14. #14
    code ninja hamstu's Avatar
    Join Date
    Nov 2002
    Location
    Montréal, Canada
    Posts
    375
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by KM Richards View Post
    Looks like I need to find another forum where folks are willing to help.
    Thanks anyway.
    We did our best to help.

    Don't expect everything to be handed to you on a silver platter.

  15. #15
    Headed Home! KM Richards's Avatar
    Join Date
    Feb 2007
    Location
    I'm right Here!
    Posts
    707
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by hamstu View Post
    We did our best to help.

    Don't expect everything to be handed to you on a silver platter.
    Now, seems like there's more smart alecks than anything else.
    If you don't want to help, just don't reply!

    The one that was suggested won't work for me. Maybe I need to go with cgi

    Sorry that I don't write scripts.
    I just use 'em.


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
  •