JS实现Flash外链专题大图片的轮显效果
2010-09-14 13:28:15 来源:WEB开发网运行这段代码,您也可以保存收藏,实际效果为Flash的轮换播放效果。
<SCRIPT type=text/javascript>
var focus_width=282
var focus_height=164
var swf_height = focus_height
var pics='http://soft.yesky.comhttp://soft.yesky.com/imagelist/06/30/ws038x64917j.jpg|http://soft.yesky.comhttp://soft.yesky.com/imagelist/06/25/wfj258ln52s0.jpg|http://www.yesky.comhttp://soft.yesky.com/imagelist/06/27/o7fgh32po3oy.jpg|http://soft.yesky.comhttp://soft.yesky.com/imagelist/06/24/kz3tcc91r1f6.jpg|http://soft.yesky.comhttp://soft.yesky.com/imagelist/06/23/33k6hbe0ua69.jpg|http://soft.yesky.comhttp://soft.yesky.com/imagelist/06/22/o9344fl979g0.jpg' var links='http://soft.yesky.com/lesson/22/2504522.shtml|http://soft.yesky.com/lesson/461/2454961.shtml|http://soft.yesky.com/lesson/382/2474382.shtml|http://soft.yesky.com/lesson/149/2444649.shtml|http://soft.yesky.com/lesson/434/2434434.shtml|http://soft.yesky.com/lesson/377/2421877.shtml' var texts='' document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain">');
document.write('<param name="movie" value=http://www.jztop.com/web/DOMJS/"http://www.yesky.com/TLimages/yeskyimages/pixviewer.swf">'); document.write('<param name="quality" value="high">');
document.write('<param name="bgcolor" value="#DADADA">');
document.write('<param name="menu" value="false">');
document.write('<param name="wmode" value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'">');
document.write('<embed src=http://www.jztop.com/web/DOMJS/"http://www.yesky.com/TLimages/yeskyimages/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&
links='+links+'&texts='+texts+'&
borderwidth='+focus_width+'&borderheight='+focus_height+'" menu="false" bgcolor="#DADADA" quality="high" width="'+ focus_width +'" height="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed>');
document.write('</object>');
</SCRIPT>
更多精彩
赞助商链接