网页设计中如何实现图片的自动切换,好想动画效果似的,但不是插入的视频...
发布网友
发布时间:2022-04-27 04:28
我来回答
共4个回答
热心网友
时间:2022-04-07 07:56
焦点图效果是javascript代码<script type="text/javascript">
<!--
var focus_width=860
var focus_height=410
var text_height=0
var swf_height = focus_height+text_height
var pics='images/201101.jpg|images/201102.jpg|images/201103.jpg|images/201104.jpg|images/201105.jpg|images/201106.jpg'
var links='#|#|#'
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"><param name="movie" value="images/focus.swf";><param name="quality" value="high">');
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 wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_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"; />'); document.write('</object>');
//--></script>
热心网友
时间:2022-04-07 09:14
试试这个图片轮播
有12345数字一起切换
有小图大图一起切换
里面有教程和源码
参考资料:http://www.blueidea.com/common/shoutbox/redir.asp?1=t&id=11341
热心网友
时间:2022-04-07 10:48
你可以用超链接的形式,当鼠标移动到1,2,等数字后可以连接,如果焦点不在图片上的话就自己移动。
热心网友
时间:2022-04-07 12:40
只能用JS或者jAVA来做不懂代码的就去网下复制,图片路径换成自己的