flash图片新闻特效
<script type="text/javascript"><!--
imgUrl1 = "[url]"; //图片地址
imgText1 = "[文字说明]"; //在这里写上要在前台表现的文字
imgLink1 = escape("[url]"); //超连接地址
imgUrl2 = "[url]";
imgText2 = "[文字说明]";
imgLink2 = escape("[url]");
imgUrl3 = "[url]";
imgText3 ="[文字说明]";
imgLink3 = escape("[url]");
imgUrl4 = "[url]";
imgText4 = "[文字说明]";
imgLink4 = escape("[url]");
imgUrl5 = "[url]";
imgText5 = "[文字说明]";
imgLink5 = escape("[url]");
var focus_width = 570; //图片宽度
var focus_height = 140; //图片高度
var text_height = 18; //文本栏高度
var swf_height = focus_height + text_height;
var pics = imgUrl1 + "|" + imgUrl2 + "|" + imgUrl3 + "|" + imgUrl4 + "|" + imgUrl5;
var links = imgLink1 + "|" + imgLink2 + "|" + imgLink3 + "|" + imgLink4 + "|" + imgLink5;
var texts = imgText1 + "|" + imgText2 + "|" + imgText3 + "|" + imgText4 + "|" + imgText5;
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="picer.swf"><param name="quality" value="high"><param name="bgcolor" value="#E3E3E3">');
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="/molive/webjsp/flash/pixviewer.swf" wmode="opaque" FlashVars="pics='+pics+'&links='+links+'&texts='+texts+'&borderwidth='+focus_width+'&borderheight='+focus_height+'&textheight='+text_height+'" menu="false" bgcolor="#E3E3E3" 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>
将此段代码放置在你需要放置的位置;
将附件下载后放在主目录下面即可;[attach]478430[/attach] 即是怎樣..?
页:
[1]
