轮播广告轮换_焦点图,为啥只能显示一张图片
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了轮播广告轮换_焦点图,为啥只能显示一张图片相关的知识,希望对你有一定的参考价值。
<script type="text/javascript">
<!--
var interval_time=2
var focus_width=968
var focus_height=243
var text_height=0
var text_align= 'center'
var swf_height = focus_height+text_height
var pics= '+images/01.jpg|/+images/02.jpg'
var links='/#|/#'
var texts='PPT2DVD|ppt2flash pro|Dvd Ripper Platinum|Movie Story'
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="movie" value="focus2.swf"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">');
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+'&text_align='+text_align+'&interval_time='+interval_time+'">');
document.write('<embed src="focus2.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'&text_align='+text_align+'&interval_time='+interval_time+'" menu="false" bgcolor="#ffffff" 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 pics= '+images/01.jpg|/+images/02.jpg'
应该为var pics= 'images/01.jpg|/images/02.jpg'
我不知道加号的意思是什么
你看看我的网站的图片轮换代码
www.dapengpeng.cn 参考技术A var pics= 'images/01.jpg|/images/02.jpg|/images/03.jpg'
使用css做轮播效果为啥最后一张图片显示不出来
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>无标题文档</title>
<style>
#container
width: 400px;
height: 300px;
overflow: hid\den;
#photo
width: 1200px;
animation: switch 5s ease-out infinite;
#photo > img
float: left;
width: 400px;
height: 300px;
@keyframes switch
0%, 25%
margin-left: 0;
35%, 60%
margin-left: -400px;
70%, 100%
margin-left: -800px;
</style>
</head>
<body>
<div id="container">
<div id="photo">
<img src="file:///C:/Users/ASUS/Desktop/%E5%B0%8F%E7%B1%B3%E5%AE%98%E7%BD%91/imgrs/%E7%94%B5%E8%A7%86.jpg">
<img src="file:///C:/Users/ASUS/Desktop/%E5%B0%8F%E7%B1%B3%E5%AE%98%E7%BD%91/imgrs/%E5%B9%B4%E8%B4%A7%E8%8A%82.jpg"/>
<img src="file:///C:/Users/ASUS/Desktop/%E5%B0%8F%E7%B1%B3%E5%AE%98%E7%BD%91/imgrs/%E6%89%8B%E6%9C%BA.jpg" />
</div>
</div>
</body>
</html>
.
以上是关于轮播广告轮换_焦点图,为啥只能显示一张图片的主要内容,如果未能解决你的问题,请参考以下文章