[查看演示] 源码如下 ---------------------------------------------------------- <HTML>
<HEAD>
<TITLE>Flash method-www.51windows.Net</TITLE>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</HEAD>
<BODY>
<OBJECT id="flash1"
codeBase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0
height=104 width=533 classid=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000><PARAM NAME="_cx" VALUE="14102"><PARAM NAME="_cy" VALUE="2752"><PARAM NAME="FlashVars" VALUE=""><PARAM NAME="Movie" VALUE="http://www.blueidea.com/gg/iriver/banner.swf"><PARAM NAME="Src" VALUE="http://www.blueidea.com/gg/iriver/banner.swf"><PARAM NAME="WMode" VALUE="Opaque"><PARAM NAME="Play" VALUE="-1"><PARAM NAME="Loop" VALUE="-1"><PARAM NAME="Quality" VALUE="High"><PARAM NAME="SAlign" VALUE=""><PARAM NAME="Menu" VALUE="-1"><PARAM NAME="Base" VALUE=""><PARAM NAME="AllowScriptAccess" VALUE="always"><PARAM NAME="Scale" VALUE="ShowAll"><PARAM NAME="DeviceFont" VALUE="0"><PARAM NAME="EmbedMovie" VALUE="0"><PARAM NAME="BGColor" VALUE=""><PARAM NAME="SWRemote" VALUE=""><PARAM NAME="MovieData" VALUE="">
<embed src="http://www.blueidea.com/gg/iriver/banner.swf" quality=high
pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
type="application/x-shockwave-flash" width="533" height="104"></embed>
</OBJECT><br/>
<button onmouseup="getObj()">遍历</button>
<button onmouseup="flash1.stop()">暂停</button>
<button onmouseup="flash1.Quality2='high'">高质量</button>
<button onmouseup="flash1.Quality2='low'">低质量</button>
<button onmouseup="flash1.Playing=true">播放</button>
<button onmouseup="flash1.Playing=false">暂停</button>
<button onmouseup="flash1.FrameNum=0">清0</button>
<script>
function getObj(){
var s=''
for(var o in flash1){
s+=o+' = '+flash1[o]+'\n'
}
ooo.value=s
}
</script><br/>
<textarea id="ooo" style="height:100%;width:100%;"></textarea>
</BODY>
</HTML>
<div style="position: absolute; top: 10; right: 10; width: 148; height: 18;cursor:hand">
<input type="button" name="Button" value="查看源代码" onClick= 'window.location = "view-source:" + window.location.href'></div> |