$(function () {
var sv = "",arrsv = "",sguid = "",sextand = "";
if ($(".dvbodycontainer .tbvideo .dvvideo").length>0) {
sv = $(".dvbodycontainer .tbvideo .dvvideo").text();
}
else if ($(".dvbodycontainer .tbaudio .dvaudio").length>0) {
sv = $(".dvbodycontainer .tbaudio .dvaudio").text();
}
arrsv = sv.split(".");
sguid = arrsv[0];
sextand = arrsv[1];
insertvideo(sextand, sguid);
setTimeout(function () { resetWindowHeight(); }, 50);
if ($(".dvbodycontainer .tbnetvideo")) {//删除网络视频父表格的背景
$(".dvbodycontainer .tbnetvideo td").css({ "background": "none" });
}
});
function insertvideo(sextand,str){
var rstr;
switch (sextand){
case "flv"://视频文件的位置要相对于flashpalyer的位置,而不能相对于flashpalyer引用页的位置
case "mp4":
rstr='';
$(".dvbodycontainer .tbvideo .dvvideo").html(rstr);
break;
case "mp3":
rstr = '';
$(".dvbodycontainer .tbaudio .dvaudio").html(rstr);
break;
}
}