Home » , , » Random Banner Advertise Script Code for Website,Blogspot and Wordpress

Random Banner Advertise Script Code for Website,Blogspot and Wordpress


how to show random adLast week I am thinking about random banner advertise. This will work with page reload system. When you reload a page banner ad automatically changed. This script work with all browser. You can put random ad anywhere, any place even all kinds of Blogger or Wordpress website. Script is very sample, notice below script box, there have three section –


  • Your targeted web address
  • Banner image link
  • You can fix banner width and height

  • Live Demo


    Just Notice Ad Beside Custom Search Engine (Reload three or five time)

    This script completely customizable, by default three random ad will display but you can change ad number by changing below line –
    var how_many_ads = 3
    And add an extra script like below –
    if (ad==4) { txt=""; url="http://www.allursolve.com"; alt="downloadbyresume.com"; banner="http://i1080.photobucket.com/albums/j340/allursolve/BASE-DBR-ad--240-100.png"; width="240"; height="100"; }
    If you want to put default script (three random banner ad show then no need to add any additional script. I suggest you, without knowing script no need to add additional ad script. Just add below code (for blogger you can input this script inside template {for advance users) or add a “HTML/JavaScript” widget.

    Here is Overall Code –

     

    <script language="JavaScript">

    var how_many_ads = 3;
    var now = new Date()
    var sec = now.getSeconds()
    var ad = sec % how_many_ads;
    ad +=1;
    if (ad==1) {
    txt="";
    url="http://www.bpl.allursolve.com";
    alt="watch all kinds of live cricket";
    banner="http://i1080.photobucket.com/albums/j340/allursolve/portable-software-240-100.png";
    width="240";
    height="100";
    }
    if (ad==2) {
    txt="";
    url="http://www.movie.allursolve.com";
    alt="more than thousand movie for your watch and download";
    banner="http://i1080.photobucket.com/albums/j340/allursolve/downloadbyresume-240-100.png";
    width="240";
    height="100";
    }
    if (ad==3) {
    txt="";
    url="http://www.allursolve.com";
    alt="best tutorial site";
    banner="http://i1080.photobucket.com/albums/j340/allursolve/BASE-DBR-ad--240-100.png";
    width="240";
    height="100";
    }
    document.write('<center>');
    document.write('<a href=\"' + url + '\" target=\"_blank\">');
    document.write('<img src=\"' + banner + '\" width=')
    document.write(width + ' height=' + height + ' ');
    document.write('alt=\"' + alt + '\" border=0><br>');
    document.write('<small>' + txt + '</small></a>');
    document.write('</center>');

    </script>

    Just change your targeted web address, banner image link and alternate image text.

    url="http://www.bpl.allursolve.com"; alt="watch all kinds of live cricket"; banner="http://i1080.photobucket.com/albums/j340/allursolve/portable-software-240-100.png"; width="240"; height="100";
    Hope you will enjoy new banner ad service, less space but best facility. If anybody feel problem about this code don’t be hesitated to contact with me.


     

    Share this article :

    0 comments:

    Post a Comment

    THANKS FOR YOUR CO-OPERATION:

     
    Copyright © 2008-2015. Deshi Tunes:: Your most important blogging platform for Tips and Tricks... - All Rights Reserved
    Template Modify by DTunes Apps