日期:2014-05-16  浏览次数:20337 次

javascript图片的轮换效果改进
[code=HTML][/code]<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />

<title>FLASH 3D BANNER展示代码_模板王</title>
</head>
<script src="js/AC_RunActiveContent.js" type="text/javascript"></script>
<body style="text-align:center">

<script type=text/javascript>
var varText = ""
function addInfo(title,photourl,sphotourl){
if(varText!=""){
varText+="|||";
}
varText+=title+"|_|"+photourl+"|_|"+sphotourl;
}
addInfo("","images/1.jpg","images/spic1.jpg");
addInfo("","images/2.jpg","images/spic2.jpg");
addInfo("","images/3.jpg","images/spic3.jpg");
addInfo("","images/4.jpg","images/spic4.jpg");
//
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" 

codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="932" height="316" 

id="01" align="middle">')
document.write('<param name="allowScriptAccess" value="sameDomain" />')
document.write('<param name="movie" value="images/main.swf?info='+varText+'" />')
document.write('<param name="quality" value="high" />')
document.write('<param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" />')
document.write('<embed src="images/main.swf?info='+varText+'"" quality="high" bgcolor="#ffffff" width="932" 

height="316" name="01" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" 

pluginspage="http://www.macromedia.com/go/getflashplayer" />')
document.write('</object>')
</script>



<p></p>

<p></p>
</body>
</html>怎么让第四个图片轮换效果和前面三张图片一样?thank you!

------解决方案--------------------
这不是js动画,是flash。改不了
------解决方案--------------------
flash这个可不像图片那么方便了。楼上的方式可以试一试,但要刷新页面的。