• 文章介绍
  • 评价建议
  •  

    此代码可以设置定时开启某个播放器 规避一些不必要的麻烦

    更多作用自行开发

    另送一个 识别ua的代码 给大家

     

    var c = navigator.userAgent.toLowerCase();
    if (mac_showtop == 0 || c.indexOf(“android”) > 0 || c.indexOf(“mobile”) > 0 || c.indexOf(“ipod”) > 0 || c.indexOf(“ios”) > 0 || c.indexOf(“iphone”) > 0 || c.indexOf(“ipad”) > 0) {
    MacPlayer.Html = ‘<iframe width=”100%” height=”100%” src=”‘+MacPlayer.Parse + MacPlayer.PlayUrl+'” frameborder=”0″ border=”0″ marginwidth=”0″ marginheight=”0″ scrolling=”no” allowfullscreen=”allowfullscreen” mozallowfullscreen=”mozallowfullscreen” msallowfullscreen=”msallowfullscreen” oallowfullscreen=”oallowfullscreen” webkitallowfullscreen=”webkitallowfullscreen”></iframe>’;
    }else{
    MacPlayer.Html = ‘<iframe width=”100%” height=”100%” src=”‘+MacPlayer.Parse + MacPlayer.PlayUrl+'” frameborder=”0″ border=”0″ marginwidth=”0″ marginheight=”0″ scrolling=”no” allowfullscreen=”allowfullscreen” mozallowfullscreen=”mozallowfullscreen” msallowfullscreen=”msallowfullscreen” oallowfullscreen=”oallowfullscreen” webkitallowfullscreen=”webkitallowfullscreen”></iframe>’;
    }
    MacPlayer.Show();

    另外yun.html失效提示

     

    <!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> Yun Pan</title>
    <style type=”text/css”>div,body{margin:0; padding:0;}
    .pboxyunpan {
    height: 540px;
    background: #FFFFFF url(yun.png) ;
    }
    .palybb1 { height:40px; line-height:40px; font-size:16px; color:#FFFFFF; padding-top:32px; padding-left:80px;}
    .palybb2 {
    height: 44px;
    line-height: 44px;
    font-size: 20px;
    color: #2480e0;
    padding-top: 32px;
    padding-left: 93px;
    padding-right: 40px;
    }
    </style>
    </head>
    <body>
    <div class=pboxyunpan>
    <div class=palybb1><strong> <font color=#098612 size=4>该资源可能失效 请谅解</font></strong></div>
    <div class=palybb2><strong>
    <!–script type=”text/javascript”>
    var qurl; var mima;
    qurl= window.parent.now;
    qurl=decodeURI(qurl);
    mima=unescape(window.parent.now).split(“&&”)[0].split(“MiMa:”)[1]; if(mima==””) { mima=”无”; } var newurl=qurl.replace(“|MiMa”,”#”);
    document.write(“<a href='”+newurl+”‘ rel=’nofollow’ target=’_blank’>”+newurl+”</a>&nbsp&nbsp请复制密码:[<font color=red>”+mima+”</font>]”);
    </script–>
    </strong>
    </div>
    </div> <center>

    </center>

    </body>
    </html>

    皮蛋哥是一个优秀的站长,精品资源尽在皮蛋哥!
    魅钻网 » 关于苹果cms播放器定时开启代码与识别UA代码

    发表评论

    提供最优质的资源集合

    立即查看 了解详情