<script type='text/javascript'>
var __sogou_ad = new Array();
__sogou_ad["pid"] = 'zealer';
__sogou_ad["fmt"] = 'h_728_90'
__sogou_ad["iw"] = '728';
__sogou_ad["ih"] = '90';
__sogou_ad["charset"] = 'gb2312';
__sogou_ad["c_bo"] = 'ACD8FF';
__sogou_ad["c_bg"] = '00FFCC';
__sogou_ad["c_li"] = '0434CF';
__sogou_ad["c_te"] = '000000';
__sogou_ad["c_bb"] = 'ACD8FF';
</script>
<script src='http://images.sohu.com/cs/jsfile/js/SogouUnionCPC.js'></script>
呵呵,网页中的script代码如上
SogouUnionCPC.js代码如下
function q(s) {
return s.replace(/%/g, "%25"
.replace(/&/g,'%26');
}
__sogou_ad_url="http://adsence.sogou.com/index.html";
__sogou_param_cont = 0;
__sogou_ad["sohuurl"] = new String(document.location ?do
cument.location :do
cument.referrer);
for (var p in __sogou_ad) __sogou_ad_url += (__sogou_param_cont++ ? "&"
: "?"
+ q(p) + "="
+ q(__sogou_ad[p]);
document.write('<iframe marginwidth="0"
marginheight="0"
frameborder="0"
bordercolor="#000000"
scrolling="no"
src="' + __sogou_ad_url + '"
width="' + __sogou_ad["iw"] + '"
height="' + __sogou_ad["ih"] +'"></iframe>');
dcms您的方法好像比较难实现阿
不过creation-zy您的思路好像简单,但是实现起来对我挺困难的,QQ:3446150