|
欢迎注册成为摩托坊论坛会员,结交天南地北好机友,和广大车友分享你的精彩图文游记,和众多摩坛大神交流玩车心得!
您需要 登录 才可以下载或查看,没有账号?立即注册账号
×
<div class="s_main col3_852">
<div class="videoBase">
<h1 class="videoName"><span class="bigTitle"></span> </h1></div>
<div class="left">
<div class="videoPlay mod">
<div class="player"><font face="Verdana">https://v.youku.com/v_show/id_XMTA2ODY0.html</font>[em1009]
<script type="text/javascript">var isIE=false;</script>
<script language="javascript" type="text/javascript">isIE=true;</script>
<script>
function getSize() {
var myWidth = 0, myHeight = 0;
if( typeof( window.innerWidth ) == 'number' ) {
myWidth = window.innerWidth;
myHeight = window.innerHeight;
} else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) {
myWidth = document.documentElement.clientWidth;
myHeight = document.documentElement.clientHeight;
} else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) {
myWidth = document.body.clientWidth;
myHeight = document.body.clientHeight;
}else{
}
return [myWidth,myHeight];
}
function orgin(){}
orgin.init=false;
orgin.position="";
orgin.top="";
orgin.left="";
orgin.width="";
orgin.height="";
orgin.isfullscreen=false;
function player_reset(){
if(orgin.init ==true){
try{
orgin.isfullscreen=false;
$("player").style.position= orgin.position;
$("player").style.top= orgin.top;
$("player").style.left= orgin.left;
$("player").style.width= orgin.width;
$("player").style.height= orgin.height;
document.location.hash="";
document.body.style.overflow='auto';
if(isIE){
$("player_bg").style.width= "0px";
$("player_bg").style.height= "0px";
$("player_bg").style.display= "none";
}
}catch(e){}
}
}
function player_fullscreen(){
if(orgin.init!=true){
orgin.postion = document.getElementById("player").style.position;
orgin.top= document.getElementById("player").style.top;
orgin.left= document.getElementById("player").style.left;
orgin.width= document.getElementById("player").style.width;
orgin.height= document.getElementById("player").style.height;
}
orgin.init=true;
orgin.isfullscreen=true;
var p= getSize();
try{
document.getElementById("player").style.position= "absolute";
document.getElementById("player").style.top= 0;
document.getElementById("player").style.left= 0;
document.getElementById('player').style.width=p[0] + "px";
document.getElementById('player').style.height=p[1] + "px";
document.body.style.overflow='hidden';
window.scrollTo(0,0);
if(isIE){
document.getElementById("player_bg").style.display= "";
document.getElementById("player_bg").style.position= "absolute";
document.getElementById("player_bg").style.top= "0px";
document.getElementById("player_bg").style.left= "0px";
document.getElementById('player_bg').style.width=p[0] + "px";
document.getElementById('player_bg').style.height=p[1] + "px";
}
}catch(e){}
}
function resize(){
if(orgin.isfullscreen !=true){
return;
}else{
player_fullscreen();
}
}
function onPlayerStart(videoid,title){
return;
}
window.onresize = resize;
</script>
</div></div></div></div> |
|