航空论坛_航空翻译_民航英语翻译_飞行翻译
标题:
给Discuz首页加背景音乐播放(无须改动任何文件)
[打印本页]
作者:
帅哥
时间:
2009-2-16 20:46:55
标题:
给Discuz首页加背景音乐播放(无须改动任何文件)
1.演示:
http://www.gameclan.com.cn
% M1 B- B. m. @6 {* j
/ ^ C( n' ]6 S+ Y3 M) ?
2.方法
9 R; E7 F* O3 V4 j" x% I
在后台的搜索引擎优化->其他头部信息中加入下面的代码<script>
) f" H6 q7 H H; O0 A7 `% b# ]
' E2 o; K. B( b- R# B6 [% J3 R
if(this.location.href=="http://www.gameclan.com.cn/" || this.location.href=="http://www.gameclan.com.cn/discuz.php" ||
! d4 @$ E- z( h! X( R6 O
' A( |( Z( z1 s3 U
this.location.href=="http://www.gameclan.com.cn/index.php")//将里面的
http://www.gameclan.com.cn
替换成你自己的网站地址
& v7 I! N0 d2 X3 ]
9 A9 ^" F4 R( d
{
- T, O( J( X1 V0 e* {. B
+ b8 Q+ U- a; P$ `: q
document.write("<bgsound src='http://www.gameclan.com.cn/upload/music/cy.mp3' loop='-1'>");//此出设置你自己的背景音乐
# z+ l% C3 P r2 k
+ y# B+ J5 t. q* F4 M
}
" R: M6 _0 G) ]2 y) V
4 t- Q, X; g$ p3 Y9 S% |; u% ~
</script>
欢迎光临 航空论坛_航空翻译_民航英语翻译_飞行翻译 (http://bbs.aero.cn/)
Powered by Discuz! X2