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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

首页 JS 调用的使用方法 FOR Discuz! 5.0.0

[复制链接]
AgFx 发表于 2006-9-14 07:08:17 | 显示全部楼层 |阅读模式
大家好,之前 ramboo 已经有发过该教程了,不过那个只是适合 Discuz! 旧的默认风格。
现在我所发的是适合 Discuz! 5.0.0 正式版的默认风格使用。

1. 首先到后台 “ 基本设置” 里的 “JS 调用” 的 “启用 JS 调用” 选择 “是”。
    至于 “JS 数据缓存时间(秒):” 的设定,大家可以依照各人的需求做出适当的设定。


2. 接着使用 FTP 打开 discuz.htm 然后找

  1. <!--{if !empty($newpmexists)}-->
  2.         <div style="clear: both; margin-top: 5px">
  3.         {template pmprompt}
  4.         </div>
  5. <!--{/if}-->
复制代码


然后把这些代码加在下面

  1. <div class="spaceborder" style="width: {TABLEWIDTH}">
  2. <table cellspacing="{INNERBORDERWIDTH}" cellpadding="{TABLESPACE}" width="100%">
  3. <tr class="header">
  4. <td width="15%" align="center">今日发贴排行</td>
  5. <td width="15%" align="center">会员积分排行</td>
  6. <td width="35%" align="center">最新发表主题</td>
  7. <td width="35%" align="center">最新回复主题</td>
  8. </tr>
  9. <tr>
  10. <td bgcolor="{BGCOLOR}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'"><script xxx></scrip>
  11. </td>
  12. <td bgcolor="{BGCOLOR}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'"><script xxx></script>
  13. </td>
  14. <td bgcolor="{BGCOLOR}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'"><script xxx></script>
  15. </td>
  16. <td bgcolor="{BGCOLOR}" onMouseOver ="this.style.backgroundColor='{ALTBG1}'" onMouseOut ="this.style.backgroundColor='{ALTBG2}'"><script xxx></script>
  17. </td>
  18. </tr>
  19. </table></div><br>
复制代码
请留意:代码中的 <script xxx></script> 是需要替换成您所获得的 JS 调用代码。
还有代码中的 “今日发贴排行,会员积分排行,最新发表主题,最新回复主题” 可以自行修改成您所要的文字。

3. 再到后台 “系统工具” 的 “JS 调用向导” 里,然后依照各人所喜欢以取得所需的 JS 调用代码。
    获取代码后把步骤2中的 <script xxx></script> 替换,这样就完成了!
禄林广告 发表于 2006-9-14 07:09:49 | 显示全部楼层
应该发到插件吧.
回复

使用道具 举报

antdk 发表于 2006-9-14 07:31:46 | 显示全部楼层
简洁,但是不想用。
回复

使用道具 举报

湘水盟 发表于 2006-9-14 08:24:57 | 显示全部楼层
不错
有没有做好的出来演示一下
偶送个IP
回复

使用道具 举报

5025488.net 发表于 2006-9-14 09:03:19 | 显示全部楼层
js好慢
回复

使用道具 举报

羽扇纶巾 发表于 2006-9-15 20:56:18 | 显示全部楼层
学习ing。。。
回复

使用道具 举报

freddy 发表于 2006-9-15 22:17:23 | 显示全部楼层
你的代码不规范!都是D25的代码.
回复

使用道具 举报

5025488.net 发表于 2006-9-15 22:36:48 | 显示全部楼层
回复

使用道具 举报

版本错误 发表于 2006-10-14 13:38:00 | 显示全部楼层
支持~~~~~~
回复

使用道具 举报

dsqg 发表于 2006-12-6 16:58:57 | 显示全部楼层
有演示就好了,想搞,不过有点怕啊.
还是先顶,本人有回贴的习惯!呵呵~~~~
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-5 06:15 , Processed in 0.106508 second(s), 18 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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