|
![]() |
名片设计 CorelDRAW Illustrator AuotoCAD Painter 其他软件 Photoshop Fireworks Flash |
|
<% @ LANGUAGE="VBSCRIPT" %> <% OPTION EXPLICIT %> <!--#include file="DataConn.asp"--> <!--#include file="FuncSet.asp"--> <% dim rs,sql,IDa,IDb,s,RegUser,a,b,c Set rs=Server.CreateObject("ADODB.recordset") sql="Select * from UserInfo ORDER BY iPerience DESC" rs.Open sql,ConnStr,1,1 RegUser=rs.RecordCount IDa=1 IDb=2 %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> <meta http-equiv="pragma" content="no-cache"> <link rel="stylesheet" type="text/css" href="Site.css"> <title>龙虎排行</title> </head> <body class="detail"> <table border="0" width="70%" cellpadding="0" align="center"> <tr> <td width="16%" bgcolor="#FFFFFF" align="center"><font color="#0000A0">名次</font></td> <td width="16%" class="Listline" align="center"><font color="#0000A0">网名</font></td> <td width="17%" class="Listline" align="center"><font color="#0000A0">帖子数</font></td> <td width="17%" bgcolor="#FFFFFF" align="center"><font color="#0000A0">名次</font></td> <td width="17%" class="Listline" align="center"><font color="#0000A0">网名</font></td> <td width="17%" class="Listline" align="center"><font color="#0000A0">帖子数</font></td> </tr> <% if RegUser<10 then a=RegUser/2 else a=5 end if for s=1 to a %> <tr> <td width="16%" bgcolor="#FFFFFF" align="center" valign="bottom"><font size="2" color="#0000A0"><b><%=IDa%></b></font> </td> <td class="Listline" align="center" style="cursor:hand" onmouseup="window.open(\\\'UserInfo.asp?UserName=<%=rs("UserName")%>\\\',\\\'Call\\\',\\\'width=350,height=400,left=300,top=100,toolbar=no,status=no\\\')"><font color=#0000CC><%=rs("UserName")%></font></td> <td class="Listline" align="center"><%=rs("iPerience")%></td> </td> <%rs.movenext%> <td width="17%" bgcolor="#FFFFFF" align="center" valign="bottom"><font size="2" color="#0000A0"><b><%=IDb%></b></font> </td> <td class="Listline" align="center" style="cursor:hand" onmouseup="window.open(\\\'UserInfo.asp?UserName=<%=rs("UserName")%>\\\',\\\'Call\\\',\\\'width=350,height=400,left=300,top=100,toolbar=no,status=no\\\')"><font color=#0000CC><%=rs("UserName")%></font></td> <td class="Listline" align="center"><%=rs("iPerience")%></td> </tr> <% IDa=IDa+2 IDb=IDb+2 rs.movenext next %> <% if RegUser>20 then for b=11 to 15 %> <td class="Listline" align="center" style="cursor:hand" onmouseup="window.open(\\\'UserInfo.asp?UserName=<%=rs("UserName")%>\\\',\\\'Call\\\',\\\'width=350,height=400,left=300,top=100,toolbar=no,status=no\\\')"><font color=#0000CC><%=rs("UserName")%></font></td> <% rs.movenext%> <% next end if %> <% if RegUser>20 then for c=16 to 20 %> <td class="Listline" align="center" style="cursor:hand" onmouseup="window.open(\\\'UserInfo.asp?UserName=<%=rs("UserName")%>\\\',\\\'Call\\\',\\\'width=350,height=400,left=300,top=100,toolbar=no,status=no\\\')"><font color=#0000CC><%=rs("UserName")%></font></td> <% rs.movenext%> <% next end if %> </table> </body> </html> 返回类别: 教程 上一教程: 用ASP将数据转为XML文件下载 下一教程: 检查字符串STRSOURCE是否为BIG或BIG5码 您可以阅读与"仿照CHINAASP论坛中TOP10写的部分显示代码"相关的教程: · 截取固定长度字符串显示在页面,多余部分显示为省略号(区分汉字和字符) · ASP技术在论坛中的运用(二)(吐血推荐!!!!) · ASP技术在论坛中的运用(八) · 抓取动网论坛EMAIL地址的一段代码 · ASP技术在论坛中的运用(七)(吐血推荐!!!!) |
![]() ![]() |
快精灵印艺坊 版权所有 |
首页![]() ![]() ![]() ![]() ![]() ![]() ![]() |