zencart 幻灯片
放在 后台 自定义页面 Define Page 中,即可添加幻灯片。 也可以自定义
附件下载地址:https://files.cnblogs.com/lookyou/focus.swf
<div align=center><script type="text/javascript"> imgUrl1="/includes/templates/lite_red/images/flash/1.jpg"; imgtext1="#" imgLink1=escape("#"); imgUrl2="/includes/templates/lite_red/images/flash/2.jpg"; imgtext2="#" imgLink2=escape("#"); imgUrl3="/includes/templates/lite_red/images/flash/3.jpg"; imgtext3="#" imgLink3=escape("#"); imgUrl4="/includes/templates/lite_red/images/flash/4.jpg"; imgtext4="#" imgLink4=escape("#"); imgUrl5="/includes/templates/lite_red/images/flash/5.jpg"; imgtext5="#" imgLink5=escape("#"); var focus_width=550 var focus_height=300 var text_height=0 var swf_height = focus_height+text_height var pics=imgUrl1+"|"+imgUrl2+"|"+imgUrl3+"|"+imgUrl4 var links=imgLink1+"|"+imgLink2+"|"+imgLink3+"|"+imgLink4 var texts=imgtext1+"|"+imgtext2+"|"+imgtext3+"|"+imgtext4 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/lite_red/images/flash/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/lite_red/images/flash/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>