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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[原创]童虎老师的whatsnew中的任意项目在首页下拉

[复制链接]
屁股超人 发表于 2005-8-24 14:25:44 | 显示全部楼层
$cachelife        = 300;                // 缓存更新时间 单位:秒 默认为:1800

请问以上这个要去那里改?
回复

使用道具 举报

 楼主| lu5266 发表于 2005-8-24 14:33:44 | 显示全部楼层
原帖由 屁股超人 于 2005-8-24 14:25 发表
$cachelife        = 300;                // 缓存更新时间 单位:秒 默认为:1800

请问以上这个要去那里改?


你安装了老师的whatsnew了吗?

安装了的话

就是在

whatsnew.php

里啊

还有安装好了话

给个演示
看看到底移位多少了

[ 本帖最后由 lu5266 于 2005-8-24 14:36 编辑 ]
回复

使用道具 举报

屁股超人 发表于 2005-8-24 14:37:26 | 显示全部楼层
安装whatsnew了,不过里头找不到这一行字!
我只是找到
$cache_expire = 1800;        // 缓存过期时间(秒)
不懂这是什么?

我要做的东西是和大大你一样,每5分钟刷新最新资料一次,不然太久好像就没有什么意义了!
回复

使用道具 举报

屁股超人 发表于 2005-8-24 14:45:34 | 显示全部楼层
有一点歪了,不过情况比刚才好一些了!
回复

使用道具 举报

 楼主| lu5266 发表于 2005-8-24 15:46:02 | 显示全部楼层
原帖由 屁股超人 于 2005-8-24 14:37 发表
安装whatsnew了,不过里头找不到这一行字!
我只是找到
$cache_expire = 1800;        // 缓存过期时间(秒)
不懂这是什么?

我要做的东西是和大大你一样,每5分钟刷新最新资料一次,不然太久好像就没有什么意义了!



就是这个啊
改为
  1. $cache_expire = 300;
复制代码


就是5分钟了
回复

使用道具 举报

屁股超人 发表于 2005-8-24 16:35:08 | 显示全部楼层
嘻嘻,改到了,谢谢你丫~~~

还有,下拉画面要多移向右边一点,应该要修改什么?
回复

使用道具 举报

 楼主| lu5266 发表于 2005-8-24 17:10:51 | 显示全部楼层
原帖由 屁股超人 于 2005-8-24 16:35 发表
嘻嘻,改到了,谢谢你丫~~~

还有,下拉画面要多移向右边一点,应该要修改什么?

我都尽力了

呵呵
我也想他右移啊

你去模板区问问
有什么解决方法
解决了话

告诉我啊
回复

使用道具 举报

天才白痴梦 发表于 2005-8-25 13:18:29 | 显示全部楼层
我是宰格子   还是那个样子

见演示   http://www.tcmeng.com/bbs
回复

使用道具 举报

 楼主| lu5266 发表于 2005-8-25 13:24:51 | 显示全部楼层
原帖由 天才白痴梦 于 2005-8-25 13:18 发表
我是宰格子   还是那个样子

见演示   http://www.tcmeng.com/bbs



我等下
弄个试试
回复

使用道具 举报

 楼主| lu5266 发表于 2005-8-25 13:41:05 | 显示全部楼层
原帖由 天才白痴梦 于 2005-8-25 13:18 发表
我是宰格子   还是那个样子

见演示   http://www.tcmeng.com/bbs


  1. <html>
  2. <head>
  3. <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
  4. <meta http-equiv="MSThemeCompatible" content="Yes" />
  5. <meta name="keywords" content="黑客技术,免费木马,有问必答 ,小菜交流,游戏木马,黑客原创,黑客攻防,QQ等级,QQ挂机" />
  6. <meta name="generator" content="黑客技术,免费木马,有问必答 ,小菜交流,游戏木马,黑客原创,黑客攻防,QQ等级,QQ挂机" />
  7. <meta name="description" content="天才梦工作室www.tcmeng.com 全国最小黑客技术网,黑客原创地带,免费黑客动画教程,打造一个纯净的黑客技术论坛" />
  8. <meta name="MSSmartTagsPreventParsing" content="TRUE" />

  9. <title>天才梦工作室 - www.tcmeng.com </title>
  10. <style type="text/css">
  11. a:link,a:visited        { text-decoration: none; color: #003366 }
  12. a:hover                        { text-decoration: underline }
  13. body                        { scrollbar-base-color: #c7dcf7; scrollbar-arrow-color: #72b1f8; font-size: 12px; background-image: url("images/bq_blue/bg.gif") ; CURSOR: url('images/Arrow.ani') }
  14. table                        { font-family: Tahoma, Verdana; color: #333333; font-size: 12px }
  15. textarea,input,object        { font-family: Tahoma, Verdana; font-size: 12px;  color: #333333; font-weight: normal; background-color: #c7dcf7 }
  16. select                        { font-family: Arial, Tahoma; font-size: 11px;  color: #333333; font-weight: normal; background-color: #c7dcf7 }
  17. .nav                        { font-family: Tahoma, Verdana; font-size: 12px; font-weight: bold }
  18. .header                        { font-family: Tahoma, Verdana; font-size: 12px; color: #333333; font-weight: bold; background-image: url("images/bq_blue/bg_menu.gif") }
  19. .category                { font-family: Arial, Tahoma; font-size: 12px; color: #000000; background-color: #CADDF6 }
  20. .multi                        { font-family: Arial, Tahoma; font-size: 11px; color: #003366; }
  21. .smalltxt                { font-family: Arial, Tahoma; font-size: 11px }
  22. .mediumtxt                { font-family: Tahoma, Verdana; font-size: 12px; color: #000000 }
  23. .bold                        { font-weight: bold }
  24. blockquote { margin-left:20px;  margin-right:20px; border:#72b1f8  dashed  1px; padding:5px; background-color:#ebf1ff}
  25. .code { margin-left:20px;  margin-right:20px; padding:5px; background-color:#ebf1ff}
  26. .menuskin {
  27.         filter: Alpha(Opacity=80);
  28.         BORDER: #666666 1px solid; VISIBILITY: hidden; FONT: 12px Verdana;
  29.         POSITION: absolute;
  30.         BACKGROUND-COLOR:#FFFFFF;
  31.         background-repeat : repeat-y;
  32.         }
  33. .menuskin A {
  34.         PADDING-RIGHT: 9px; PADDING-LEFT: 7px; COLOR: black; TEXT-DECORATION: none; behavior:url(inc/noline.htc);
  35.         }
  36. #mouseoverstyle {
  37.         BACKGROUND-COLOR: #F2F5FB; margin:2px; padding:0px; border:#8396C3 1px solid;
  38.         }
  39. #mouseoverstyle A {
  40.         COLOR: black
  41. }
  42. .menuitems{
  43.         margin:2px;padding:1px;word-break:keep-all;
  44. }
  45. </style><script type="text/javascript" src="include/common.js"></script>
  46. </head>
  47. <body leftmargin="0" rightmargin="0" topmargin="0">



  48. <!-- whatsnew  hack -->
  49. <table  id=hot_topic_board border="0" cellspacing="0" cellpadding="0" width="99%" bgcolor="#72b1f8" align="center"><tr><td>
  50. </td></tr></table>

  51. <br>
  52. <table onmouseover=show_hot_topic(hot_topic,1) border="0" cellspacing="1" cellpadding="1"  height="26" width="99%" bgcolor="#72b1f8" align="center">

  53. <tr class="header">

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

  59. </table>
  60. <div id=hot_topic  style='position:absolute;visibility:hidden' >
  61. <table cellspacing="1" cellpadding="1" border="0" width="99%" align="center" bgcolor="#72b1f8" align=right>
  62. <tr>

  63. <td width="25%"  bgcolor="#ebf1ff" onMouseOver ="this.style.backgroundColor='#c7dcf7'" onMouseOut ="this.style.backgroundColor='#ebf1ff'">
  64. <script src="http://www.tcmeng.com/bbs/whatsnew.php?feature=1&length=28&orderby=3&items=10&digest=0"></script>

  65. </td>
  66. <td width="25%"  bgcolor="#ebf1ff" onMouseOver ="this.style.backgroundColor='#c7dcf7'" onMouseOut ="this.style.backgroundColor='#ebf1ff'">
  67. <script src="http://www.tcmeng.com/bbs/whatsnew.php?feature=1&orderby=0&length=28&items=10&digest=0"></script>

  68. </td>

  69. <td width="25%"  bgcolor="#ebf1ff" onMouseOver ="this.style.backgroundColor='#c7dcf7'" onMouseOut ="this.style.backgroundColor='#ebf1ff'">
  70. <script src="http://www.tcmeng.com/bbs/whatsnew.php?feature=1&orderby=0&length=28&items=10&digest=1"></script>

  71. </td>

  72. <td width="25%"  bgcolor="#ebf1ff" onMouseOver ="this.style.backgroundColor='#c7dcf7'" onMouseOut ="this.style.backgroundColor='#ebf1ff'">
  73. <script src="http://www.tcmeng.com/bbs/whatsnew.php?feature=1&length=28&orderby=1&items=10"></script>
  74. </td>



  75. </tr>
  76. </table></div>


  77. <script language=javascript>
  78. var objname = "";
  79. var H1Visible = 0;
  80. hot_topic.style.left=hot_topic_board.offsetLeft
  81. function show_hot_topic(objname,showmethod){
  82. if (objname != ""){
  83. if (showmethod==1){
  84. objname.style.visibility="visible";
  85. H1Visible = 1;}
  86. else{
  87. objname.style.visibility="hidden";
  88. H1Visible = 0; }
  89. }
  90. }
  91. </script>
  92. <script language="javascript">

  93. var where = "";
  94. function checkwhere(e) {
  95. if (document.layers){
  96. xCoord = e.x;
  97. yCoord = e.y;
  98. }
  99. else if (document.all){
  100. xCoord = event.clientX;
  101. yCoord = event.clientY;
  102. }
  103. else if (document.getElementById){
  104. xCoord = e.clientX;
  105. yCoord = e.clientY;
  106. }
  107. yCoord=yCoord+document.body.scrollTop;
  108. 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)
  109. show_hot_topic(hot_topic,0);
  110. }
  111. document.onmousemove = checkwhere;
  112. if(document.captureEvents) {document.captureEvents(Event.MOUSEMOVE);}
  113. </script><!--whatsnew hack end -->
  114. </body></html>
复制代码


你把这个独立保存一个文件
看看效果(这样就还可以)

但是一放到你的首页那里
就会变了呢
我想不明白 啊
你去模板区问问啊
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-3 13:21 , Processed in 0.118385 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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