Adsense functionality

Discussion in 'JavaScript' started by promotingspace.net, Jul 31, 2007.

  1. #1
    Hi
    I opened another thread in the PHP forum and got to the point this needs Javascript.
    I searched for a similar script and looked into it. first it defined some values (that the publisher/webmaster had provided) and then it gave a link (probably) to a js file on the server like this:
    <!-- ADS BEGIN -->
    <script type="text/javascript">
    <!-- 
    partnerid = "3832";
    command="1";
    adunitid="7";
    keyword="host";
    bordercolor="0000CC";
    backgroundcolor="FFFFFF";
    titlecolor="0000CC";
    titlecolormouseover="0000CC";
    titleunderline="0";
    desccolor="000000";
    urlcolor="008000";
    hits="4";
    width="336";
    height="280";
    scriptid="45dfddd54564efhu46746"
    _fl="1"
    //-->
    </script> 
    <script id="45dfddd54564efhu46746" type="text/javascript" src="http://domain.com/WebFiles/display_ads.js"> 
    </script> 
    <!-- ADS END -->
    Code (markup):
    Now what will the content of that file (display_ads.js) be? I read some basic Javascript tutorial on tizag.com ( I know it's not enough and i need more tutorial but) cannot come up with direct ideas about that file right now.
    Any help is appreciated
    thanks
     
    promotingspace.net, Jul 31, 2007 IP