请教各位老大,wowo2.0风格, 打招呼,新消息不提示!是什么原因,谢谢!
是否修改HEADER代码就可以,具体怎么改?谢谢!!
<!--{if empty($_SGLOBAL['inajax'])}-->
<!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=$_SC[charset]" />
<meta http-equiv="x-ua-compatible" content="ie=7" />
<title><!--{if $_TPL['titles']}--><!--{loop $_TPL['titles'] $value}--><!--{if $value}-->$value - <!--{/if}--><!--{/loop}--><!--{/if}--><!--{if $_SN[$space[uid]]}-->{$_SN[$space[uid]]} - <!--{/if}-->$_SCONFIG[sitename]</title>
<script language="javascript" type="text/javascript" src="source/script_cookie.js"></script>
<script language="javascript" type="text/javascript" src="source/script_common.js"></script>
<script language="javascript" type="text/javascript" src="source/script_menu.js"></script>
<script language="javascript" type="text/javascript" src="source/script_ajax.js"></script>
<script language="javascript" type="text/javascript" src="source/script_face.js"></script>
<script language="javascript" type="text/javascript" src="source/script_manage.js"></script>
<script type='text/javascript' src='LinkTalk-Application/app-host.js'></script>
<script type="text/javascript">
<!--
// 短消息提示
<!--{if !empty($_SGLOBAL['member']['newpm'])}-->
var dfstep = 0;
function flash_title(){
dfstep++;
var title = '您有新的消息';
if (dfstep==3){dfstep=1;}
if (dfstep==1){document.title='○'+title;}
if (dfstep==2) {document.title='◎'+title;}
setTimeout("flash_title()",500);
}
flash_title();
<!--{/if}-->
function ResumeError() {
return true;
}
window.onerror = ResumeError;
//-->
</SCRIPT>
<style type="text/css">
@import url(template/wowo20css/wowostyle.css);
<!--{if $_TPL['css']}-->
@import url(template/wowo20css/{$_TPL[css]}.css);
<!--{/if}-->
<!--{if !empty($_SGLOBAL['space_css'])}-->
$_SGLOBAL[space_css]
<!--{/if}-->
</style>
<link rel="shortcut icon" href="image/favicon.ico" />
<link rel="edituri" type="application/rsd+xml" title="rsd" href="xmlrpc.php?rsd=$space[uid]" />
</head>
<body>
<div id="append_parent"></div>
<div id="ajaxwaitid"></div>
<div id="wrap">
<div id="header">
<h2><a href="space.php?do=home"><img src="template/wowo20css/image/logo.gif" alt="$_SCONFIG[sitename]" /></a></h2>
<ul id="menu">
<li><a href="index.php"><em>首页</em></a></li>
<li><a href="space.php?do=home"><em>管理中心</em></a></li>
<li><a class="my_wowo" href="space.php?uid=$_SGLOBAL[supe_uid]" target="_blank"><em>我的空间</em></a></li>
<li><a href="network.php"><em>随便看看</em></a></li>
<!--{if $_SGLOBAL[supe_uid]}-->
<li><a href="space.php?do=friend"><em>好友</em></a></li>
<li><a href="space.php?do=pm"><em><span id="span_newpm">消息</span></em><!--{if !empty($_SGLOBAL['member']['newpm'])}--><script>newpm();</script><!--{/if}--></a></li>
<!--{/if}-->
</ul>
<p class="change_theme"><a href="cp.php?ac=theme">装饰</a></p>
<ul id="altstyle">
</ul>
<div class="edit">
<!--{if empty($_SCONFIG['closeinvite'])}--><a class="edit_invite" href="cp.php?ac=invite">邀请</a><!--{/if}-->
<a class="edit_find" href="cp.php?ac=friend&op=find">找人</a>
</div>
<!--{if $_SGLOBAL[supe_uid]}-->
<div id="op">
<a href="cp.php">帐号管理</a><span class="pipe">|</span>
<a href="cp.php?ac=privacy">隐私</a><span class="pipe">|</span>
<a href="cp.php?ac=task">任务</a><span class="pipe">|</span>
<a href="cp.php?ac=magic">道具</a><span class="pipe">|</span>
<a href="cp.php?ac=common&op=logout&uhash=$_SGLOBAL[uhash]">退出</a>
</div>
<!--{/if}-->
<div class="new_tip" id="ann" onmouseout="annstop = 0" onmouseover="annstop = 1">
<div id="annbody"><ul id="annbodylis">
<!--{block/sql/SELECT * FROM uchome_doing ORDER BY dateline DESC LIMIT 0,10/cachename/doing/cachetime/100}-->
<!--{loop $_SBLOCK[doing] $value}-->
<li>
<a href="space.php?uid=$value[uid]&do=doing" target="_blank">$value[username] </a>说: $value[message] <a href="space.php?uid=$value[uid]&do=doing&doid=$value[doid]&goto=yes" class="re">回复</a>
</li>
<!--{/loop}-->
</ul>
</div>
</div>
<script type="text/javascript">
var anndelay = 3000;
var annst = 0;
var annstop = 0;
var annrowcount = 0;
var anncount = 0;
var annlis = $('annbody').getElementsByTagName("LI");
var annrows = new Array();
var annstatus;
function announcementScroll() {
if(annstop) {
annst = setTimeout('announcementScroll()', anndelay);
return;
}
if(!annst) {
var lasttop = -1;
for(i = 0;i < annlis.length;i++) {
if(lasttop != annlis[i].offsetTop) {
if(lasttop == -1) {
lasttop = 0;
}
annrows[annrowcount] = annlis[i].offsetTop - lasttop;
annrowcount++;
}
lasttop = annlis[i].offsetTop;
}
if(annrows.length == 1) {
$('ann').onmouseover = $('ann').onmouseout = null;
} else {
annrows[annrowcount] = annrows[1];
$('annbodylis').innerHTML += $('annbodylis').innerHTML;
annst = setTimeout('announcementScroll()', anndelay);
}
annrowcount = 1;
return;
}
if(annrowcount >= annrows.length) {
$('annbody').scrollTop = 0;
annrowcount = 1;
annst = setTimeout('announcementScroll()', anndelay);
} else {
anncount = 0;
announcementScrollnext(annrows[annrowcount]);
}
}
function announcementScrollnext(time) {
$('annbody').scrollTop++;
anncount++;
if(anncount != time) {
annst = setTimeout('announcementScrollnext(' + time + ')', 10);
} else {
annrowcount++;
annst = setTimeout('announcementScroll()', anndelay);
}
}
setTimeout(function(){
announcementScroll();
/*var x = new Ajax();
x.get('doingli.php',function(data){
$('annbodylis').innerHTML = data;
});*/
},500);
</script>
<style>
#annbody {
height:30px;
overflow:hidden;
padding-right:16px;
}
#annbodylis li{height:30px; line-height:30px;white-space:nowrap;}
</style>
</div> |