1. 启用js调用:到后台------》Discuz!选项------》js调用----->启用 JS 调用:
并根据你个人的需要设置“JS 数据缓存时间(秒)”和“JS 来路限制”
2. 通过js调用向导获得js代码,具体在后台-----》Discuz!工具-----》js调用向导,取得你想要的js代码
3. 修改index.htm
在
CODE:
[Copy to clipboard]
<!--{if !empty($newpmexists)}-->
{template pmprompt}
<!--{/if}-->
下面加入
CODE:
[Copy to clipboard]
<table cellspacing="0" cellpadding="0" border="0" width="99%" align="center" bgcolor="#DBEFFB"><tr><td>
<table border="0" cellspacing="1" cellpadding="4" width="100%" style="table-layout: fixed; word-wrap: break-word">
<tr class="header">
<td width="22%" align="center">最新话题</td>
<td width="22%" align="center">热门主题</td>
<td width="19%" align="center">十大富翁</td>
<td width="19%" align="center">发贴高手</td>
<td width="18%" align="center">今日之星</td>
</tr>
<tr>
<td bgcolor="#FFFFFF" onMouseOver ="this.style.backgroundColor='#F1F9FE'" onMouseOut ="this.style.backgroundColor='#FFFFFF'"><script language="JavaScript" src="http://www.5ibadminton.com/api/javascript.php?function=threads&maxlength=50&startrow=0&picpre=&items=10&digest=0&newwindow=1&highlight=0&forum=0&author=0&dateline=0&orderby=lastpost&verify=e2b131b9da85d4287e6911c05ccd4cd2"></script>
</td>
<td bgcolor="#FFFFFF" onMouseOver ="this.style.backgroundColor='#F1F9FE'" onMouseOut ="this.style.backgroundColor='#FFFFFF'"><script language="JavaScript" src="http://www.5ibadminton.com/api/javascript.php?function=threads&maxlength=50&startrow=0&picpre=&items=10&digest=0&newwindow=1&highlight=0&forum=0&author=0&dateline=0&orderby=views&verify=6ad2c3bf7a10b832892e9beaa8ee45b6"></script>
<td bgcolor="#FFFFFF" onMouseOver ="this.style.backgroundColor='#F1F9FE'" onMouseOut ="this.style.backgroundColor='#FFFFFF'"><script language="JavaScript" src="http://www.5ibadminton.com/api/javascript.php?function=memberrank&startrow=0&items=10&newwindow=1&orderby=credits&verify=f92b346c6b8e5e677d756a8c5dd8d7d5"></script>
</td>
<td bgcolor="#FFFFFF" onMouseOver ="this.style.backgroundColor='#F1F9FE'" onMouseOut ="this.style.backgroundColor='#FFFFFF'"><script language="JavaScript" src="http://www.5ibadminton.com/api/javascript.php?function=memberrank&startrow=0&items=10&newwindow=1&orderby=posts&verify=14da9ced3af2cdf4bd9265058101b8bc"></script>
</td>
<td bgcolor="#FFFFFF" onMouseOver ="this.style.backgroundColor='#F1F9FE'" onMouseOut ="this.style.backgroundColor='#FFFFFF'"><script language="JavaScript" src="http://www.5ibadminton.com/api/javascript.php?function=memberrank&startrow=0&items=10&newwindow=1&orderby=todayposts&verify=394acf17bcf5d1fe1e63a08cd3f7a9c3"></script>
</td>
</tr>
</table></td></tr></table>
把上面的这些js代码换成你自己的代码
<script language="JavaScript" src="http://www.5ibadminton.com/api/javascript.php?function=memberrank&startrow=0&items=10&newwindow=1&orderby=todayposts&verify=394acf17bcf5d1fe1e63a08cd3f7a9c3"></script>
这样就可以用js调用了!!
文章来源于领测软件测试网 https://www.ltesting.net/
版权所有(C) 2003-2010 TestAge(领测软件测试网)|领测国际科技(北京)有限公司|软件测试工程师培训网 All Rights Reserved
北京市海淀区中关村南大街9号北京理工科技大厦1402室 京ICP备2023014753号-2
技术支持和业务联系:info@testage.com.cn 电话:010-51297073