风讯官方论坛FoosunCMS交流区Foosun3.x安装使用如何在最新新闻后边加new图标????

1  /  1  页   1 跳转 查看:2028

标题: 如何在最新新闻后边加new图标????

如何在最新新闻后边加new图标????

要在最新新闻后边加new图标,应该怎么解决??
引用
 

<%if (date()-rs("datel"))<5 then
%>
<img src="image/hot.gif" width="26" height="10"></img>
<%
end if %>


date1是新闻的添加时间


[此贴子已经被作者于2005-10-19 11:31:31编辑过]

风迅会更好!
1gwww.com,1.3G双线空间160元。支持dotNETCMS
QQ:4657909
引用
 

把这段代码加在哪里??

引用
 

加在你要显示图片的地方啊
风迅会更好!
1gwww.com,1.3G双线空间160元。支持dotNETCMS
QQ:4657909
引用
 

我想在首页显示,直接加在首页上能行嘛?
引用
 

这是ASP
风迅会更好!
1gwww.com,1.3G双线空间160元。支持dotNETCMS
QQ:4657909
引用
 

猪哥,你为人为到底就写出来吧.
引用
 

已经写好了哇。。这得用到asp 页面里头。。

风迅会更好!
1gwww.com,1.3G双线空间160元。支持dotNETCMS
QQ:4657909
引用
 

找到refreshindex.asp文件,修改相关东西吧。
引用
 

以下是引用netfound在2005-10-19 17:22:00的发言:
找到refreshindex.asp文件,修改相关东西吧。


怎么修改呢??
引用
 

上面那个文件在哪个文件夹下面呢???
引用
 

我也正需要这个呢?说说具体怎么改???

[em02]
引用
 

在foosun/admin/refresh/下面
引用
 

是放到Function.asp里吧..
引用
 

在 新闻标签里边的  标题后边加上

<%if (date()-rs("datel"))<5 then
%>
<img src="image/hot.gif" width="26" height="10"></img>
<%
end if %>

引用
 

新闻标签在哪里呢?在哪个新闻标签?不要吊人胃口呀?老大
引用
 

这是那个文件你想改那?


<% Option Explicit %>
<!--#include file="../../../Inc/Function.asp" -->
<!--#include file="../../../Inc/Const.asp" -->
<!--#include file="../../../Inc/Cls_DB.asp" -->
<!--#include file="RefreshFunction.asp" -->
<!--#include file="SelectFunction.asp" -->
<%
Dim DBC,Conn
Set DBC = New DataBaseClass
Set Conn = DBC.OpenConnection()
Set DBC = Nothing
%>
<!--#include file="Function.asp" -->
<!--#include file="../../../Inc/Session.asp" -->
<!--#include file="../../../Inc/CheckPopedom.asp" -->
<%
if Not JudgePopedomTF(Session("Name"),"P030100") then Call ReturnError1()
Dim SaveFilePath,FSOObj,FSOObj1,PromptInfo,FileStreamObj,FileContent,FileObj,TempletFileName,RefreshTempFileName
PromptInfo = ""
if SysRootDir = "" then
TempletFileName = Server.MapPath("/" & TempletDir) & "\Index.htm"
SaveFilePath = "/index."&confimsn("IndexExtName")&""
else
TempletFileName = Server.MapPath("/" & SysRootDir & "/" & TempletDir) & "\Index.htm"
SaveFilePath = "/" & SysRootDir & "/index."&confimsn("IndexExtName")&""
end if
Set FSOObj = Server.CreateObject(G_FS_FSO)
if FSOObj.FileExists(TempletFileName) = False then
PromptInfo = "Ê×ҳģ°åIndex.htm²»´æÔÚ£¬ÇëÌí¼ÓÊ×ҳģ°åºóÔÙÉú³É£¡"
Call PromptFunction
else
'On Error Resume Next
SetRefreshValue "Index",""
GetAvailableDoMain
Set FileObj = FSOObj.GetFile(TempletFileName)
Set FileStreamObj = FileObj.OpenAsTextStream(1)
if Not FileStreamObj.AtEndOfStream then
  FileContent = FileStreamObj.ReadAll
  FileContent = ReplaceAllServerFlag(ReplaceAllLable(FileContent))
else
  FileContent = "Ä£°åÄÚÈÝΪ¿Õ"
end if
Set FileStreamObj = Nothing
Select Case AvailableRefreshType
  Case 0
  FSOSaveFile FileContent,SaveFilePath
  Case 1
  SaveFile FileContent,SaveFilePath
  Case Else
  FSOSaveFile FileContent,SaveFilePath
End Select
PromptInfo = "Éú³É³É¹¦"
Call PromptFunction
end if
Set FSOObj = Nothing
Sub PromptFunction()
Set Conn = Nothing
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ÐÂÎÅÊ×Ò³Éú³É¹ÜÀí</title>
</head>
<link rel="stylesheet" href="../../../CSS/FS_css.css">
<body topmargin="2" leftmargin="2" oncontextmenu="return false;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td height="28" class="ButtonListLeft">
<div align="center"><strong>ÐÂÎÅÊ×Ò³Éú³É¹ÜÀí</strong></div></td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td> </td>
  </tr>
  <tr>
    <td> </td>
  </tr>
  <tr>
    <td><div align="center"><font color="#FF0000">·µ»ØÐÅÏ¢: <a href="<%=AvailableDoMain%>/index.<%=confimsn("IndexExtName")%>" target="_blank">ä¯ÀÀÊ×Ò³</a></font></div></td>
  </tr>
  <tr>
    <td><div align="center">
        <% = PromptInfo %>
      </div></td>
  </tr>
</table>
</body>
</html>
<%
End Sub
%>

引用
 

可能是改RefreshFunction.asp的892行

引用
 

以下是引用酷疯子在2005-11-15 10:08:00的发言:
在 新闻标签里边的  标题后边加上

<%if (date()-rs("datel"))<5 then
%>
<img src="image/hot.gif" width="26" height="10"></img>
<%
end if %>


酷哥,再问一下,是在哪个文件里!!谢谢!

引用
 

具体怎么添加,可以说详细一点吗?
引用
 

救命啊,我等着急用呢。。55555大家救救我吧
引用
 

还是没有人来救我。5555

引用
 

神啊,救救我 吧。我等着急用呢
引用
 

怎么就没有人来帮我呢?我也是风讯的忠实FANS啊。
引用
 

我想知道如何改?帮忙一下吧.

引用
 

搜索了几个相关的帖子,包括修改RefreshFunction文件的,都没看明白到底应该如何修改,很多人需要的!

<<如果>>
如果花开了,就欣赏,学会感激
如果花谢了,就怀念,努力感激
如果心裂了,就忍受,学习感激
如果心灰了,就忘记,尽量感激
引用
 

回复:如何在最新新闻后边加new图标????

呵呵  简直有点可爱  ccyhyxt 都给你说了怎么加 杂你还不会噢
引用