修改5ucms文件:inc/class_content.asp
邱嵩松提示,可以修改好后保留一份,方便将来再次使用,查代代码:
- If Len(Ra("JumpUrl")) > 0 Then
- Dim JumpALT
- JumpALT = "<head><meta http-equiv=""Content-Type"" content=""text/html; charset=" & response.charset & """ /><title>" & Ra("Title") & "</title><meta http-equiv=""Refresh"" content=""2;URL=" & Ra("JumpUrl") & """ /></head><body><div style=""text-align:left;margin:10px;""><div style=""padding:6px;font-size:14px;border:solid 1px #CCCCCC;background-color:#F8F8F5;""><h4 style=""padding:5px;font-size:16px;font-weight:bold;display:inline;"">" & Ra("Title") & "</h4><div style=""padding:5px;color:#666666;font-size:12px;"">" & Ra("Description") & "</div></div></div></body></html>"
- If iPage = 1 Then CreateContent = JumpALT
- If Createhtml = 1 Or Createhtml = 3 Then Call CreateFile(JumpALT, Filepath) ' 保存
- Ra.Close: Exit Function
- End If
将以上代码替换成:
- If Len(Ra("JumpUrl")) > 0 Then
- Dim JumpALT
- JumpALT = "<head><meta http-equiv=""Refresh"" content=""0;URL=" & Ra("JumpUrl") & """ /></head>"
- If iPage = 1 Then CreateContent = JumpALT
- If Createhtml = 1 Or Createhtml = 3 Then Call CreateFile(JumpALT, Filepath) ' 保存
- Ra.Close: Exit Function
- End If