DIV CSS 佈局教程網

 DIV+CSS佈局教程網 >> 網頁腳本 >> JavaScript入門知識 >> JavaScript綜合知識 >> 基於js與flash實現的網站flv視頻播放插件代碼
基於js與flash實現的網站flv視頻播放插件代碼
編輯:JavaScript綜合知識     

 具體實現代碼如下:

 

代碼如下: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>網站 flv 視頻播放插件(javascript,flash)</title>
</head>

 

<body>
<script src="video/swfobject.js" type="text/javascript"></script>
<script type="text/javascript">
 var s1 = new SWFObject("video/flvplayer.swf", "single", "640", "240", "7");
 s1.addParam("allowfullscreen", "true");
 s1.addVariable("autostart", "true");
 s1.addVariable("repeat", "true");
 s1.addVariable("image", "preview.jpg");
 
 s1.addVariable("file", "http://www.XXX.com/01.flv");
 
 s1.addVariable("clicktext", "開始");
 s1.write("player1");
 s1.addVariable("width", "640");
 s1.addVariable("height", "240");
</script>
</body>
</html>

XML學習教程| jQuery入門知識| AJAX入門| Dreamweaver教程| Fireworks入門知識| SEO技巧| SEO優化集錦|
Copyright © DIV+CSS佈局教程網 All Rights Reserved