以下文件存为1.js:
程序代码
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="200">');
document.write('<param name="movie" value="你的FLASH地址">');
document.write('<param name="quality" value="high">');
document.write('<embed src="你的FLASH地址" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="200">');
document.write('</embed>');
document.write('</object>');
程序代码
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="500" height="200">');
document.write('<param name="movie" value="你的FLASH地址">');
document.write('<param name="quality" value="high">');
document.write('<embed src="你的FLASH地址" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="500" height="200">');
document.write('</embed>');
document.write('</object>');
在HTML中调用1.js:
程序代码
<script language="javascript" type="text/javascript" src="1.js"></script>