yanbinboy
先定义一个js文件,命名为“flash.js”

function LoadFlash(wmode,url,width,Height)
{
document.write(
\'<embed src="\' + url + \'" wmode=\' + wmode +
\' quality="high" pluginspage=http://www.macromedia.com/go/getflashplayer type="application/x-shockwave-flash" width="\' + width +
\'" height="\' + Height + \'"></embed>\');
}

然后将此文件置于指定位置(例如JS/flash.js,这里的文件是相对于显示FLASH的页面的所在位置说的)

然后在插入FLASH的位置,输入下列语句:(// 后面为注释部分,添加页面时删去)

<script type="text/javascript" src="js/flash.js"></script>   //SCR为JS文件所在位置,也是相对于此代码的页面
<div id="test"></div>    //id为CSS格式,可以省略
<script type="text/javascript">LoadFlash(\'movie\',\'myflash.swf\', 700, 400);</script>

分类:

技术点:

相关文章:

  • 2021-12-08
  • 2021-09-17
  • 2021-11-04
  • 2021-08-31
  • 2022-12-23
  • 2022-02-09
  • 2021-11-28
  • 2021-09-26
猜你喜欢
  • 2021-12-19
  • 2021-11-28
  • 2022-01-23
  • 2022-12-23
  • 2021-11-28
相关资源
相似解决方案