网站里的广告条为什么我在查看源文件里看不到js代码?
发布网友
发布时间:2022-04-21 16:59
我来回答
共1个回答
热心网友
时间:2022-04-21 18:28
实际js地址
http://mb5u.com/guanggaodaima/jsadhtml/js-0242/images/portal_flash.js
改过后的可以直接看图的js代码
<SCRIPT language=javascript
type=text/javascript>
imgUrl1="http://mb5u.com/guanggaodaima/jsadhtml/js-0242/images/img01.jpg";
imgtext1="11"
imgLink1=escape("http://www.mb5u.com/");
//imgLink1="";
imgUrl2="http://mb5u.com/guanggaodaima/jsadhtml/js-0242/images/img02.jpg";
imgtext2="22"
imgLink2=escape("http://www.mb5u.com/");
//imgLink2="";
imgUrl3="http://mb5u.com/guanggaodaima/jsadhtml/js-0242/images/img03.jpg";
imgtext3="33"
imgLink3=escape("http://www.mb5u.com/");
//imgLink3="";
imgUrl4="http://mb5u.com/guanggaodaima/jsadhtml/js-0242/images/img04.jpg";
imgtext4="44"
imgLink4=escape("http://www.mb5u.com/");
//imgLink4="";
var focus_width=600
var focus_height=185
var text_height=0
var swf_height = focus_height+text_height
var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4
var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4
var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4
var flashCode = '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/hotdeploy/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">';
flashCode = flashCode + '<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="http://mb5u.com/guanggaodaima/jsadhtml/js-0242/focus2.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">';
flashCode = flashCode + '<param name="menu" value="false"><param name=wmode value="opaque">';
flashCode = flashCode + '<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">';
flashCode = flashCode + '<embed src="http://mb5u.com/guanggaodaima/jsadhtml/js-0242/focus2.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ focus_width +'" height="'+ swf_height +'" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'"></embed>';
flashCode = flashCode + '</object>';
document.write(flashCode)
</SCRIPT>
//觉得好就给分吧 楼上说的懒人确实有很多焦点轮显效果