JS统计Flash被网友点击过的代码
2024-09-06 12:42:26
供稿:网友
JS怎样知道Flash广告条被网友点击过?
1、Flash广告条不是我做的,它的链接是写在里面的。
2、我想统计这个Flash被网友点击了多少次。
它由三个JS组成,它是一个广告联盟网站,统计FLASH被点击的应用,可是我不会修改成我的应用,请大家帮看看,谢谢,我的点击统计是 count.asp 请问怎样写一个JS可以进行统计,谢谢
1.js
--------------------------------
var ed_ads_Furl=top.window.location;
var ed_ads_debug;
ed_ads_Url="http://g.ad68.com/";
ed_ads_Id=358;
ed_ads_uId=829;
ed_ads_webtest=0;
ed_ads_rePlace=0;
ed_ads_width=555;
ed_ads_height=80;
ed_ads_class=1;
ed_ads_pic_url="http://253.ad68.com/union/1d/555_80.swf";
ed_ads_open_time="0";
ed_ads_open_class="1";
ed_ads_logo="0";
ed_ads_tempstop="0";
ed_ads_group="";
ed_ads_debug=0;
document.write('<script language="javascript" type="text/javascript" src="2.js"></script>');
document.write('<script language="javascript" type="text/javascript" src="3.js"></script>');
-----------------------------------------
2.js
-----------------------------------------
document.write('<div id=ads_class_show'+ed_ads_Url+' style="position: static; width:'+ed_ads_width+'px; top:0; left:0; visibility: visible; z-index: 1; height: '+ed_ads_height+'px;"><iframe src="'+location_url+'" MARGINWIDTH=0 MARGINHEIGHT=0 HSPACE=0 VSPACE=0 FRAMEBORDER=0 SCROLLING=no WIDTH='+ed_ads_width+' HEIGHT='+ed_ads_height+'></iframe></div>');
------------------------------
3.js
-----------------
var caution = false
function setCookie(name, value, expires, path, domain, secure) {
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "")
if (!caution || (name + "=" + escape(value)).length <= 4000)
document.cookie = curCookie