代码中引用了网易云音乐的外链播放器,当然实际上也可以用其他平台的音乐播放器
进入header模板,在最上面加上
- <!--{if !array_key_exists('HTTP_REFERER',$_SERVER)}-->
- <!DOCTYPE HTML>
- <html>
- <head>
- <meta charset="utf-8"/>
- <title>$navtitle $bbname $seotitle</title>
- <meta name='viewport' content='width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no' />
- <meta name="format-detection" content="telephone=no"/>
- <style>
- *{
- padding:0;
- margin:0;
- border:none;
- font:16px/1.6em 微软雅黑,Verdana,Helvetica,Arial,sans-serif;
- text-decoration:none;
- }
- body,html,#main{
- width:100%;
- height:100%;
- overflow:hidden;
- }
- #music{
- position:fixed;
- left:0px;
- bottom:0px;
- z-index:500;
- }
- </style>
- </head>
- <body>
- <div id="music">
- <!--此处插入你的音乐播放器代码-->
- </div>
- <iframe id="main" frameborder="no" border="0" marginwidth="0" marginheight="0" src="http://<!--{echo $_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];}-->"></iframe>
- </body>
- </html>
- {eval die;}
- <!--{/if}-->
复制注意把中间“此处插入你的音乐播放器代码”的那里加上你从音乐网站获取的播放器代码
如果没有的话也可以直接用我的:
- <iframe frameborder="no" border="0" marginwidth="0" marginheight="0" width=330 height=110 src="http://music.163.com/outchain/player?type=0&id=10697121&auto=1&height=90"></iframe>
复制