如何修改用戶(hù)排行中名次的字體顏色?_動(dòng)易Cms教程
教程Tag:暫無(wú)Tag,歡迎添加,賺取U幣!
問(wèn)題:在動(dòng)易SiteWeaver版中,如何修改默認(rèn)的用戶(hù)排行中名次及文章數(shù)下面的數(shù)值顏色?
解決方法:通過(guò)修改源代碼可以很好的處理這個(gè)問(wèn)題。
修改Include目錄PowerEasy.Common.Front.asp文件中“函數(shù)名:GetTopUser”
For i = 1 To rsTopUser.RecordCount
strTopUser = strTopUser & "<tr>"
If ShowNum = True Then
strTopUser = strTopUser & "<td width='30' align='center'>" & CStr(i) & "</td>"
End If
strTopUser = strTopUser & "<td align='center'><a class='LinkTopUser' href='" & strInstallDir & "ShowUser.asp?ChannelID=" & ChannelID & "&UserID=" & rsTopUser("UserID") & "'>" & rsTopUser("UserName") & "</a></td>"
If ShowPassedItems = True Then
strTopUser = strTopUser & "<td align='center'>" & rsTopUser("PassedItems") & "</td>"
End If
If ShowPoint = True Then
strTopUser = strTopUser & "<td align='center'>" & rsTopUser("UserPoint") & "</td>"
End If
If ShowMoney = True Then
strTopUser = strTopUser & "<td align='center'>" & rsTopUser("Balance") & "</td>"
End If
strTopUser = strTopUser & "</tr>"
rsTopUser.MoveNext
Next
在上面紅色的單元格后加入字體顏色控制代碼即可,比如想改成綠色,可以加<font color='green'></font>。
具體如下:
strTopUser = strTopUser & "<td width='30' align='center'>" & CStr(i) & "</td>"
改為
strTopUser = strTopUser & "<td width='30' align='center'><font color='green'>" & CStr(i) & "</font></td>"
解決方法:通過(guò)修改源代碼可以很好的處理這個(gè)問(wèn)題。
修改Include目錄PowerEasy.Common.Front.asp文件中“函數(shù)名:GetTopUser”
For i = 1 To rsTopUser.RecordCount
strTopUser = strTopUser & "<tr>"
If ShowNum = True Then
strTopUser = strTopUser & "<td width='30' align='center'>" & CStr(i) & "</td>"
End If
strTopUser = strTopUser & "<td align='center'><a class='LinkTopUser' href='" & strInstallDir & "ShowUser.asp?ChannelID=" & ChannelID & "&UserID=" & rsTopUser("UserID") & "'>" & rsTopUser("UserName") & "</a></td>"
If ShowPassedItems = True Then
strTopUser = strTopUser & "<td align='center'>" & rsTopUser("PassedItems") & "</td>"
End If
If ShowPoint = True Then
strTopUser = strTopUser & "<td align='center'>" & rsTopUser("UserPoint") & "</td>"
End If
If ShowMoney = True Then
strTopUser = strTopUser & "<td align='center'>" & rsTopUser("Balance") & "</td>"
End If
strTopUser = strTopUser & "</tr>"
rsTopUser.MoveNext
Next
在上面紅色的單元格后加入字體顏色控制代碼即可,比如想改成綠色,可以加<font color='green'></font>。
具體如下:
strTopUser = strTopUser & "<td width='30' align='center'>" & CStr(i) & "</td>"
改為
strTopUser = strTopUser & "<td width='30' align='center'><font color='green'>" & CStr(i) & "</font></td>"
注意:
1、這個(gè)標(biāo)簽說(shuō)明請(qǐng)參考http://tech.powereasy.net/handbook/cms2006/label/634.html頁(yè){$ShowTopUser()}
2、在這個(gè)函數(shù)中,有幾處這樣的代碼,根據(jù)標(biāo)簽中你使用的排序方式,也就是標(biāo)簽的第二個(gè)參數(shù)來(lái)定,修改相應(yīng)代碼段,當(dāng)然全改也行。
相關(guān)動(dòng)易Cms教程:
- MAC錯(cuò)誤的解決方法
- 如何屏蔽動(dòng)易后臺(tái)導(dǎo)航里的某個(gè)功能菜單?
- 動(dòng)易.NET版本留言自動(dòng)選定欄目方法
- 動(dòng)易SiteFactoty整合Discuz!NT3.0
- 在任意位置獲取根節(jié)點(diǎn)ID標(biāo)簽
- 如何開(kāi)啟SiteWeaver6.8的支持,反對(duì)功能
- Windows 2008安裝動(dòng)易.NET系統(tǒng)之四----動(dòng)易系統(tǒng)安裝篇
- Windows 2008安裝動(dòng)易.NET系統(tǒng)之三----數(shù)據(jù)庫(kù)篇
- Windows 2008安裝動(dòng)易.NET系統(tǒng)之二----IIS、目錄環(huán)境配置篇
- 數(shù)據(jù)庫(kù)修復(fù),SQL Server 2005內(nèi)部操作不一致的處理
- 如何安裝動(dòng)易.net程序權(quán)限配置
- 為什么提示對(duì)Windows系統(tǒng)文件夾下的Temp目錄沒(méi)有訪問(wèn)權(quán)限?
- 相關(guān)鏈接:
- 教程說(shuō)明:
動(dòng)易Cms教程-如何修改用戶(hù)排行中名次的字體顏色?
。