本博客文章为转载,请勿用于商业目的!
本博客文章为转载,请勿用于商业目的!

在<HEADE>区加入

 程序代码

<script src="js/flash.js" type="text/javascript"></script>

在调用FLASH处加入

 程序代码

<script language="JavaScript" type="text/javascript">
 <!--
  playswf("swf/名字.swf",宽,高)
 //-->
</script>

flash.js代码:

 程序代码

// JavaScript Document
function playswf(sFile,sWidth,sHeight){
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="'+ sWidth +'" height="'+ sHeight +'"> ');
document.write(' <param name="movie" value="'+ sFile +'"> ');
document.write(' <param name="quality" value="high"> ');
document.write(' <param name="wmode" value="transparent"> ');
document.write(' <embed src="'+ sFile +'" wmode="transparent" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+ sWidth +'" height="'+ sHeight +'"></embed> ');
document.write('</object> ');
}

 

本篇文章来源于 中国建站之家 原文链接:http://www.jz123.cn/Article/10/134/2007/2007062220533.html

posted on 2013-05-28 09:21  刘季  阅读(184)  评论(0编辑  收藏  举报