DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> JavaScript入門知識 >> 關於JavaScript >> 使用javascript獲取flash加載的百分比的實現代碼
使用javascript獲取flash加載的百分比的實現代碼
編輯:關於JavaScript     
復制代碼 代碼如下:
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>flash download</title>
</head>
<body>
<object id="movie" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="750" height="563" align="middle">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="http://www.crown-golf.com.cn/games/Golf4.swf" />
<param name="menu" value="false" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffcc33" />
<embed src="http://www.crown-golf.com.cn/games/Golf4.swf" menu="false" quality="high" bgcolor="#ffcc33" width="750" height="563" name="movie" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object><br>
<button onClick="alert(movie.PercentLoaded()==100 ? '下載完成' : '已經下載百分比: ' + movie.PercentLoaded())">PercentLoaded</button>
</body>
</html>
XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved