|
主题:请问如何去掉"循环文章栏目列表"外的边框? [收藏主题] | 转到: |
支持(27) | 反对(26) 顶端 底部 |
修改KS_Cls文件夹下Kesion.Label.FunctionCls.asp内容第817行到 '取得Ajax分页函数之间的内容。修改内容如下:注意,修改之前请做好文件备份工作。
'循环列出文章栏目函数
Function GetCirArticleList(ChannelID,Col, FolderCss, MenuBgType, MenuBg, S_C_N, OpenType, num, R_H, T_Len, S_Str, NavType, Nav, MoreType, MoreLink, SplitPic, DateRule, DateAlign, T_Css, PicTF,NewTF,HotTF,P_T,DivID,DivCss,UlID,ULCss,LiID,LICss,LabelID) If LabelID<>"ajax" and P_T>2 Then GetCirArticleList="<span id=""ks" & LabelID & "_-1_" &FCls.RefreshFolderID & "_0""></span>":Exit Function ElseIf P_T>2 Then P_T=P_T-2 End If Dim FolderID, SqlStr,ID,SQL,K,N,TotalNum FolderID = FCls.RefreshFolderID Dim RS:Set RS=Conn.Execute("Select ID From KS_Class Where ChannelID=" & ChannelID & " And DelTF=0 AND TN='" & FolderID & "' ORDER BY FolderOrder") If RS.EOF And RS.BOF Then RS.Close:Set RS = Nothing:GetCirArticleList = "": Exit Function SQL=RS.GetRows(-1):RS.Close:Set RS=Nothing TotalNum=Ubound(SQL,2) Dim TempStr, I, MenuBgStr, ArticleListStr, O_T_S TempStr = "<div>" & vbCrLf MenuBgStr = KS.GetMenuBg(MenuBgType, MenuBg, Col):O_T_S = KS.G_O_T_S(OpenType) For K=0 To TotalNum TempStr = TempStr & "" For I = 1 To Col ID = Trim(SQL(0,N)) ' TempStr = TempStr & "<td valign=""top"" style=""width:" & CInt(100 / CInt(Col)) & "%;"">" & vbCrLf TempStr = TempStr & "<div class=""xxxx"">" TempStr = TempStr & "<div class=""class_list""><div class=""class_list_title"">" & KS.GetClassNP(ID) & "</div><div class=""class_list_more""><a href=""" & KS.GetFolderPath(ID) & """>更多</a></div></div>" & vbCrLf TempStr = TempStr & "<div class=""class_list_list"">" & vbCrLf ArticleListStr = GetArticleList(ChannelID,ID, True, S_C_N, OpenType, 0, num, R_H, T_Len, S_Str, 1, PicTF, NavType, Nav, MoreType, MoreLink, SplitPic, DateRule, DateAlign, T_Css, 0,"",NewTF,HotTF,P_T,DivID,DivCss,UlID,ULCss,LiID,LICss,"ajax") If Trim(ArticleListStr) = "" Then ArticleListStr = "<li>此栏目下没有信息</li>" TempStr = TempStr & ArticleListStr TempStr = TempStr & "</div>" & vbCrLf TempStr = TempStr & "</div>" & vbCrLf N=N+1 If N>=TotalNum+1 Then Exit For Next TempStr = TempStr & "" & vbCrLf If N>=TotalNum+1 Then Exit For Next TempStr = TempStr & "</div>" & vbCrLf GetCirArticleList = TempStr End Function
在CSS中插入:
/* 布局 - 循环栏目页面 */ 这段控制代码。
至于样式的转变,请再修改其中内容即可。我这是一列到底。可以在CSS中控制的,具体请自行研究。
如果看不懂以上代码,请勿随便修改程序内容。 |
|
支持(13) | 反对(13) 顶端 底部 |
<上一主题 | 下一主题 > |