Can any one plz tell me how to use gtsmobi's ad code on normal php pages? they are offering only JavaScripts and iFrame codes.
How to use gtsmobi ad code on normal PHP pages
Collapse
X
-
like this:
PHP Code:function gtsmobi()
{
$html = <<<EOF
<script type='text/javascript'><!--//<![CDATA[
var m3_u = (location.protocol=='https:'?'https://engine.gtsmobidistributed.com/www/delivery/ajs.php':'http://engine.gtsmobidistributed.com/www/delivery/ajs.php');
var m3_r = Math.floor(Math.random()*99999999999);
if (!document.MAX_used) document.MAX_used = ',';
document.write ("<scr"+"ipt type='text/javascript' src='"+m3_u);
document.write ("?zoneid=747");
document.write ('&cb=' + m3_r);
if (document.MAX_used != ',') document.write ("&exclude=" + document.MAX_used);
document.write (document.charset ? '&charset='+document.charset : (document.characterSet ? '&charset='+document.characterSet : ''));
document.write ("&loc=" + escape(window.location));
if (document.referrer) document.write ("&referer=" + escape(document.referrer));
if (document.context) document.write ("&context=" + escape(document.context));
if (document.mmm_fo) document.write ("&mmm_fo=1");
document.write ("'><\/scr"+"ipt>");
//]]>--></script><noscript><a href='http://engine.gtsmobidistributed.com/www/delivery/ck.php?n=a413f0c7&cb=INSERT_RANDOM_NUMBER_HERE' target='_blank'><img src='http://engine.gtsmobidistributed.com/www/delivery/avw.php?zoneid=747&cb=INSERT_RANDOM_NUMBER_HERE&n=a413f0c7' border='0' alt='' /></a></noscript>
EOF;
return $html;
}
Comment
Comment