csdn_ggmm.js 1.3 KB

12345678910111213141516171819202122232425262728293031
  1. function show_ads_zone(zoneid){
  2. if (!document.phpAds_used) document.phpAds_used = ',';
  3. phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
  4. document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
  5. document.write ("http://z.csdn.net/adjs.php?n=" + phpAds_random);
  6. document.write ("&amp;what=zone:"+zoneid);
  7. document.write ("&amp;charset=utf-8");
  8. document.write ("&amp;exclude=" + document.phpAds_used);
  9. if (document.referrer)
  10. document.write ("&amp;referer=" + escape(document.referrer));
  11. document.write ("'><" + "/script>");
  12. }
  13. function phpads_deliverActiveX(content)
  14. {
  15. document.write(content);
  16. }
  17. function show_ads_zone_gb(zoneid){
  18. if (!document.phpAds_used) document.phpAds_used = ',';
  19. phpAds_random = new String (Math.random()); phpAds_random = phpAds_random.substring(2,11);
  20. document.write ("<" + "script language='JavaScript' type='text/javascript' src='");
  21. document.write ("http://z.csdn.net/adjs.php?n=" + phpAds_random);
  22. document.write ("&amp;what=zone:"+zoneid);
  23. document.write ("&amp;exclude=" + document.phpAds_used);
  24. if (document.referrer)
  25. document.write ("&amp;referer=" + escape(document.referrer));
  26. document.write ("'><" + "/script>");
  27. }