以下是一段openx生成的广告代码,由于含有"document.write"有什么办法异步的执行吗?
document.MAX_ct0 ='{clickurl}';
var m3_u = (location.protocol=='https:'?'https://ad.etnet.com.cn/www/delivery/ajs.php':'http://ad.etnet.com.cn/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=8&charset=UTF-8");
document.write ('&cb=' + m3_r);
if (document.MAX_used != ',') {
document.write ("&exclude=" + document.MAX_used);
}
document.write ('&charset=UTF-8');
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 ((typeof(document.MAX_ct0) != 'undefined') && (document.MAX_ct0.substring(0,4) == 'http')) {
document.write ("&ct0=" + escape(document.MAX_ct0));
}
if (document.mmm_fo) {
document.write ("&mmm_fo=1");
}
document.write ("'><\/scr"+"ipt>");
document.MAX_ct0 ='{clickurl}';
var m3_u = (location.protocol=='https:'?'https://ad.etnet.com.cn/www/delivery/ajs.php':'http://ad.etnet.com.cn/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=8&charset=UTF-8");
document.write ('&cb=' + m3_r);
if (document.MAX_used != ',') {
document.write ("&exclude=" + document.MAX_used);
}
document.write ('&charset=UTF-8');
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 ((typeof(document.MAX_ct0) != 'undefined') && (document.MAX_ct0.substring(0,4) == 'http')) {
document.write ("&ct0=" + escape(document.MAX_ct0));
}
if (document.mmm_fo) {
document.write ("&mmm_fo=1");
}
document.write ("'><\/scr"+"ipt>");
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货