pengpeng
05-20-2005, 04:59 AM
How to use JS in vbulletin
I want to add some AD JaveScript code in vB.I hope to these AD will display in post bottom like this codes
__________________________________________________ _____
<script language='JavaScript' type='text/javascript' src='http://www.cpcfan.com/phpAdsNew/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://www.cpcfan.com/phpAdsNew/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:14");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.cpcfan.com/phpAdsNew/adclick.php?n=a98dabdb' target='_blank'><img src='http://www.cpcfan.com/phpAdsNew/adview.php?what=zone:14&n=a98dabdb' border='0' alt=''></a></noscript> __________________________________________________ _______
How shall I do it?
I want to add some AD JaveScript code in vB.I hope to these AD will display in post bottom like this codes
__________________________________________________ _____
<script language='JavaScript' type='text/javascript' src='http://www.cpcfan.com/phpAdsNew/adx.js'></script>
<script language='JavaScript' type='text/javascript'>
<!--
if (!document.phpAds_used) document.phpAds_used = ',';
phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
document.write ("http://www.cpcfan.com/phpAdsNew/adjs.php?n=" + phpAds_random);
document.write ("&what=zone:14");
document.write ("&exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&referer=" + escape(document.referrer));
document.write ("'><" + "/script>");
//-->
</script><noscript><a href='http://www.cpcfan.com/phpAdsNew/adclick.php?n=a98dabdb' target='_blank'><img src='http://www.cpcfan.com/phpAdsNew/adview.php?what=zone:14&n=a98dabdb' border='0' alt=''></a></noscript> __________________________________________________ _______
How shall I do it?