http://www.djwin.com/djtest.asp
这是个测试页面,未发布的.
求助!
我的这个页面,最新更新那一栏是两个一样的内容.
如何将他们变成不是一样的? 就是说让他们自动排列40个最新的舞曲来。
我将代码贴在下面的:
http://www.djwin.com/djtest.asp
这是个测试页面,未发布的.
求助!
我的这个页面,最新更新那一栏是两个一样的内容.
如何将他们变成不是一样的? 就是说让他们自动排列40个最新的舞曲来。
我将代码贴在下面的:
<TR>
<TD class=bkdown width=10 bgColor=#333333> </TD>
<TD class=bkdown width=460 bgColor=#333333>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD class=kg01 colspan="3"> </TD></TR>
<%
i=0
set rs=conn.execute("SELECT top 20 * FROM musiclist order by id desc")
if not Rs.eof then
do while not rs.eof
i=i+1
%>
<form name="form2" onsubmit="javascript:return lbsong();" target="Listen" action="playsong.asp">
<TR>
<td width="1%" align=center height="5">
<input type="checkbox" name="songid" value="<%=rs(0)%>" style="background-color: #333333">
</td>
<TD class=zt00 width="40%">
<%=i%>·<a href="javascript:window_open('ShowMusic.asp?id=<%=rs("id")%>','ShowMusic','width=366,height=120')" title='<%=rs("musicname")%>'><%=rs("musicname")%><%=left(rs("musicname"),0)%><% if len(rs("musicname"))>12 then Response.Write "" %></a>
</TD>
<TD class=zt00 width="2%">
<a href="http://tl.a8.com/search.asp?uid=1289&s_type=1&ad=41&keyword=<%=rs("musicname")%>" target="_blank"><img src=images/ring.gif border=0 alt=下载本曲手机铃声 style=cursor:hand></a></TD>
<td width="1%" align=center height="5">
<input type="checkbox" name="songid" value="<%=rs(0)%>" style="background-color: #333333">
</td>
<TD class=zt00 width="40%">
<%=i%>·<a href="javascript:window_open('ShowMusic.asp?id=<%=rs("id")%>','ShowMusic','width=366,height=120')" title='<%=rs("musicname")%>'><%=rs("musicname")%><%=left(rs("musicname"),0)%><% if len(rs("musicname"))>12 then Response.Write "" %></a>
</TD>
<TD class=zt00 width="2%">
<a href="http://tl.a8.com/search.asp?uid=1289&s_type=1&ad=41&keyword=<%=rs("musicname")%>" target="_blank"><img src=images/ring.gif border=0 alt=下载本曲手机铃声 style=cursor:hand></a></TD>
</TR>
<%
rs.movenext
loop
else
response.write "尚无收录"
end if
rs.close
%>
<TR>
<TD class=kg01 colspan="3"></TD></TR>
<tr>
<td colspan=8 align=center>
<input type="button" value="全 选" onClick="CheckAll(this.form)" title="选择显示的所有歌曲" style="border-style:solid; border-width:0px; padding:0; font-size:9pt; color:#000000; background-color:#5D5D5D">
<input type="button" value="反 选" onClick="CheckOthers(this.form)" title="反向选择歌曲" style="border-style:solid; border-width:0px; padding:0; font-size:9pt; color:#000000; background-color:#5D5D5D">
<input type="submit" value="连 播" title="请先选择你想听的歌曲后再点击连播" style="border-style:solid; border-width:0px; padding:0; font-size:9pt; color:#000000; background-color:#5D5D5D">
<IMG height=9 src="images/more.gif" width=29><a href="http://www.djwin.com/speciallist.asp" target="_blank" alt=更多专辑>更多专辑</a></td>
</tr>
</form>
</TBODY></TABLE></TD></TR>
<form name="form2" onsubmit="javascript:return lbsong();" target="Listen" action="playsong.asp">
<TR>
<%
i=0
set rs=conn.execute("SELECT top 40 * FROM musiclist order by id desc")
if not Rs.eof then
do while not rs.eof
i=i+1
%>
<td width="1%" align=center height="5">
<input type="checkbox" name="songid" value="<%=rs(0)%>" style="background-color: #333333">
</td>
<TD class=zt00 width="40%">
<%=i%>·<a href="javascript:window_open('ShowMusic.asp?id=<%=rs("id")%>','ShowMusic','width=366,height=120')" title='<%=rs("musicname")%>'><%=rs("musicname")%><%=left(rs("musicname"),0)%><% if len(rs("musicname"))>12 then Response.Write "" %></a>
</TD>
<TD class=zt00 width="2%">
<a href="http://tl.a8.com/search.asp?uid=1289&s_type=1&ad=41&keyword=<%=rs("musicname")%>" target="_blank"><img src="images/ring.gif" border=0 alt="下载本曲手机铃声" style="cursor:hand"></a></TD>
<%
if i mod 2=0 then
Response.Write("</TR><TR>")
rs.movenext
loop
else
response.write "尚无收录"
end if
rs.close
%>
</TR>
<tr>
<td colspan=8 align=center>
<input type="button" value="全 选" onClick="CheckAll(this.form)" title="选择显示的所有歌曲" style="border-style:solid; border-width:0px; padding:0; font-size:9pt; color:#000000; background-color:#5D5D5D">
<input type="button" value="反 选" onClick="CheckOthers(this.form)" title="反向选择歌曲" style="border-style:solid; border-width:0px; padding:0; font-size:9pt; color:#000000; background-color:#5D5D5D">
<input type="submit" value="连 播" title="请先选择你想听的歌曲后再点击连播" style="border-style:solid; border-width:0px; padding:0; font-size:9pt; color:#000000; background-color:#5D5D5D">
<IMG height=9 src="images/more.gif" width=29><a href="http://www.djwin.com/speciallist.asp" target="_blank" alt=更多专辑>更多专辑</a></td>
</tr>
</form>
[此贴子已经被作者于2006-3-24 19:06:01编辑过]