网页设计中如何实现图片的自动切换,好想动画效果似的,但不是插入的视频,如下图所示
4个回答
展开全部
焦点图效果是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>
<!--
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>
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2011-04-23
展开全部
试试这个图片轮播
有12345数字一起切换
有小图大图一起切换
里面有教程和源码
有12345数字一起切换
有小图大图一起切换
里面有教程和源码
参考资料: http://www.blueidea.com/common/shoutbox/redir.asp?1=t&id=11341
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
你可以用超链接的形式,当鼠标移动到1,2,等数字后可以连接,如果焦点不在图片上的话就自己移动。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
只能用JS或者jAVA来做不懂代码的就去网下复制,图片路径换成自己的
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询