Demo模片首页banner图片如何改成flash?
最好能做成跟lightinthebox一样,后面更换图片,前面flash效果。(好象是XML什么的)
版主: daimadaquan

<div align=center><script type="text/javascript">
imgUrl1="/includes/templates/zencart0518/images/banner2.jpg";
imgtext1="#"
imgLink1=escape("#");
imgUrl2="/includes/templates/zencart0518/images/banner4.jpg";
imgtext2="#"
imgLink2=escape("#");
imgUrl3="/includes/templates/zencart0518/images/banner5.jpg";
imgtext3="#"
imgLink3=escape("#");
imgUrl4="/includes/templates/zencart0518/images/banner6.jpg";
imgtext4="#"
imgLink4=escape("#");
imgUrl5="/includes/templates/zencart0518/images/banner7.jpg";
imgtext5="#"
imgLink5=escape("#");
var focus_width=820
var focus_height=134
var text_height=0
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="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="/includes/templates/zencart0518/images/focus.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+'">');
document.write('<embed src="/includes/templates/zencart0518/images/focus.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#ffffff" quality="high" width="'+ focus_width +'" height="'+ focus_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />'); document.write('</object>');
</script></div>





document.write('<param name="FlashVars" value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">');
正在浏览此版面的用户:没有注册用户 和 0 位游客