📄 main.asp
字号:
<!--#include file="conn.asp"-->
<html>
<head>
<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body leftmargin="0" topmargin="0" bgcolor="#ECECEC">
<table width="643px" height="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td colspan="4" height="10px">
</td>
</tr>
<tr>
<td width="23px" height="390px">
</td>
<td width="390px" height="390px" background="images/main_12.jpg">
<%
set rs = server.createobject("adodb.recordset")
sql="select top 2 hw_id,sort_name,hw_pic from hw where tuijian=1 order by hw_id DESC"
rs.open sql,conn,1,1
if not rs.EOF then
%>
<div style="position: absolute; left: 46px; top: 235px; width: 155px; height: 151px;"
id="Layer1">
<a href="detail.asp?hw_id=<%=rs("hw_id")%>">
<img class="toppicture" src=pic/<%=rs("hw_pic")%> width="150px" alt=<%=rs("sort_name") %> height="140px" /></a>
</div>
<%
end if
rs.movenext
if not rs.EOF then%>
<div style="position: absolute; left: 214px; top: 236px; width: 155px; height: 151px;"
id="Div1">
<a href="detail.asp?hw_id=<%=rs("hw_id")%>">
<img class="toppicture" src=pic/<%=rs("hw_pic")%> width="150px" alt=<%=rs("sort_name") %> height="140px" /></a>
</div>
<%
end if
rs.close
set rs = nothing
%>
</td>
<td background="images/showpanel.jpg" width=250 height=390>
<script language="JavaScript" type="text/javascript">
<!-- // BannerAD
var bannerAD=new Array();
var adNum=0;
bannerAD[0]='images/showpanel1.jpg';
bannerAD[1]='images/showpanel2.jpg';
bannerAD[2]='images/showpanel3.jpg';
bannerAD[3]='images/showpanel4.jpg';
var preloadedimages=new Array();
for (i=1;i<bannerAD.length;i++){
preloadedimages[i]=new Image();
preloadedimages[i].src=bannerAD[i];}
function setTransition(){
if (document.all){
bannerADrotator.filters.revealTrans.Transition=Math.floor(Math.random()*23);
bannerADrotator.filters.revealTrans.apply();}}
function playTransition(){
if (document.all)
bannerADrotator.filters.revealTrans.play()}
function nextAd(){
if(adNum<bannerAD.length-1)adNum++ ;
else adNum=0;
setTransition();
document.images.bannerADrotator.src=bannerAD[adNum];
playTransition();
theTimer=setTimeout('nextAd()', 5000);}
//-->
</script>
<img style="filter: revealTrans(duration=2,transition=20); width: 250px; height: 390px"
height="390px" alt="" width="250" border="0" name="bannerADrotator" />
<script language="JavaScript" type="text/javascript">nextAd()</script>
</td>
<td width="27px" height="390px" background="images/main1_10.gif">
</td>
</tr>
<tr><td colspan=2 width=370px></td><td width=230px height=30px background="images/main1_23.gif"></td>
</tr>
<tr>
<td width="23px">
</td>
<td colspan="2" width="620px" height="37px" background="images/main1_24.gif">
</td>
<td width="27x">
</td>
</tr>
<tr>
<td colspan="4" >
<table align="center" width="620" border="0" cellspacing="0" cellpadding="0">
<tr valign=top>
<%
set rs = server.createobject("adodb.recordset")
sql="select top 8 sort_name,nsort_name,hw_name,hw_id,pifa,hw_pic from hw where tuijian=3 order by hw_id DESC"
rs.open sql,conn,1,1
if rs.eof then
response.write "<tr><td class=smallfont valign=top>sorry there's no more shoes you want</td></tr>"
response.write "<tr>"
else
i=1
arr2 = 4 '每排个数
while not rs.eof
if i mod arr2 = 1 then
AlignType="left"
elseif i mod arr2 = 2 then
AlignType="center"
elseif i mod arr2 = 0 then
AlignType="right"
end if
response.write "<td class=list width='25%' align='center'> "
response.write "<table width='100%' border='0' cellspacing='0'cellpadding='0'>"
response.write "<tr><td align=center>"
response.write "<a class=picture href='detail.asp?hw_id="&rs("hw_id")&"'>"
response.write "<img class=picture src=pic/"&rs("hw_pic")&" width='140' height='115'></a>"
response.write "</td></tr>"
response.write "<tr><td align="+AlignType+">"
response.write "<table width='154' border='0' cellspacing='1' cellpadding='0'>"
response.write "<tr><td width='4'> </td>"
response.write "<td height='15' >"
response.write "<a href='detail.asp?hw_id="&rs("hw_id")&"' class=shoesname target=blank>"&rs("nsort_name")&"</a>"
response.write "</td><td width=4> </td>"
response.write "</tr><tr><td colspan=3 height=2>"
response.write " <a href=detail.asp?hw_id="&rs("hw_id")&" class=shoestype title=Order target=blank>"&rs("hw_name")&"</a>"
response.write "</td></tr>"
response.write "<tr><td colspan=3 height=2>"
response.write " <a href=detail.asp?hw_id="&rs("hw_id")&" class=shoesprise title=Order target=blank>$"&rs("pifa")&"</a>"
response.write "</td></tr>"
response.write "</table>"
response.write "</td></tr>"
response.write "</table></td>"
if i mod arr2 = 0 then
response.write "</tr><tr><td width='33%' valign='top' align='center'><img width='1' height='25'></td></tr><tr>"
end if
rs.movenext
i=i+1
wend
end if
'response.write "</table>"
rs.close
set rs=nothing
%>
</table>
</td>
</tr>
</table>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -