<!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>视频</title>
<script src="/js/jquery.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jQuery.blockUI.js"></script>
<script type="text/javascript">
function writeVideo(src, w, h) {
var vtype = src.split(".");
videotype = vtype[1];
var videcode = '';
switch (videotype) {
case "flv":
videcode += '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=" http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="' + w + '" height="' + h + '">';
videcode += '<param name="movie" value="vcastr.swf"';
videcode += '<param name="quality" value="high">';
videcode += '<param name="allowFullScreen" value="true" />';
videcode += '<param name="FlashVars" value="vcastr_file=' + src + '&LogoUrl=&LogoText=" />';
videcode += '<embed src="vcastr.swf" allowFullScreen="true" FlashVars="vcastr_file=' + src + '" quality="high" pluginspage=" http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="' + w + '" height="' + h + '" ></embed>';
videcode += '</object>';
break;
}
document.writeln(videcode);
}
</script>
</head>
<body>
<script type="text/javascript">
writeVideo("qiqi.flv", 320, 240);
</script>
</body>
</html>