急!高手请进,关于图片特效的问题!在线等!
小弟我正在制作网页,想和新浪网上的图片效果一样,图片不断更换。我把今天的sports.sina.com.cn中的代码考了下来,但是看不懂,请高手指教!在线等!
<!-- flash滚动焦点图 begin -->
<!--焦点图开始-->
<script type="text/javascript">
<!--
var focus_width=260
var focus_height=164
var text_height=25
var swf_height = focus_height+text_height
var pics='http://image2.sina.com.cn/ty/U350P6T29D1F63DT20051130114259.jpg|http://image2.sina.com.cn/ty/U352P6T29D1F3469DT20051130214230.jpg|http://image2.sina.com.cn/ty/U354P6T29D1F3465DT20051130112959.jpg'
var links='/nba/|http://sports.sina.com.cn/cba/|http://sports.sina.com.cn/tennis/hingis_back/index.shtml'
var texts='火箭胜老鹰结束七连败 姚麦联手得50分|CBA北区 北京克吉林取五连胜|辛吉斯宣布明年正式复出'
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="http://image2.sina.com.cn/bj/zonghe/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#DADADA">');
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 src="http://image2.sina.com.cn/bj/zonghe/pixviewer.swf" 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>
<!--焦点图结束-->
<!-- flash滚动焦点图 end -->
我将这段代码改了一下,不行,发现后面还用到了新浪里的pixviewer.swf文件,我不明白为什么图片的转换要用到.swf。我要是想实现这个功能该怎么办?
谢谢指教!
在线等!