网站flash,flash动画制作代码(切记在images中添加pixviewer.swf文件)

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>webrx-title</title>
</head>


<body>
<!------------flash开始------------->
  <div class="flash center ">
    <script type="text/javascript">
                    var focus_width=980
                    var focus_height=340
                    var text_height=0
                    var swf_height = focus_height+text_height
                    var pics='images/p1.jpg|images/p2.jpg|images/p3.jpg'
var links=''
var texts='纳税贡献奖|企业资信资料|资质证书'
                    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="/img/pixviewer.swf"><param name="quality" value="high"><param name="bgcolor" value="#ffffff">');
                    document.write('<param name="menu" value="false"><param name="wmode" value="transparent">');
                    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="images/pixviewer.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="'+ swf_height +'" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');
                    document.write('</object>');
                    </script>
    <!------------flash结束------------>
</div>
</body>
</html>

你可能感兴趣的:(JavaScript,网站flash动画,多种效果的flash动画代码)