Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

whatsnew在论坛首页调用

[复制链接]
 楼主| lu5266 发表于 2005-10-18 22:14:48 | 显示全部楼层
原帖由 求助啊! 于 2005-10-18 21:26 发表

你安装的是下拉啊


那里有人提供了两种修改方法

https://discuz.dismall.com/viewth ... page%3D1&page=5

的50楼


https://discuz.dismall.com/viewth ... page%3D1&page=6

的55楼
回复

使用道具 举报

求助啊! 发表于 2005-10-18 23:38:05 | 显示全部楼层

问题已解决

<table  id=hot_topic_board border="0" cellspacing="0" cellpadding="0" width="{TABLEWIDTH}" bgcolor="{BORDERCOLOR}" align="center"><tr><td>
</td></tr></table>

<br>
<table onmouseover=show_hot_topic(hot_topic,1) border="0" cellspacing="1" cellpadding="1"  height="26" width="{TABLEWIDTH}" bgcolor="{BORDERCOLOR}" align="center">

<tr class="header">

<td width="25%" align="center"><span class="rainbow">▼论坛最新主题▼</span> </td>
<td width="25%" align="center"><span class="rainbow">▼最新回复主题▼</span> </td>
<td width="25%" align="center"><span class="rainbow">▼论坛精华主题▼</span> </td>
<td width="25%" align="center"><span class="rainbow">▼论坛最热主题▼</span> </td>
</tr>

</table>
<div id=hot_topic  style='position:absolute;visibility:hidden' align=center  >
<table cellspacing="0" cellpadding="0" border="0" width="815px" align="center" bgcolor="{BORDERCOLOR}"><tr><td>

<table border="0" cellspacing="{BORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%" style="table-layout: fixed; word-wrap: break-word"  >
<tr>

<td width="25%"  bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
<script src="whatsnew.php?feature=1&length=28&orderby=3&items=10&digest=0"></script>

</td>
<td width="25%"  bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
<script src="whatsnew.php?feature=1&orderby=0&length=28&items=10&digest=0"></script>

</td>

<td width="25%"  bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
<script src="whatsnew.php?feature=1&orderby=0&length=28&items=10&digest=1"></script>

</td>

<td width="25%"  bgcolor="{ALTBG2}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'">
<script src="whatsnew.php?feature=1&length=28&orderby=1&items=10"></script>
</td>





</tr>
</table></td></tr></table></div>

<script language=javascript>
var objname = "";
var H1Visible = 0;
hot_topic.style.left=hot_topic_board.offsetLeft + 92
function show_hot_topic(objname,showmethod){
if (objname != ""){
if (showmethod==1){
objname.style.visibility="visible";
H1Visible = 1;}
else{
objname.style.visibility="hidden";
H1Visible = 0; }
}
}
</script>
<script language="javascript">

var where = "";
function checkwhere(e) {
if (document.layers){
xCoord = e.x;
yCoord = e.y;
}
else if (document.all){
xCoord = event.clientX;
yCoord = event.clientY;
}
else if (document.getElementById){
xCoord = e.clientX;
yCoord = e.clientY;
}
yCoord=yCoord+document.body.scrollTop;
if ((xCoord<hot_topic_board.offsetLeft || xCoord> hot_topic_board.offsetWidth+hot_topic_board.offsetLeft || yCoord<hot_topic_board.offsetTop || yCoord> hot_topic.offsetTop+hot_topic.offsetHeight) & H1Visible)
show_hot_topic(hot_topic,0);
}
document.onmousemove = checkwhere;
if(document.captureEvents) {document.captureEvents(Event.MOUSEMOVE);}
</script>
这是我改过的.方法很有效不过得自己试多次
www.lookpp.com
回复

使用道具 举报

 楼主| lu5266 发表于 2005-10-21 22:01:02 | 显示全部楼层
原帖由 求助啊! 于 2005-10-18 23:38 发表
<table  id=hot_topic_board border="0" cellspacing="0" cellpadding="0" width="{TABLEWIDTH}" bgcolor="{BORDERCOLOR}" align="center">& ...



成功就好了


这是必然的嘛

我弄javascript都弄了一个下午啊

还没包括测试风格呢
回复

使用道具 举报

求助啊! 发表于 2005-10-30 19:06:51 | 显示全部楼层

我现在也在看那个文字说明,成功一半,一半失败

好难改呀!~学习中~
回复

使用道具 举报

 楼主| lu5266 发表于 2005-10-31 06:12:39 | 显示全部楼层
原帖由 求助啊! 于 2005-10-30 19:06 发表
好难改呀!~学习中~



那就是要漫漫改咯
回复

使用道具 举报

qqhrpty 发表于 2005-11-2 23:58:44 | 显示全部楼层
刚按这个方法试了一下,不知怎么网站进不去了。反馈如下:Parse error: parse error, unexpected T_STRING, expecting ')' in E:\www\bbs.qqhrpty.com\Discuz!_2.5F_gb\upload\templates\default\templates.lang.php on line 160

Current template pack do not have a necessary language file 'templates.lang.php' or have syntax error!

把模版改回原来的设置也没用,怎么回事啊,快帮帮忙吧
回复

使用道具 举报

 楼主| lu5266 发表于 2005-11-3 12:24:44 | 显示全部楼层
原帖由 qqhrpty 于 2005-11-2 23:58 发表
刚按这个方法试了一下,不知怎么网站进不去了。反馈如下:Parse error: parse error, unexpected T_STRING, expecting ')' in E:\www\bbs.qqhrpty.com\Discuz!_2.5F_gb\upload\templates\default\templates.lang. ...


你安装可能有点错误

这个只有用原文件覆盖

在更新缓存试试
回复

使用道具 举报

qqhrpty 发表于 2005-11-3 13:52:23 | 显示全部楼层
原帖由 lu5266 于 2005-11-3 12:24 PM 发表


你安装可能有点错误

这个只有用原文件覆盖

在更新缓存试试


谢谢您,您能将这种论坛whatnew模版里的代码拷一份给我看下吗?
回复

使用道具 举报

qqhrpty 发表于 2005-11-3 13:58:11 | 显示全部楼层
我当时看大意了,没有按你说的新建一个whatsnew,而是将你贴子里那段代码直接拷到论坛whatnew模版里了,把原来的覆盖了。出现问题后我又把index还原了,whatnew里则把童虎老师的那个whatsnew里拷进去了,因为我看好像和我改之前的差不多,所以就放它了,但结果仍然是进不去。
大侠,帮助诊断下吧,谢谢啦
回复

使用道具 举报

 楼主| lu5266 发表于 2005-11-3 14:28:30 | 显示全部楼层
原帖由 qqhrpty 于 2005-11-3 13:58 发表
我当时看大意了,没有按你说的新建一个whatsnew,而是将你贴子里那段代码直接拷到论坛whatnew模版里了,把原来的覆盖了。出现问题后我又把index还原了,whatnew里则把童虎老师的那个whatsnew里拷进去了,因为我看好 ...


童虎的whatsnew.php,是文件,是在跟目录下的

而我要你新建的是whatsnew.htm,是模板,是应该放在templates/default/目录下的



可能是你把这两个搞混了
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-5-4 11:46 , Processed in 0.224447 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表