找回密码
 立即注册账号

QQ登录

只需一步,快速开始

查看: 748|回复: 0

[推荐]视频: 飞车摩托

[复制链接]
发表于 2008-8-29 19:18:00 | 显示全部楼层 |阅读模式

欢迎注册成为摩托坊论坛会员,结交天南地北好机友,和广大车友分享你的精彩图文游记,和众多摩坛大神交流玩车心得!

您需要 登录 才可以下载或查看,没有账号?立即注册账号

×
<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>
您需要登录后才可以回帖 登录 | 立即注册账号

本版积分规则

QQ|小黑屋|手机版|摩托坊(MOTOF.cn) ( 粤ICP备2020133911号-1 )

GMT+8, 2025-7-10 12:12 , Processed in 0.032771 second(s), 5 queries , Redis On.

Powered by Discuz! X3.5

© 2001-2025 Discuz! Team.

快速回复 返回顶部 返回列表