运营秘籍(二)五招将论坛用户迅速导入
<TD id='demo2' vAlign=top>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<script language="javascript" type="text/javascript" src="http://www.网站域名.com/js.php?id=1"></script>
<SCRIPT>
try{
var speed=5;//速度数值越大速度越慢
document.getElementById('demo2').innerHTML=document.getElementById('demo1').innerHTML;
function Marquee(){
if(document.getElementById('demo2').offsetWidth-document.getElementById('demo').scrollLeft<=0)
document.getElementById('demo').scrollLeft-=document.getElementById('demo1').offsetWidth;
else{
document.getElementById('demo').scrollLeft++;
}
}
var MyMar=setInterval(Marquee,speed);
document.getElementById('demo').onmouseover=function() {
clearInterval(MyMar);
}
document.getElementById('demo').onmouseout=function() {
MyMar=setInterval(Marquee,speed);
}
}catch(e){
}
</SCRIPT>
<!-- 滚动头像结束 -->
附录二: 将"论坛加好友链接"改为加UCH的好友链接。
将论坛帖子页面的“加为好友”,修改为UCH里的加好友链接:
打开templates\default\viewthread.htm,找到:
<ahref="my.php?item=buddylist&newbuddyid=$post[authorid]&buddysubmit=yes"target="_blank" id="ajax_buddy_$post['count']"onclick="ajaxmenu(event, this.id, 3000, 0)">
修改为:
<ahref="{$uchomeurl}/cp.php?ac=friend&op=add&uid=$post[authorid]"target="_blank">
即可
发表评论 评论 (0 个评论)