窝窝的电台程序应该是有客户端的,这个需要向青檬电台申请才可以得到。我已经联系他们电台了。出来之前,大家可以用下面这个
我换了另外一种方法做了这个电台插件
修改./template/default/header.htm文件,增加插件入口
找到:-
- <li class="app-share"><a href="space.php?do=share">分享</a></li>
复制代码 下面增加:-
- <li class="app-doing"><a href="#" ONCLICK="window.open('http://www.911pop.com/QQpop.aspx', 'NewWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,resizable=no,copyhistory=no,width=200,height=340')">电台插件</a></li>
复制代码 继续在最下面,也就是- <!--{eval
- obclean();
- @header("Expires: -1");
- @header("Cache-Control: no-store, private, post-check=0, pre-check=0, max-age=0", FALSE);
- @header("ragma: no-cache");
- @header("Content-type: application/xml; charset=$_SC[charset]");
- echo '<'."?xml version="1.0" encoding="$_SC[charset]"?>\n";
- echo "<root><![CDATA[";
- }-->
- <!--{/if}-->
复制代码 下面。加以下代码-
- <script>
- //Popup Window Script
- //Script By (http://www.th9th.com)
- function openpopup(){
- var popurl="http://www.911pop.com/QQpop.aspx"
- winpops=window.open(popurl,"","width=200,height=340,")
- }
- function get_cookie(Name) {
- var search = Name + "="
- var returnvalue = "";
- if (document.cookie.length > 0) {
- offset = document.cookie.indexOf(search)
- if (offset != -1) { // if cookie exists
- offset += search.length
- // set index of beginning of value
- end = document.cookie.indexOf(";", offset);
- // set index of end of cookie value
- if (end == -1)
- end = document.cookie.length;
- returnvalue=unescape(document.cookie.substring(offset, end))
- }
- }
- return returnvalue;
- }
- function loadornot(){
- if (get_cookie('poppedup')==''){
- openpopup()
- document.cookie="poppedup=yes"
- }
- }
- loadornot()
- </script>
复制代码 OK了。看看效果吧。可以给主持人发纸条的哦
做下广告。小站地址:http://bbs.th9th.com 近期会发布一些仿制国外的模板给大家。多支持哈
[ 本帖最后由 折宝亭 于 2008-5-23 23:27 编辑 ] |