调用:
<SCRIPT language=javascript> <!– WriteFlash("/flash/abc.swf","511","280"); –> </SCRIPT> |
代码:
<script> function WriteFlash(flash,_width,_height) { document.writeln("<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=/"" + _width + "/" height=/"" + _height + "/">"); document.writeln(" <param name=/"movie/" value=/"" + flash + "/" />"); document.writeln(" <param name=/"quality/" value=/"high/" />"); document.writeln(" <param name=/"wmode/" value=/"transparent/" />"); document.writeln(" <embed src=/"" + flash + "/" quality=/"high/" pluginspage=/"http://www.macromedia.com/go/getflashplayer/" type=/"application/x-shockwave-flash/" width=/"" + _width + "/" height=/"" + _height + "/"></embed>"); document.writeln("</object>"); } </script> |