HTML 插入视频
的有关信息介绍如下:现在我们在上网浏览网页的时候经常会看到各种视频,这样可以方便浏览者通过视频了解更多的信息,那么如何在html网页插入视频呢?
下载FLVPlayer_Progressive.swf和Clear_Skin_2.swf保存到本地。
FLVPlayer_Progressive.swf 下载地址: http://www.gdyuetong.com/support_hp.html
Clear_Skin_2.swf 下载地址: http://www.gdyuetong.com/support_hp.html
利用windows自带记事本创建一个文本文件tst.txt,输入如下代码:
在标签之间插入如下代码:
function MM_CheckFlashVersion(reqVerStr,msg){
with(navigator){
var isIE = (appVersion.indexOf("MSIE") != -1 && userAgent.indexOf("Opera") == -1);
var isWin = (appVersion.toLowerCase().indexOf("win") != -1);
if (!isIE || !isWin){
var flashVer = -1;
if (plugins && plugins.length > 0){
var desc = plugins["Shockwave Flash"] ? plugins["Shockwave Flash"].description : "";
desc = plugins["Shockwave Flash 2.0"] ? plugins["Shockwave Flash 2.0"].description : desc;
if (desc == "") flashVer = -1;
else{
var descArr = desc.split(" ");
var tempArrMajor = descArr.split(".");
var verMajor = tempArrMajor;
var tempArrMinor = (descArr != "") ? descArr.split("r") : descArr.split("r");
var verMinor = (tempArrMinor > 0) ? tempArrMinor : 0;
flashVer = parseFloat(verMajor + "." + verMinor);
}
}
// WebTV has Flash Player 4 or lower -- too low for video
else if (userAgent.toLowerCase().indexOf("webtv") != -1) flashVer = 4.0;
var verArr = reqVerStr.split(",");
var reqVer = parseFloat(verArr + "." + verArr);
if (flashVer < reqVer){
if (confirm(msg))
window.location = "http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";
}
}
}
}
在