就像www.juedui100.com里那种新闻切换的那种效果,用JS怎么做,,我想想简单的源码,自己参考一下..
參考答案:flash发到邮箱了
<script type="text/javascript">
imgUrl1="1.jpg";
imgtext1="111"
imgLink1=escape("");
imgUrl2="2.jpg";
imgtext2="222"
imgLink2=escape("");
imgUrl3="3.jpg";
imgtext3="333"
imgLink3=escape("");
var focus_width=178
var focus_height=154
var text_height=32
var swf_height = focus_height+text_height
var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3
var links=imgLink1+"|"+imgLink2+"|"+imgLink3
var texts=imgtext1+"|"+imgtext2+"|"+imgtext3
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase=",0,0,0" width="'+ focus_width +'" height="'+ swf_height +'">');
document.write('<param name="allowScriptAccess" value="sameDomain"><param name="movie" value="ad_pic/focus1.swf"><param name="quality" value="high"><param name="bgcolor" value="#F0F0F0">');
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('</object>');
</script>