How can i do this with javascript

Discussion in 'JavaScript' started by ChristopherLeeMaher.Com, Jul 2, 2010.

  1. #1
    Hello, I have two different javascript files

    1.
    <script type="text/javascript"><!--
    google_ad_client = "pub-7792533794990667";
    /* Ads.ChristopherLeeMaher.Com/728x90/1.html */
    google_ad_slot = "9314436397";
    google_ad_width = 728;
    google_ad_height = 90;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    Code (markup):
    2.
    <script language="javascript" type="text/javascript" src="http://js.mystatichost.com/?width=728&height=90"></script>
    Code (markup):

    How Can i make it so when the page loads its random? like a random image but its a random ad?

    Thanks,
    Chris
     
  2. anands

    anands Well-Known Member

    Messages:
    436
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #2
    I think what you need is a adrotator script. Just google for "javascript adrotator" and you should be able to find it, my friend.
     
    anands, Jul 2, 2010 IP