Need An Ad/banner Rotation, That Allows JavaScript & Rotates "x" time

Discussion in 'JavaScript' started by shadav, Oct 3, 2006.

  1. #1
    I've search and searched and come up with nothing! Things that say they should work...DON'T!

    I need an ad/banner rotation script that rotates automatically (not by refreshing the page)
    and it has to be able to handle text ads, image ads, and javascript ads
    basically i'm wanting to place the stupid google referal buttons into a rotation instead of them taking up the whole damn page....but everytime i try and do that it brakes the rotation code!

    So can any one either make one or edit one?

    I have a script that i'm using now but it's not able to handle javascripts
    for an example of the script as is working
    http://www.shadav.com


    **I don't remember where I got this from! You just install the bannerad3.js into your public_html folder
    and then on whatever page and where ever in that page you want the ads to be in a rotation just add this code

    <script type="text/javascript">
    // Banner Ad Rotater v3.02
    // Author: Anarchos > anarchos3@hotmail.com > http://anarchos.xs.mw/bannerad.phtml
    // Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/
    <!--
    myAd = new Banner( 5, 468, 60, "Visit our sponsor", 1, 0 );
    myAd.Ad( "IMAGE LOCATION HERE", "LINK LOCATION HERE", "_blank", "ALT TEXT HERE" );
    myAd.Ad( "http://img.photobucket.com/albums/v490/shadav/CF468x60.gif", "http://www.core-fusion.net", "_blank", "Free, Paid and Reseller Hosting Accounts" );
    myAd.output();
    // --></script>
    Code (markup):
    you can add as many ads as you like just repeat the examples

    is there anyway to tweak this code and the attached file to make it allow javascript ads like googles?
     

    Attached Files:

    shadav, Oct 3, 2006 IP
  2. T0PS3O

    T0PS3O Feel Good PLC

    Messages:
    13,219
    Likes Received:
    777
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why don't you use a real script like phpAdsNew?
     
    T0PS3O, Oct 3, 2006 IP
  3. shadav

    shadav Active Member

    Messages:
    92
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    70
    #3
    i donno lol what does it do and where can i get it from...will it do what i need?
     
    shadav, Oct 3, 2006 IP
  4. motheherder

    motheherder Peon

    Messages:
    21
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Shadav, you might want to try adapt the following code, its available from Codelifter http://www.codelifter.com

    mo

    <html>
    
    <script>
    // (C) 2000 www.CodeLifter.com
    // http://www.codelifter.com
    // Free for all users, but leave in this  header
    // NS4-6,IE4-6
    // Fade effect only in IE; degrades gracefully
    
    // =======================================
    // set the following variables
    // =======================================
    
    // Set slideShowSpeed (milliseconds)
    var slideShowSpeed = 3000
    
    // Duration of crossfade (seconds)
    var crossFadeDuration = 3
    
    // Specify the image files
    var Pic = new Array() // don't touch this
    // to add more images, just continue
    // the pattern, adding to the array below
    
    Pic[0] = 'images/1.jpg'
    Pic[1] = 'images/2.jpg'
    Pic[2] = 'images/3.jpg'
    Pic[3] = 'images/4.jpg'
    Pic[4] = 'images/5.jpg'
    
    // =======================================
    // do not edit anything below this line
    // =======================================
    
    var t
    var j = 0
    var p = Pic.length
    
    var preLoad = new Array()
    for (i = 0; i < p; i++){
       preLoad[i] = new Image()
       preLoad[i].src = Pic[i]
    }
    
    function runSlideShow(){
       if (document.all){
          document.images.SlideShow.style.filter="blendTrans(duration=2)"
    
    document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
          document.images.SlideShow.filters.blendTrans.Apply()
       }
       document.images.SlideShow.src = preLoad[j].src
       if (document.all){
          document.images.SlideShow.filters.blendTrans.Play()
       }
       j = j + 1
       if (j > (p-1)) j=0
       t = setTimeout('runSlideShow()', slideShowSpeed)
    }
    </script>
    
    <body onload="runSlideShow()">
    <table border="0" cellpadding="0" cellspacing="0">
    <tr>
    <td id="VU" width=167 height=267>
    <img src="images/1.jpg" name='SlideShow' width=167 height=267></td>
    </tr>
    </table>
    </body>
    </html>
    Code (markup):
     
    motheherder, Oct 6, 2006 IP
  5. shadav

    shadav Active Member

    Messages:
    92
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    70
    #5
    erm....i'm afraid i wouldn't know where to begin to adapt that code and it seems to be just for displaying images

    i ask again would phpAdsNew do what i need? I've tried to read into it but seems like people don't think it allows you to place google content into it...
     
    shadav, Oct 14, 2006 IP
  6. Jen-

    Jen- Peon

    Messages:
    151
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    I know of a great place for some! They look great and most of them are the best prices I have ever seen. Here's their link. Terrific Content Rotators
    I had the same problem and the only ones I could find were random. All others were under 100.00 or more and these are only 20.00.
     
    Jen-, Oct 17, 2006 IP