日期:2014-05-19  浏览次数:20417 次

100分!请问怎么实现这样的幻灯片的功能
http://flash.zcom.com/youxipindao/index.html
请问怎么实现上面网页中间那个幻灯片的功能啊``

------解决方案--------------------
<div class= "left ">
<script type= "text/javascript ">
imgUrl1= "images/01.jpg ";
imgtext1= "1 "
imgLink1=escape( "http:// ");
imgUrl2= "images/02.jpg ";
imgtext2= "2 "
imgLink2=escape( "http:// ");
imgUrl3= "images/03.jpg ";
imgtext3= "3 "
imgLink3=escape( "http:// ");
imgUrl4= "images/04.jpg ";
imgtext4= "4 "
imgLink4=escape( "http:// ");
imgUrl5= "images/05.jpg ";
imgtext5= "5 "
imgLink5=escape( "http:// ");

var focus_width=473
var focus_height=295
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= "focus1.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( ' </object> ');
</script>

图片自己换一下
------解决方案--------------------
您的邮件已发送。
除了这个幻灯片效果,另外附送了一个LightBox的JS效果
接分了