同是图片和标题新闻的时候,用图片新闻标签调用,链接不对_风讯Cms教程

编辑Tag赚U币
教程Tag:暂无Tag,欢迎添加,赚取U币!

将 Admin/Refresh/RefreshFunction.asp 文件的

1638 -1651 行的下列代码

if ShowTitleStr = "1" then
if RsPicObj("SaveFilePath") = "/" then
TitleHTMLStr = TitleHTMLStr & "<td>" & Chr(13) & Chr(10) & "<a " & OpenModeStr & " Class=""" & CssFileStr & """ href=""" & AvailableDoMain & RsPicObj("SaveFilePath") & RsPicObj("ClassEName") & "/" & RsPicObj("FileName") & "." & RsPicObj("NewsFileExtName") & """ title="""& RsPicObj("Title")&""">" & GotTopic(RsPicObj("Title"),TitleNumberStr) & "</a></td>" & Chr(13) & Chr(10)
else
TitleHTMLStr = TitleHTMLStr & "<td>" & Chr(13) & Chr(10) & "<a " & OpenModeStr & " Class=""" & CssFileStr & """ href=""" & AvailableDoMain & RsPicObj("SaveFilePath") & "/" & RsPicObj("ClassEName") & "/" & RsPicObj("FileName") & "." & RsPicObj("NewsFileExtName") & """ title="""& RsPicObj("Title")&""">" & GotTopic(RsPicObj("Title"),TitleNumberStr) & "</a></td>" & Chr(13) & Chr(10)
end if
else
TitleHTMLStr = ""
end if
if RsPicObj("SaveFilePath") = "/" then
PicNews = PicNews & "<td>" & Chr(13) & Chr(10) & "<a " & OpenModeStr & " Class=""" & CssFileStr & """ href=""" & AvailableDoMain & RsPicObj("SaveFilePath") & RsPicObj("ClassEName") & "/" & RsPicObj("FileName") & "." & RsPicObj("NewsFileExtName") & """ title="""& RsPicObj("Title")&""">" & "<img border=""0"" src=""" & AvailableDoMain & RsPicObj("PicPath") & """ width=""" & PicWidthStr & """ height=""" & PicHeightStr & """>" & "</a></td>" & Chr(13) & Chr(10)
else
PicNews = PicNews & "<td>" & Chr(13) & Chr(10) & "<a " & OpenModeStr & " Class=""" & CssFileStr & """ href=""" & AvailableDoMain & RsPicObj("SaveFilePath") & "/" & RsPicObj("ClassEName") & "/" & RsPicObj("FileName") & "." & RsPicObj("NewsFileExtName") & """ title="""& RsPicObj("Title")&""">" & "<img border=""0"" src=""" & AvailableDoMain & RsPicObj("PicPath") & """ width=""" & PicWidthStr & """ height=""" & PicHeightStr & """>" & "</a></td>" & Chr(13) & Chr(10)
end if

替换为

if ShowTitleStr = "1" then
if RsPicObj("SaveFilePath") = "/" then
if RsPicObj("HeadNewsTF")=1 then
TitleHTMLStr = TitleHTMLStr & "<td>" & Chr(13) & Chr(10) & "<a " & OpenModeStr & " Class=""" & CssFileStr & """ href=""" & RsPicObj("HeadNewsPath") & """ title="""& RsPicObj("Title")&""">" & GotTopic(RsPicObj("Title"),TitleNumberStr) & "</a></td>" & Chr(13) & Chr(10)
else
TitleHTMLStr = TitleHTMLStr & "<td>" & Chr(13) & Chr(10) & "<a " & OpenModeStr & " Class=""" & CssFileStr & """ href=""" & AvailableDoMain & RsPicObj("SaveFilePath") & RsPicObj("ClassEName") & "/" & RsPicObj("FileName") & "." & RsPicObj("NewsFileExtName") & """ title="""& RsPicObj("Title")&""">" & GotTopic(RsPicObj("Title"),TitleNumberStr) & "</a></td>" & Chr(13) & Chr(10)

查看更多 风讯cms教程  风讯cms模板

共2页上一页12下一页
来源:模板无忧//所属分类:风讯Cms教程/更新时间:2006-06-14
相关风讯Cms教程