Need cycling banner javascript code

Discussion in 'JavaScript' started by kirandix, Jun 8, 2012.

  1. #1
    I need Need cycling banner javascript code, i have a single ad placement in my site of 300x250 and i want to place adhitz & yieldads in 1 banner. thats why i need the subject script..every visit the banner auto cycle to next benner.
     
    kirandix, Jun 8, 2012 IP
  2. DevSwift

    DevSwift Peon

    Messages:
    103
    Likes Received:
    1
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Should be pretty simple... create 2 divs, one with each ad code. CSS style one to be hidden. Using JS, you can use setTimeout function to disable one, enable the other, and set another JS timer, to make a continous rotating loop.
     
    DevSwift, Jun 25, 2012 IP
    Unni krishnan likes this.
  3. Irfi0009

    Irfi0009 Banned

    Messages:
    17,584
    Likes Received:
    33
    Best Answers:
    1
    Trophy Points:
    48
    #3
    function this(){ var a = new Array(3,2,2,3,4,1); var b = new Array(1,2,2,1,1,2); var c = new Array(34,21,20,12,30,25); for (k = 0; k
     
    Irfi0009, Jul 11, 2012 IP