PDA

View Full Version : How to use JS in vbulletin?


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 ("&amp;what=zone:14");
document.write ("&amp;exclude=" + document.phpAds_used);
if (document.referrer)
document.write ("&amp;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&amp;n=a98dabdb' border='0' alt=''></a></noscript> __________________________________________________ _______

How shall I do it?

Marco van Herwaarden
05-20-2005, 07:11 AM
I think your best choice would be to include it into the SHOWTHREAD template.

pengpeng
05-20-2005, 02:32 PM
I put these js code into Showthread template,but AD can't display.
Help me~

Help me~

pengpeng
05-22-2005, 11:30 PM
Did any one know this?