基于js與flash實現(xiàn)的網(wǎng)站flv視頻播放插件代碼
本文實例講述了基于js與flash實現(xiàn)的網(wǎng)站flv視頻播放插件代碼。分享給大家供大家參考。
具體實現(xiàn)代碼如下:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>網(wǎng)站 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>
完整實例代碼點擊此處本站下載。
希望本文所述對大家的web程序設(shè)計有所幫助。
相關(guān)文章
bootstrap學(xué)習(xí)筆記之初識bootstrap
Bootstrap是一款目前非常流行的前端框架,簡單的說,就是html,css,javascript的工具集。本文給大家介紹bootstrap學(xué)習(xí)筆記之初識bootstrap,感興趣的朋友一起學(xué)習(xí)吧2016-06-06
前端js操作Cookie超詳細(xì)介紹與實戰(zhàn)案例
這篇文章主要給大家介紹了關(guān)于前端js操作Cookie詳細(xì)介紹與案例的相關(guān)資料,JS Cookie是一個用于在瀏覽器中操作Cookie的JavaScript庫,它提供了一組簡單的方法來設(shè)置、獲取、刪除和檢查 Cookie,需要的朋友可以參考下2023-09-09

