MSN是这样做的..可是我看不懂呀,有哪位看懂了的,分析下,谢谢!
[CODE]document.write("<SCRIPT LANGUAGE=\"Javascript\">\n");
document.write("ADFHOST6175=\"
http://msn.allyes.com\";\n");
document.write("ADFCID6175=9;\n");
document.write("ADFBID6175=6175;\n");
document.write("ADFLOC='CNHI00';\n");
document.write("ADFUSER6175=\"
ad='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" WIDTH="'+w+'" HEIGHT="'+h+'"><PARAM NAME="movie" VALUE="'+u+'"><PARAM NAME="wmode" VALUE="'+p+'"><EMBED src="'+u+'" WIDTH="'+w+'" HEIGHT="'+h+'" WMODE="'+p+'" TYPE="application/x-shockwave-flash"></EMBED></OBJECT>';
o.innerHTML=(!i)?'<div style="POSITION:relative;Z-INDEX:1;width:'+w+'px;height:'+h+'px"><DIV style="POSITION:absolute;left:0;top:0;Z-INDEX:2;width:'+w+'px;height:'+h+'px">'+ad+'</div><div style="POSITION:absolute;left:0;top:0;Z-INDEX:3;width:'+w+'px;height:'+h+'px"><OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="
http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0" ID="button'+b+'" WIDTH="'+w+'" HEIGHT="'+h+'"><PARAM NAME="movie" VALUE="'+c+'/main/adfshow?local=blank.swf"><PARAM NAME="Wmode" VALUE="Transparent"><EMBED src="'+c+'/main/adfshow?local=blank.swf" WMODE="Transparent" WIDTH="'+w+'" HEIGHT="'+h+'" TYPE="application/x-shockwave-flash" name="button'+b+'"></EMBED></OBJECT></div></div>':ad;
return d;}
document.write("<script language=\"javascript\">\n");
document.write("var flash_fl07051114335757=1;\n");
document.write("var flash_wid07051114335757=728;\n");
document.write("var flash_hei07051114335757=90;\n");
document.write("var flash_adr07051114335757=\"
http://msnms.allyes.com/msnms/20070511def/protection_728x90.swf\";</scr"+"ipt>\n");
document.write("<SCRIPT LANGUAGE=\"VBScript\">\n");
document.write("Sub button617507051114335757_FSCommand(ByVal Command,ByVal args)\n");
document.write("Call button617507051114335757_DoFSCommand(command,args)\n");
document.write("End Sub\n");
document.write("</SCR"+"IPT>\n");
document.write("<SCRIPT LANGUAGE=\"JavaScript\">\n");
document.write("function alysxcf(u,w,h,p){if(!p)p=0;var d=\"xc\"+Math.ceil(Math.random()*1000000);document.write(\"<div id=\"+d+\"></div>\");\n");
document.write("alysxc(u,w,h,p,d,ADFHOST6175,\"617507051114335757\");}\n");
document.write("function button617507051114335757_DoFSCommand(command,args){window.open(ADFUSER6175);}\n");
document.write("alysxcf(flash_adr07051114335757,flash_wid07051114335757,flash_hei07051114335757);\n");
document.write("</SCR"+"IPT>");[/CODE]