init: 从宝塔同步到 Gitea
@@ -0,0 +1,378 @@
|
||||
/* 顶部 */
|
||||
body {
|
||||
background: url(../img/c_top_b.png) repeat-x, url(../img/content01.jpg) no-repeat #daa91c;
|
||||
}
|
||||
|
||||
.c_top {
|
||||
background: url(../img/c_top_l.png) no-repeat left, url(../img/c_top_r.png) no-repeat right, url(../img/c_top_bg.png) repeat-x;
|
||||
height: 92px;
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.c_top > span {
|
||||
display: inline-block;
|
||||
height: 92px;
|
||||
line-height: 92px;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.c_top .c_name {
|
||||
margin-left: 144px;
|
||||
font-size: 24px;
|
||||
text-align: left;
|
||||
float: left;
|
||||
width: 15%;
|
||||
|
||||
background-image: -webkit-linear-gradient(bottom,#613c0f,#ffaf5b,#ffffff);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
.c_top .c_name img{
|
||||
height: 62px;
|
||||
margin: 12px 15px 18px 0;
|
||||
display: block;
|
||||
float: left;
|
||||
}
|
||||
.c_top .c_tit {
|
||||
margin-left: calc(-15% + -144px);
|
||||
font-size: 26px;
|
||||
}
|
||||
|
||||
.c_top .c_set{
|
||||
position: absolute;
|
||||
right: 1%;
|
||||
color: #000;
|
||||
font-size: 20px;
|
||||
width: 6%;
|
||||
text-align: center;
|
||||
cursor: pointer;
|
||||
display: inline-block;
|
||||
height: 92px;
|
||||
line-height: 92px;
|
||||
}
|
||||
|
||||
.c_top .c_set:hover .c_sets{
|
||||
display: block;
|
||||
}
|
||||
|
||||
.c_top .c_inf{
|
||||
font-size: 20px;
|
||||
position: absolute;
|
||||
right: 15%;
|
||||
|
||||
background-image: -webkit-linear-gradient(bottom,#613c0f,#ffaf5b,#ffffff);
|
||||
-webkit-background-clip: text;
|
||||
-webkit-text-fill-color: transparent;
|
||||
}
|
||||
|
||||
.c_top .c_inf div{
|
||||
float: left;
|
||||
}
|
||||
|
||||
/* 设置 */
|
||||
.c_sets {
|
||||
position: absolute;
|
||||
right: -9%;
|
||||
background: #666;
|
||||
top: 82px;
|
||||
width: 140%;
|
||||
text-align: center;
|
||||
border-radius: 3px;
|
||||
z-index: 99999;
|
||||
display: none;
|
||||
}
|
||||
.c_set_t{
|
||||
display: inline-block;
|
||||
width: 21px;
|
||||
height: 21px;
|
||||
background: url(../img/c_pot.png) no-repeat;
|
||||
vertical-align: text-top;
|
||||
-webkit-background-size: cover;
|
||||
background-size: cover;
|
||||
}
|
||||
.c_sets ul{
|
||||
/* padding: 5px 0; */
|
||||
}
|
||||
.c_sets li{
|
||||
line-height: normal;
|
||||
}
|
||||
.c_sets li:hover{
|
||||
background: #999;
|
||||
border-radius: 3px;
|
||||
}
|
||||
.c_sets .c_horn{
|
||||
height: 15px;
|
||||
width: 15px;
|
||||
transform: rotate(45deg);
|
||||
position: absolute;
|
||||
top: -6px;
|
||||
right: 33%;
|
||||
background: #666;
|
||||
border-radius: 3px;
|
||||
z-index: -1;
|
||||
}
|
||||
.c_sets .c_horn:hover {
|
||||
background: #666;
|
||||
}
|
||||
|
||||
.c_sets .item{
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
padding: 10px 0;
|
||||
font-size: 16px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.c_sets .item label{
|
||||
color: #fff;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* 图标 */
|
||||
.c_sets span {
|
||||
display: inline-block;
|
||||
width: 18px;
|
||||
height: 18px;
|
||||
background: url(../img/goback_white.png) center center no-repeat;
|
||||
vertical-align: text-bottom;
|
||||
-webkit-background-size: cover;
|
||||
background-size: cover;
|
||||
margin-left: 5px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
/* 列表 */
|
||||
.play .game-tab {
|
||||
width: 80%;
|
||||
|
||||
visibility: visible;
|
||||
-moz-transform: translate(-50%, -48%);
|
||||
-ms-transform: translate(-50%, -48%);
|
||||
-webkit-transform: translate(-50%, -48%);
|
||||
transform: translate(-50%, -48%);
|
||||
}
|
||||
.head {
|
||||
width: 100%;
|
||||
height: 75px;
|
||||
background: rgba(0,0,0,0.5);
|
||||
position: fixed;
|
||||
left: 0;
|
||||
top: 92px;
|
||||
z-index: 999;
|
||||
}
|
||||
|
||||
|
||||
.play .box .table-hd {
|
||||
background: #dac08e;
|
||||
}
|
||||
.play .box .table-hd .title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
padding: 5px 10px;
|
||||
color: #000;
|
||||
display: inline-block;
|
||||
}
|
||||
.play .box .table-hd .title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
padding: 5px 10px;
|
||||
color: #000;
|
||||
display: inline-block;
|
||||
}
|
||||
.play .box .table-hd .title .white {
|
||||
color: #683c20;
|
||||
padding-left: 5px;
|
||||
}
|
||||
.play .info {
|
||||
float: right;
|
||||
}
|
||||
.play .info p {
|
||||
color: #000;
|
||||
padding-right: 30px;
|
||||
font-weight: 600;
|
||||
display: inline-block;
|
||||
font-size: 16px;
|
||||
line-height: 35px;
|
||||
}
|
||||
.play .road {
|
||||
position: relative;
|
||||
}
|
||||
.play canvas {
|
||||
display: block;
|
||||
background: #fff;
|
||||
width: 100%;
|
||||
}
|
||||
/* .play .road .mask {
|
||||
position: absolute;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
text-align: center;
|
||||
font-size: 45px;
|
||||
background: #4a4a4a;
|
||||
color: #fff;
|
||||
font-weight: 500;
|
||||
opacity: 0.5;
|
||||
display: none;
|
||||
} */
|
||||
.play .road .countdown {
|
||||
position: absolute;
|
||||
font-size: 100px;
|
||||
font-weight: 600;
|
||||
color: rgba(0,0,0,0.4);
|
||||
left: 50%;
|
||||
top: 50%;
|
||||
-moz-transform: translate(-50%, -50%);
|
||||
-ms-transform: translate(-50%, -50%);
|
||||
-webkit-transform: translate(-50%, -50%);
|
||||
transform: translate(-50%, -50%);
|
||||
display: none;
|
||||
}
|
||||
.play .limit {
|
||||
color: #000;
|
||||
padding: 4px 10px;
|
||||
background: #dac08e;
|
||||
font-weight: 600;
|
||||
}
|
||||
.play .limit .limit_money {
|
||||
display: inline-block;
|
||||
font-size: 16px;
|
||||
overflow: hidden;
|
||||
vertical-align: middle;
|
||||
padding-right: 30px;
|
||||
}
|
||||
.play .game-tab .list-tab .info {
|
||||
color: #000;
|
||||
font-size: 18px;
|
||||
margin-top: 0;
|
||||
padding: 0 10px;
|
||||
background: #dac08e;
|
||||
font-weight: 600;
|
||||
}
|
||||
.play .game-tab .list-tab ul li {
|
||||
margin: 15px 0 5px;
|
||||
width: 50%;
|
||||
}
|
||||
.play .game-tab .list-tab .box {
|
||||
margin: 0 auto;
|
||||
overflow: hidden;
|
||||
}
|
||||
.play .game-tab .list-tab ul {
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
/*滚动条样式*/
|
||||
.play .game-tab .dragscroll::-webkit-scrollbar {
|
||||
width: 2px;
|
||||
height: 2px;
|
||||
}
|
||||
.play .game-tab .dragscroll::-webkit-scrollbar-thumb {
|
||||
border-radius: 100px;
|
||||
-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
|
||||
|
||||
background: rgba(255,255,255,0.8);
|
||||
}
|
||||
.play .game-tab .dragscroll::-webkit-scrollbar-track {
|
||||
-webkit-box-shadow: inset 0 0 5px rgba(0,0,0,0.2);
|
||||
border-radius: 100px;
|
||||
background: rgba(0,0,0,0.5);
|
||||
}
|
||||
|
||||
|
||||
.play .game-tab .dragscroll li .box{
|
||||
position: relative;
|
||||
margin: 0 auto;
|
||||
}
|
||||
|
||||
|
||||
.play .game-tab .dragscroll li{
|
||||
width: 50%;
|
||||
float: left;
|
||||
position: relative;
|
||||
}
|
||||
.play .game-tab .dragscroll li .iframe_box{
|
||||
display: block;
|
||||
}
|
||||
|
||||
.play .minicontrol{
|
||||
display: none
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* */
|
||||
.play .game-tab .tab-nav {
|
||||
width: 101%;
|
||||
background: linear-gradient(#dfc276,#f7dc95,#f2d589,#dfc276);
|
||||
/* position: fixed;
|
||||
left: 0;
|
||||
top: 0;
|
||||
z-index: 99; */
|
||||
padding: 5px 0;
|
||||
}
|
||||
.play .game-tab .tab-nav .list {
|
||||
float: left;
|
||||
width: 50%;
|
||||
height: 35px;
|
||||
position: relative;
|
||||
padding-left: 100px;
|
||||
box-sizing: border-box;
|
||||
-moz-box-sizing: border-box;
|
||||
-webkit-box-sizing: border-box;
|
||||
overflow: hidden;
|
||||
}
|
||||
.play .game-tab .tab-nav .list .lab {
|
||||
font-weight: 600;
|
||||
color: #000;
|
||||
font-size: 20px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
padding: 0 20px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
line-height: 36px;
|
||||
}
|
||||
.play .game-tab .tab-nav .list .link {
|
||||
display: inline-block;
|
||||
width: 35px;
|
||||
height: 35px;
|
||||
background: linear-gradient(#9a8959,#b19b5f,#988557,#56420c);
|
||||
border-radius: 100%;
|
||||
line-height: 35px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
font-weight: 600;
|
||||
font-size: 18px;
|
||||
}
|
||||
.play .game-tab .tab-nav .list .link:hover {
|
||||
background: linear-gradient(#FFEB3B,#FFC107,#FF9800,#FFEB3B);
|
||||
box-shadow: 0px 0px 2px #000;
|
||||
-moz-box-shadow: 0px 0px 2px #000;
|
||||
color: #fff;
|
||||
-webkit-transition: all 0.2s;
|
||||
-moz-transition: all 0.2s;
|
||||
transition: all 0.2s;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 1480px){
|
||||
.play .game-tab {
|
||||
max-height: 495px;
|
||||
}
|
||||
}
|
||||
|
||||
@media (min-width: 1646px) and (max-width: 1900px) {
|
||||
.play .game-tab {
|
||||
max-height: 550px;
|
||||
}
|
||||
}
|
||||
|
||||
.play .game-tab .tab-nav .list .link {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,147 @@
|
||||
/*
|
||||
* @Author: Archen
|
||||
* @Date: 2016-04-08 10:29:03
|
||||
* @Last Modified by: Archen
|
||||
* @Last Modified time: 2016-04-22 13:24:16
|
||||
*/
|
||||
body,h1,h2,h3,h4,h5,h6,hr,p,blockquote,dl,dt,dd,ul,ol,li,pre,form,fieldset,legend,button,input,textarea,th,td{margin:0;padding:0;}
|
||||
body {
|
||||
font-family: "Lantinghei SC","Open Sans",Arial,"Hiragino Sans GB","Microsoft YaHei","微软雅黑",STHeiti,"WenQuanYi Micro Hei",SimSun,sans-serif;
|
||||
-webkit-font-smoothing: antialiased;
|
||||
-moz-font-smoothing: antialiased;
|
||||
font-smoothing: antialiased;
|
||||
font-smooth: always;
|
||||
}
|
||||
body {
|
||||
font-size: 14px;
|
||||
line-height: 1.42857143;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
q:before,q:after {content:”;}
|
||||
|
||||
|
||||
fieldset,img,abbr,acronym {border: 0 none;}
|
||||
abbr,acronym {font-variant: normal;}
|
||||
legend {color:#000;}
|
||||
|
||||
address,caption,cite,code,dfn,em,strong,th,var {
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
sup {vertical-align: text-top;}
|
||||
sub {vertical-align: text-bottom;}
|
||||
|
||||
table{
|
||||
border-collapse: collapse;
|
||||
border-spacing:0;
|
||||
}
|
||||
|
||||
caption,th {text-align: left;}
|
||||
input,img,select,button {vertical-align:middle; border:none; text-decoration: none; outline:none;}
|
||||
|
||||
|
||||
ol,ul {list-style: none;}
|
||||
|
||||
|
||||
input,button,textarea,select,optgroup,option {
|
||||
font-family:inherit;
|
||||
font-size:inherit;
|
||||
font-style:inherit;
|
||||
font-weight:inherit;
|
||||
}
|
||||
|
||||
|
||||
h1,h2,h3,h4,h5,h6 {font-weight: normal; font-size: 100%;
|
||||
}
|
||||
|
||||
|
||||
del,ins,a {text-decoration:none; color: #555;}
|
||||
|
||||
a:hover,a:active{color:#6DD1C1; text-decoration:none;}
|
||||
|
||||
input[type="submit"] {cursor: pointer;}
|
||||
button {cursor: pointer;}
|
||||
input::-moz-focus-inner { border: 0; padding: 0;}
|
||||
|
||||
.clearfix{zoom:1;}
|
||||
.clearfix:after{content:""; display:block; visibility:hidden; height:0; clear:both;}
|
||||
|
||||
.fl{float:left;}
|
||||
.fr{float:right;}
|
||||
|
||||
.box-sizing{
|
||||
box-sizing:border-box;
|
||||
-moz-box-sizing:border-box;
|
||||
-webkit-box-sizing:border-box;
|
||||
}
|
||||
|
||||
img {
|
||||
max-width: 100%;
|
||||
height: auto;
|
||||
width:auto\9; /* ie8 */
|
||||
-ms-interpolation-mode:bicubic;/*为了照顾ie图片缩放失真*/
|
||||
}
|
||||
.transition{
|
||||
-webkit-transition: all 1s;
|
||||
-moz-transition: all 1s;
|
||||
-ms-transition: all 1s;
|
||||
-o-transition: all 1s;
|
||||
transition: all 1s;
|
||||
}
|
||||
|
||||
strong,h2{font-weight: normal;}
|
||||
em,i{font-style:normal;}
|
||||
|
||||
.table-box{
|
||||
display: table;
|
||||
width: 100%;
|
||||
}
|
||||
.table-box .cell{
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
.Maskplay{
|
||||
position: fixed;
|
||||
width:100%;
|
||||
height:100%;
|
||||
background:#000;
|
||||
color:#eee;
|
||||
top:0;
|
||||
left:0;
|
||||
z-index:9999;
|
||||
opacity: 0.5;
|
||||
}
|
||||
.Maskplay .msgbox{
|
||||
position:absolute;
|
||||
left:50%;
|
||||
top:50%;
|
||||
width:650px;
|
||||
text-align:center;
|
||||
height:300px;
|
||||
line-height:300px;
|
||||
margin-left:-330px;
|
||||
margin-top:-150px;
|
||||
color:#fff;
|
||||
font-size:100px;
|
||||
font-weight:600;
|
||||
letter-spacing:10px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* 投注页面切换语言的弹框 */
|
||||
.language{
|
||||
height:50px;
|
||||
border-top:1px solid #525252;
|
||||
line-height:50px;
|
||||
padding-left:20px;
|
||||
}
|
||||
.language:hover{
|
||||
background:#313131;
|
||||
}
|
||||
.red_bg{
|
||||
background:#3e3e3e;
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 878 B |
@@ -0,0 +1,36 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>rtmp</title>
|
||||
</head>
|
||||
<body>
|
||||
<script type="text/javascript" src="swfobject.js"></script>
|
||||
<div class="video" id="CuPlayer"> <b> <img src="loading.gif" /> 网页视频播放器加载中,请稍后...</b> </div>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<script type="text/javascript">
|
||||
var so = new SWFObject("player.swf","ply","734","545","2","#000000");
|
||||
so.addParam("allowfullscreen","false");
|
||||
so.addParam("allowscriptaccess","always");
|
||||
so.addParam("wmode","opaque");
|
||||
so.addParam("quality","high");
|
||||
so.addParam("salign","lt");
|
||||
so.addVariable("JcScpServer","rtmp://154.85.192.66/live/"); //您的rtmp流媒体服务器地址
|
||||
so.addVariable("JcScpVideoPath","sub_XB2"); //流名称
|
||||
so.addVariable("JcScpImg","images/startpic.jpg"); //视频缩略图
|
||||
so.addVariable("JcScpFile","rtmp.xml"); //配置文件
|
||||
so.write("CuPlayer");
|
||||
so.addVariable("ShowJcScpAMoveText","yes");
|
||||
|
||||
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
<!-- rtmp://43.231.65.171:11935/live -->
|
||||
|
||||
<!-- rtmp://live.hkstv.hk.lxdns.com/live/hks -->
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
<CuPlayer>
|
||||
<Player_Set
|
||||
JcScpBufferTime="0.5"
|
||||
JcScpVolume="0"
|
||||
JcScpCode="utf8"
|
||||
JcScpImgDisplay="no"
|
||||
JcScpAutoHideControl="yes"
|
||||
JcScpControlHideTime="0.5"
|
||||
JcScpControlHeight="40"
|
||||
JcScpShowList="no"
|
||||
JcScpAutoRepeat="no"
|
||||
JcScpAutoPlay="yes"
|
||||
JcScpsetMode="2"
|
||||
JcScpAFrontCanClose="no"
|
||||
JcScpShowRightmenu="no"
|
||||
JcScpShareMode="JcScpVideoPath"
|
||||
/>
|
||||
<Logo_Set JcScpLogoDisplay="no" JcScpLogoPath="Images/video_logo.png" JcScpLogoPosition="top-left" JcScpLogoWidth="165" JcScpLogoHeight="75" JcScpLogoAlpha="1"/>
|
||||
<Flashvars_Set JcScpServer="" JcScpVideoPath="" JcScpVideoPathHD="" JcScpImg="" JcScpStarTime="0" JcScpEndTime="0" ShowJcScpAFront="no" JcScpCountDowns="2" JcScpCountDownsPosition="top-right" JcScpAFrontW="645" JcScpAFrontH="300" JcScpAFrontPath="Images/SevenColorPlayer_650x418.swf" JcScpAFrontLink="/" ShowJcScpAVideo="no" JcScpAVideoPath="test.flv" JcScpAVideoLink="/" ShowJcScpAPause="no" JcScpAPausePath="Images/SevenColorPlayer_a1.swf" JcScpAPauseW="375" JcScpAPauseH="230" JcScpAPauseLink="/" ShowJcScpACorner="no" JcScpACornerPath="Images/SevenColorPlayer_a10.swf" JcScpACornerW="80" JcScpACornerH="50" JcScpACornerPosition="top-right" JcScpACornerLink="/" ShowJcScppAEnd="no" JcScpAEndPath="Images/Cover_changfa.jpg" JcScpAEndW="400" JcScpAEndH="200" JcScpAEndLink="/"/>
|
||||
<SkinColor_Set JcScpBackcolor="0x000000" JcScpBackcolortop="0x353535" JcScpLightcolor="0xcfcfcf" JcScpFontcolor="0xffffff" JcScptimebg="0x393939" JcScpLoadbar="0x00a0e9" JcScpLoaded="0x4d4b4b" JcScpLoadbg="0x000000" JcScpPlayBtn="0x2d2d2d" JcScpBar="0xffffff"/>
|
||||
</CuPlayer>
|
||||
@@ -0,0 +1,21 @@
|
||||
<CuPlayer>
|
||||
<Player_Set
|
||||
JcScpBufferTime="0.5"
|
||||
JcScpVolume="0"
|
||||
JcScpCode="utf8"
|
||||
JcScpImgDisplay="no"
|
||||
JcScpAutoHideControl="no"
|
||||
JcScpControlHideTime="0.5"
|
||||
JcScpControlHeight="40"
|
||||
JcScpShowList="no"
|
||||
JcScpAutoRepeat="no"
|
||||
JcScpAutoPlay="no"
|
||||
JcScpsetMode="2"
|
||||
JcScpAFrontCanClose="no"
|
||||
JcScpShowRightmenu="no"
|
||||
JcScpShareMode="JcScpVideoPath"
|
||||
/>
|
||||
<Logo_Set JcScpLogoDisplay="no" JcScpLogoPath="Images/video_logo.png" JcScpLogoPosition="top-left" JcScpLogoWidth="165" JcScpLogoHeight="75" JcScpLogoAlpha="1"/>
|
||||
<Flashvars_Set JcScpServer="" JcScpVideoPath="" JcScpVideoPathHD="" JcScpImg="" JcScpStarTime="0" JcScpEndTime="0" ShowJcScpAFront="no" JcScpCountDowns="2" JcScpCountDownsPosition="top-right" JcScpAFrontW="645" JcScpAFrontH="300" JcScpAFrontPath="Images/SevenColorPlayer_650x418.swf" JcScpAFrontLink="/" ShowJcScpAVideo="no" JcScpAVideoPath="test.flv" JcScpAVideoLink="/" ShowJcScpAPause="no" JcScpAPausePath="Images/SevenColorPlayer_a1.swf" JcScpAPauseW="375" JcScpAPauseH="230" JcScpAPauseLink="/" ShowJcScpACorner="no" JcScpACornerPath="Images/SevenColorPlayer_a10.swf" JcScpACornerW="80" JcScpACornerH="50" JcScpACornerPosition="top-right" JcScpACornerLink="/" ShowJcScppAEnd="no" JcScpAEndPath="Images/Cover_changfa.jpg" JcScpAEndW="400" JcScpAEndH="200" JcScpAEndLink="/"/>
|
||||
<SkinColor_Set JcScpBackcolor="0x000000" JcScpBackcolortop="0x353535" JcScpLightcolor="0xcfcfcf" JcScpFontcolor="0xffffff" JcScptimebg="0x393939" JcScpLoadbar="0x00a0e9" JcScpLoaded="0x4d4b4b" JcScpLoadbg="0x000000" JcScpPlayBtn="0x2d2d2d" JcScpBar="0xffffff"/>
|
||||
</CuPlayer>
|
||||
@@ -0,0 +1,138 @@
|
||||
/**
|
||||
* SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
|
||||
*
|
||||
* SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
|
||||
* http://www.opensource.org/licenses/mit-license.php
|
||||
*
|
||||
* **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
|
||||
* legal reasons.
|
||||
*/
|
||||
if(typeof deconcept=="undefined"){var deconcept=new Object();}
|
||||
if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
|
||||
if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
|
||||
deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;}
|
||||
this.DETECT_KEY=_b?_b:"detectflash";
|
||||
this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
|
||||
this.params=new Object();
|
||||
this.variables=new Object();
|
||||
this.attributes=new Array();
|
||||
if(_1){this.setAttribute("swf",_1);}
|
||||
if(id){this.setAttribute("id",id);}
|
||||
if(w){this.setAttribute("width",w);}
|
||||
if(h){this.setAttribute("height",h);}
|
||||
if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
|
||||
this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();
|
||||
if(c){this.addParam("bgcolor",c);}
|
||||
var q=_8?_8:"high";
|
||||
this.addParam("quality",q);
|
||||
this.setAttribute("useExpressInstall",_7);
|
||||
this.setAttribute("doExpressInstall",false);
|
||||
var _d=(_9)?_9:window.location;
|
||||
this.setAttribute("xiRedirectUrl",_d);
|
||||
this.setAttribute("redirectUrl","");
|
||||
if(_a){this.setAttribute("redirectUrl",_a);}};
|
||||
deconcept.SWFObject.prototype={setAttribute:function(_e,_f){
|
||||
this.attributes[_e]=_f;
|
||||
},getAttribute:function(_10){
|
||||
return this.attributes[_10];
|
||||
},addParam:function(_11,_12){
|
||||
this.params[_11]=_12;
|
||||
},getParams:function(){
|
||||
return this.params;
|
||||
},addVariable:function(_13,_14){
|
||||
this.variables[_13]=_14;
|
||||
},getVariable:function(_15){
|
||||
return this.variables[_15];
|
||||
},getVariables:function(){
|
||||
return this.variables;
|
||||
},getVariablePairs:function(){
|
||||
var _16=new Array();
|
||||
var key;
|
||||
var _18=this.getVariables();
|
||||
for(key in _18){_16.push(key+"="+_18[key]);}
|
||||
return _16;},getSWFHTML:function(){var _19="";
|
||||
if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
|
||||
if(this.getAttribute("doExpressInstall")){
|
||||
this.addVariable("MMplayerType","PlugIn");}
|
||||
_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
|
||||
_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
|
||||
var _1a=this.getParams();
|
||||
for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
|
||||
var _1c=this.getVariablePairs().join("&");
|
||||
if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";
|
||||
}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
|
||||
_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
|
||||
_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
|
||||
var _1d=this.getParams();
|
||||
for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
|
||||
var _1f=this.getVariablePairs().join("&");
|
||||
if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}
|
||||
return _19;
|
||||
},write:function(_20){
|
||||
if(this.getAttribute("useExpressInstall")){
|
||||
var _21=new deconcept.PlayerVersion([6,0,65]);
|
||||
if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
|
||||
this.setAttribute("doExpressInstall",true);
|
||||
this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
|
||||
document.title=document.title.slice(0,47)+" - Flash Player Installation";
|
||||
this.addVariable("MMdoctitle",document.title);}}
|
||||
if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
|
||||
var n=(typeof _20=="string")?document.getElementById(_20):_20;
|
||||
n.innerHTML=this.getSWFHTML();return true;
|
||||
}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
|
||||
return false;}};
|
||||
deconcept.SWFObjectUtil.getPlayerVersion=function(){
|
||||
var _23=new deconcept.PlayerVersion([0,0,0]);
|
||||
if(navigator.plugins&&navigator.mimeTypes.length){
|
||||
var x=navigator.plugins["Shockwave Flash"];
|
||||
if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
|
||||
}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
|
||||
catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
|
||||
_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}
|
||||
catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
|
||||
catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}
|
||||
return _23;};
|
||||
deconcept.PlayerVersion=function(_27){
|
||||
this.major=_27[0]!=null?parseInt(_27[0]):0;
|
||||
this.minor=_27[1]!=null?parseInt(_27[1]):0;
|
||||
this.rev=_27[2]!=null?parseInt(_27[2]):0;
|
||||
};
|
||||
deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
|
||||
if(this.major<fv.major){return false;}
|
||||
if(this.major>fv.major){return true;}
|
||||
if(this.minor<fv.minor){return false;}
|
||||
if(this.minor>fv.minor){return true;}
|
||||
if(this.rev<fv.rev){
|
||||
return false;
|
||||
}return true;};
|
||||
deconcept.util={getRequestParameter:function(_29){
|
||||
var q=document.location.search||document.location.hash;
|
||||
if(q){var _2b=q.substring(1).split("&");
|
||||
for(var i=0;i<_2b.length;i++){
|
||||
if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){
|
||||
return _2b[i].substring((_2b[i].indexOf("=")+1));}}}
|
||||
return "";}};
|
||||
deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return;}
|
||||
var _2d=document.getElementsByTagName("OBJECT");
|
||||
for(var i=0;i<_2d.length;i++){_2d[i].style.display="none";for(var x in _2d[i]){
|
||||
if(typeof _2d[i][x]=="function"){_2d[i][x]=function(){};}}}};
|
||||
deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};
|
||||
__flash_savedUnloadHandler=function(){};
|
||||
if(typeof window.onunload=="function"){
|
||||
var _30=window.onunload;
|
||||
window.onunload=function(){
|
||||
deconcept.SWFObjectUtil.cleanupSWFs();_30();};
|
||||
}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}};
|
||||
if(typeof window.onbeforeunload=="function"){
|
||||
var oldBeforeUnload=window.onbeforeunload;
|
||||
window.onbeforeunload=function(){
|
||||
deconcept.SWFObjectUtil.prepUnload();
|
||||
oldBeforeUnload();};
|
||||
}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload;}
|
||||
if(Array.prototype.push==null){
|
||||
Array.prototype.push=function(_31){
|
||||
this[this.length]=_31;
|
||||
return this.length;};}
|
||||
var getQueryParamValue=deconcept.util.getRequestParameter;
|
||||
var FlashObject=deconcept.SWFObject;
|
||||
var SWFObject=deconcept.SWFObject;
|
||||
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 1.0 KiB |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 437 B |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 561 B |
|
After Width: | Height: | Size: 35 KiB |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 3.4 KiB |
|
After Width: | Height: | Size: 458 B |
|
After Width: | Height: | Size: 2.2 KiB |
|
After Width: | Height: | Size: 4.9 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
|
After Width: | Height: | Size: 2.1 KiB |
|
After Width: | Height: | Size: 15 KiB |
|
After Width: | Height: | Size: 99 KiB |
|
After Width: | Height: | Size: 217 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 192 KiB |
|
After Width: | Height: | Size: 34 KiB |
|
After Width: | Height: | Size: 8.5 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 468 KiB |
|
After Width: | Height: | Size: 1.4 KiB |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 3.2 MiB |
|
After Width: | Height: | Size: 3.3 KiB |
|
After Width: | Height: | Size: 405 B |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 28 KiB |
|
After Width: | Height: | Size: 27 KiB |
|
After Width: | Height: | Size: 604 KiB |
|
After Width: | Height: | Size: 369 KiB |
|
After Width: | Height: | Size: 9.6 KiB |
|
After Width: | Height: | Size: 351 KiB |
|
After Width: | Height: | Size: 166 KiB |
|
After Width: | Height: | Size: 205 KiB |
|
After Width: | Height: | Size: 61 KiB |
|
After Width: | Height: | Size: 45 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 1022 B |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 4.4 KiB |
|
After Width: | Height: | Size: 30 KiB |
|
After Width: | Height: | Size: 100 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 554 B |
|
After Width: | Height: | Size: 556 B |
|
After Width: | Height: | Size: 42 KiB |
|
After Width: | Height: | Size: 2.0 KiB |
|
After Width: | Height: | Size: 1.1 KiB |
|
After Width: | Height: | Size: 26 KiB |
|
After Width: | Height: | Size: 228 KiB |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 2.3 KiB |
|
After Width: | Height: | Size: 182 KiB |
|
After Width: | Height: | Size: 294 B |
|
After Width: | Height: | Size: 341 B |
|
After Width: | Height: | Size: 719 B |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 985 B |
|
After Width: | Height: | Size: 4.8 KiB |
|
After Width: | Height: | Size: 1018 B |
|
After Width: | Height: | Size: 6.6 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
|
After Width: | Height: | Size: 6.6 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 6.7 KiB |
|
After Width: | Height: | Size: 6.5 KiB |
|
After Width: | Height: | Size: 3.6 KiB |
|
After Width: | Height: | Size: 6.4 KiB |
|
After Width: | Height: | Size: 6.8 KiB |
|
After Width: | Height: | Size: 6.6 KiB |
|
After Width: | Height: | Size: 3.7 KiB |
|
After Width: | Height: | Size: 6.6 KiB |
|
After Width: | Height: | Size: 7.0 KiB |
|
After Width: | Height: | Size: 7.4 KiB |
|
After Width: | Height: | Size: 3.6 KiB |