want rotate ad script

Discussion in 'HTML & Website Design' started by bloggersmosaic, Nov 19, 2009.

  1. #1
    hi,
    am looking for script or the code which display banner each time you refresh the page, or every 10 sec it changed ...

    i will be using it on wordpress blog , so if u know a working one please do share.
     
    bloggersmosaic, Nov 19, 2009 IP
  2. tobydawson13

    tobydawson13 Active Member

    Messages:
    645
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    60
    #2
    Maybe you should try searching the Javascript forum :)
     
    tobydawson13, Nov 20, 2009 IP
  3. tdotn

    tdotn Peon

    Messages:
    117
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    try searching on 'hotscripts.com' under ad rotator
     
    tdotn, Nov 20, 2009 IP
  4. fourgee

    fourgee Peon

    Messages:
    42
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I am not sure if I can post links yet, but you may want to check out this: blog.taragana.com/index.php/archive/wordpress-plugin-adrotator-rotate-your-ads-including-adsense-dynamically/
     
    fourgee, Nov 20, 2009 IP
  5. bloggersmosaic

    bloggersmosaic Active Member

    Messages:
    512
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    58
    #5
    Thanks guys
     
    bloggersmosaic, Nov 27, 2009 IP
  6. taminder

    taminder Peon

    Messages:
    581
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #6
    if you want it to change every 10 seconds, you have to use JavaScript.
    you can reload the page every 10 seconds with a different ad, but that would mess up the user experience and I'm sure you wouldn't want that =x
     
    taminder, Nov 27, 2009 IP
  7. inanobot

    inanobot Peon

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    banner_ads.txt:
    <a href="http://www.ipower.vn" target="_top" >
    <img src="http://www.ipower.vn/images/ipower_468x60.gif" width="468" height="60" alt="iPower Community - Cộng đồng Sức Mạnh Công Nghệ" border="0"></a>
    ~
    <a href="http://www.ipower.vn" target="_top" >
    <img src="http://www.ipower.vn/images/ipower_468x60.gif" width="468" height="60" alt="iPower Community - Cộng đồng Sức Mạnh Công Nghệ" border="0"></a>
    ~
    <a href="http://www.ipower.vn" target="_top" >
    <img src="http://www.ipower.vn/images/ipower_468x60.gif" width="468" height="60" alt="iPower Community - Cộng đồng Sức Mạnh Công Nghệ" border="0"></a>
    ~
    <a href="http://www.ipower.vn" target="_top" >
    <img src="http://www.ipower.vn/images/ipower_468x60.gif" width="468" height="60" alt="iPower Community - Cộng đồng Sức Mạnh Công Nghệ" border="0"></a>
    Code (markup):
    ad_rotator.php:
    <center>
    <?php
    
    $fcontents = join ('', file ('banner_ads.txt'));
    $s_con = split("~",$fcontents);
    
    $banner_no = rand(0,(count($s_con)-1));
    echo $s_con[$banner_no];
    ?>
    </center>
    PHP:
     
    inanobot, Nov 28, 2009 IP