FLASH轮换图片广告代码及使用方法 <TABLE height=320 cellSpacing=0 cellPadding=0 width=240 border=0> <TBODY> <TR> <TD> <SCRIPT language=JavaScript type=text/javascript> <!-- var focus_width=234 var focus_height=314 var text_height=25 var swf_height = focus_height+text_height var pics='guanggaoimages/guang-1.jpg|guanggaoimages/guang-2.jpg|guanggaoimages/guang-3.jpg|guanggaoimages/guang-4.jpg|guanggaoimages/guang-5.jpg' var links='http://www.zyego.com/viewhelp.aspx?id=17|http://www.zyego.com/defaulttype.aspx?typeid=1|http://www.zyego.com/Viewgoods.aspx?goodsid=10004443|http://www.zyego.com/Viewgoods.aspx?goodsid=10004637|http://zyego.com/viewhelp.aspx?id=19' var texts='免费诚招网店代理商|男士精品 拒绝高价|2007秋冬最佳情侣礼品|iPod nano三代|正品添香防辐射服' 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=picflash.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=picflash.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> </TD></TR></TBODY></TABLE> 代码使用方法:请直接将代码部分copy至广告位的自定义内容中。 修改方法: 代码:<TABLE height=320 cellSpacing=0 cellPadding=0 width=240 border=0> height=320 为广告总高度(修改数字即可)width=24 为广告总宽度 (修改数字即可) var focus_width=234 图片宽度(修改数字即可) var focus_height=314 图片高度(修改数字即可) var text_height=25 底部文字所在区域的高度 'guanggaoimages/guang-1.jpg|guanggaoimages/guang-2.jpg|guanggaoimages/guang-3.jpg|guanggaoimages/guang-4.jpg|guanggaoimages/guang-5.jpg' 图片地址:可自行修改图片地址。 注意5个地址间的“|”。如需要增加或减少图片,请直接增减如“|guanggaoimages/guang-5.jpg” var links='http://www.zyego.com/viewhelp.aspx?id=17|http://www.zyego.com/defaulttype.aspx?typeid=1|http://www.zyego.com/Viewgoods.aspx?goodsid=10004443|http://www.zyego.com/Viewgoods.aspx?goodsid=10004637|http://zyego.com/viewhelp.aspx?id=19' 图片链接网址:注意顺序的对应。及用“|”间隔。 '免费诚招网店代理商|男士精品 拒绝高价|2007秋冬最佳情侣礼品|iPod nano三代|正品添香防辐射服' 图片对应的底部说明文字:注意顺序的对应。及用“|”间隔。 value="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'">'); document.write('<embed src=picflash.swf wmode=opaque picflash.swf 为整个轮换广告所调用的FLASH文件。可修改所在地址。(此文件已上传至附件) 请解压后直接上传至网站根目录。如需要修改地址请勿必记得修改代码中picflash.swf 的地址