3.1 SP2 的友情鏈接的修改。_風(fēng)訊Cms教程
'友情鏈接
Function FriendLink(LinkTypeStr,TitleNumberStr,PicWidthStr,PicHeightStr,LinkNumberStr,RowNumberStr,RowHeightStr,NewWindowTF)
Dim FriendLinkSql,RsFriendLinkObj,i
If TitleNumberStr <> "" then
TitleNumberStr = Cint(TitleNumberStr)
Else
TitleNumberStr = 10
End If
IF NewWindowTF = "1" Then
NewWindowTF = "target=""_blank"""
Else
NewWindowTF = ""
End IF
Select Case RefreshType
Case "Index"
FriendLinkSql = "Select Top " & LinkNumberStr & " * from FS_FriendLink where Address like '%1%' and Type=" & LinkTypeStr
Case "Class"
FriendLinkSql = "Select Top " & LinkNumberStr & " * from FS_FriendLink where Address like '%2%' and Type=" & LinkTypeStr
Case "News"
FriendLinkSql = "Select Top " & LinkNumberStr & " * from FS_FriendLink where Address like '%3%' and Type=" & LinkTypeStr
Case "Special"
FriendLinkSql = "Select Top " & LinkNumberStr & " * from FS_FriendLink where Address like '%4%' and Type=" & LinkTypeStr
Case Else
FriendLinkSql = ""
End Select
if FriendLinkSql <> "" then
Dim TTTemp,Temp_Str
Set RsFriendLinkObj = Conn.Execute(FriendLinkSql)
if Not RsFriendLinkObj.Eof then
if RowHeightStr <> "" then RowHeightStr = " Height=""" & RowHeightStr & """"
FriendLink = "<table cellpadding=""2"" bgColor=""#cccccc"" cellspacing=""1"" border=""0"" width=""100%"">"
do while Not RsFriendLinkObj.Eof
FriendLink = FriendLink & "<tr bgColor=""#f5f5f5"">"
for i = 1 to RowNumberStr
if LinkTypeStr = "0" then
FriendLink = FriendLink & "<td " & RowHeightStr & " align=""center""><a href=""" & RsFriendLinkObj("Url") & """ "& NewWindowTF &">" & GotTopic(RsFriendLinkObj("Name"),TitleNumberStr) & "</a></TD>" '<TD>從上面移下來用于文字友情鏈接成為表格,當(dāng)然可以設(shè)表格為其他顏色
else
TTTemp = RsFriendLinkObj("Content")
If Instr(1,LCase(TTTemp),"0/'>http://",1)<>0 then
Temp_Str = TTTemp
Else
Temp_Str = AvailableDoMain & TTTemp
End If
FriendLink = FriendLink & "<a href=""" & RsFriendLinkObj("Url") & """ "& NewWindowTF &"><img border=""0"" width=""" & PicWidthStr & """ Height=""" & PicHeightStr & """ src=""" &Temp_Str & """></a> " '加空格用于圖片友情連接中的距離 同理可加表格
end if
RsFriendLinkObj.MoveNext
if RsFriendLinkObj.Eof then Exit For
Next
FriendLink = FriendLink & "</tr>"
Loop
FriendLink = FriendLink & "</table>"
else
FriendLink = ""
end if
Set RsFriendLinkObj = Nothing
else
FriendLink = ""
end if
End Function
- 最簡單的欄目切換方法(樣式系列之欄目切換篇2)
- 我也放個(gè)欄目切換代碼,簡簡單單的。
- 搜狐女性頻道幻燈效果(幻燈系列之flash特效篇)
- 有效控制新聞內(nèi)容的圖片的尺寸
- 現(xiàn)提供增加<目錄生成規(guī)則>的方法!
- 風(fēng)訊里面上下篇標(biāo)簽DIV模式下浮動(dòng)的解決方法!
- 風(fēng)訊目錄路徑自由選擇的實(shí)現(xiàn)方法
- 新聞列表讀取內(nèi)容時(shí)去掉html代碼
- 添加文字廣告的解決方案!
- 發(fā)些滾動(dòng)的代碼
- 標(biāo)題下的分隔線在4.0中如何設(shè)置,還有標(biāo)題的行間距
- 隨時(shí)更換模版、廣告等,無須重新生成整站,共享出來供討論
風(fēng)訊Cms教程教程Rss訂閱Cms教程搜索
風(fēng)訊Cms教程推薦
- 風(fēng)訊CMS后臺(tái)“系統(tǒng)參數(shù),新聞系統(tǒng)”視頻教程!
- 標(biāo)簽內(nèi)容限制2000字符怎么辦?
- 添加標(biāo)簽編輯時(shí),的字體設(shè)置
- 3.1 SP2 的友情鏈接的修改。
- 解決最新下載可能出現(xiàn)的標(biāo)題和導(dǎo)航圖片被強(qiáng)制換行的問題
- 3.2.sp1實(shí)現(xiàn)通用標(biāo)簽[方法說明]
- 給編輯器加上“文字顏色”功能
- 風(fēng)訊系統(tǒng)自建標(biāo)簽的方法和使用
- FOOSUN3.2sp1升級到FOOSUN4.0SP1需要做哪些工作?
- 不能更新,數(shù)據(jù)庫或?qū)ο鬄橹蛔x的解決方法
- 相關(guān)鏈接:
- 教程說明:
風(fēng)訊Cms教程-3.1 SP2 的友情鏈接的修改。
。