欢迎光临菜鸟网站,请留下你的宝贵意见,我会不断改进!

 

图片随机切换带页面控制特效

 

把以下代码插入你想放置特效的地方:

<DIV align=center><A href="javascript:goUrl()" target=_self>
<SCRIPT type=text/javascript>
imgUrl1="http://www.nbhbp.cn/images/xxlha/DSC00393.JPG";
imgtext1="http://www.nbhbp.cn/images/xxlha/DSC00393.JPG"
imgLink1=escape("http://www.nbhbp.cn/images/xxlha/DSC00393.JPG");
imgUrl2="http://www.nbhbp.cn/images/xxlha/DSC00703.JPG";
imgtext2="http://www.nbhbp.cn/images/xxlha/DSC00703.JPG"
imgLink2=escape("http://www.nbhbp.cn/images/xxlha/DSC00703.JPG");
imgUrl3="http://www.nbhbp.cn/images/xxlha/DSC00228.JPG";
imgtext3="http://www.nbhbp.cn/images/xxlha/DSC00228.JPG"
imgLink3=escape("http://www.nbhbp.cn/images/xxlha/DSC00228.JPG");
imgUrl4="http://www.nbhbp.cn/images/xxlha/DSC00372.JPG";
imgtext4="http://www.nbhbp.cn/images/xxlha/DSC00372.JPG"
imgLink4=escape("http://www.nbhbp.cn/images/xxlha/DSC00372.JPG");
imgUrl5="http://www.nbhbp.cn/images/xxlha/DSC00436.JPG";
imgtext5="http://www.nbhbp.cn/images/xxlha/DSC00436.JPG"
imgLink5=escape("http://www.nbhbp.cn/images/xxlha/DSC00436.JPG");

var focus_width=320
var focus_height=250
var text_height=0
var swf_height = focus_height+text_height

var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4+"|"+imgUrl5
var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4+"|"+imgLink5
var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4+"|"+imgtext5

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"><param name="movie" value="http://www.8w8m.com/focus.swf">
<param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
document.write('<param name="menu" value="false"><param name=wmode value="opaque">');
document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'
&texts='+texts+'&borderwidth='+focus_width+'
&borderheight='+focus_height+'&textheight='+text_height+'">');
document.write('<embed src="pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'
&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'
&borderheight='+focus_height+'&textheight='+text_height+'" menu="false"
bgcolor="#F0F0F0" quality="high" width="'+ focus_width +'" height="'+ focus_height +'
" allowScriptAccess="sameDomain" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>'); </SCRIPT> </A></DIV>

2008年10月10日