| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 1337 人关注过本帖
标题:Javascript代码不明白什么意思
只看楼主 加入收藏
绝地逢生
Rank: 1
等 级:新手上路
帖 子:38
专家分:0
注 册:2007-7-8
收藏
得分:0 
不好意思哦~~初学程序不是很明白,我看看楼上的那个大哥给改了  我去测试一下!完了不行我就把整页代码帖上来!~

2007-08-23 08:58
绝地逢生
Rank: 1
等 级:新手上路
帖 子:38
专家分:0
注 册:2007-7-8
收藏
得分:0 

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>协和丽姿</title>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(images/bg.gif);
}
.zw {
font-size: 14px;
font-weight: bold;
color: #00418A;
}
a:link {
color: #117BB9;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #117BB9;
}
a:hover {
text-decoration: underline;
color: #FF6600;
}
a:active {
text-decoration: none;
color: #FF6600;
}
a {
font-size: 12px;
font-family: 宋体;
}
body,td,th {
color: #117BB9;
font-size: 12px;
line-height: 16pt;
}
.style2 { color: #044973;
font-weight: bold;
}
.STYLE14 {
font-size: 10px;
font-weight: bold;
color: #00418A;
font-family: Arial, Helvetica, sans-serif;
}
.STYLE15 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
-->
</style>
<SCRIPT language=javascript1.2>
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}
</SCRIPT>
</head>
<body>
<table width="773" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="266" align="center" valign="top" background="images/iii_03.gif"><table width="266" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="12" valign="top"><table width="266" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/iii_03.gif">&nbsp;</td>
</tr>
</table>
<table width="255" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20">&nbsp;</td>
</tr>
<tr>
<td valign="top"><img src="images/iii_06a.gif" width="255" height="14" alt=""></td>
</tr>
<tr>
<td height="123" align="center" background="images/iii_09a.gif" bgcolor="#FFFFFF" class=""><table width="220" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="55" align="center"><img src="images/xh.gif" width="192" height="39"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><table cellpadding=0 cellspacing=0 width=100% align=center>
<tr>
<td height=25 align="left" class=menu_title id=menuTitle2 style="cursor:hand;" onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title';><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>黄金元素系列</strong></span></td>
</tr>
<tr>
<td style="display:none" id='submenu2'><div class=sec_menu style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=80%>
<tr>
<td height=25 align="left" class=menu_title id=menuTitle2 style="cursor:hand;" onClick="showsubmenu(2)" onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title';><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>黄金元素系列</strong></span></td>
</tr>
<tr>
<td style="display:none" id='submenu2'><div class=sec_menu style="width:100%">

<table cellpadding=0 cellspacing=0 align=center width=80%>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=21&sorts=47" target=_blank>眼纹消(黄金胶原蛋白套装大)</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=21&sorts=48">眼纹消(黄金胶原蛋白套装小)</A></td>
</tr>
<tr>
<td height=20 align="left"><a href="productrr.asp?sort=21&sorts=49">冰晶面膜</a></td>
</tr>
<tr>
<td height=20 align="left"><a href="productrr.asp?sort=21&sorts=50">冰晶眼圈膜</a></td>
</tr>
<tr>
<td height=20 align="left"><a href="productrr.asp?sort=21&sorts=51">冰晶颈膜</a></td>
</tr>
<tr>
<td height=20 align="left"><a href="productrr.asp?sort=21&sorts=52">冰晶眼膜</a></td>
</tr>
<tr>
<td height=20 align="left"><a href="productrr.asp?sort=21&sorts=53">眼袋平</a></td>
</tr>
</table>
</div>

<div style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=100%>
<tr>
<td height=20>&nbsp;</td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=100% align=center>
<tr>
<td height=25 align="left" class=menu_title id=menuTitle3 style="cursor:hand;" onClick="showsubmenu(3)" onmouseover=this.className='menu_title3'; onmouseout=this.className="menu_title";><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>胶原蛋白系列</strong></span></td>
</tr>
<tr>
<td style="display:none" id='submenu3'><div class=sec_menu style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=80%>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=22&sorts=59">胶原蛋白面贴膜</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=22&sorts=60">胶原蛋白眼贴膜</A></td>
</tr>
</table>
</div>
<div style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=100%>
<tr>
<td height=20>&nbsp;</td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=100% align=center>
<tr>
<td height=25 align="left" class=menu_title id=menuTitle23 style="cursor:hand;" onClick="showsubmenu(23)" onmouseover=this.className='menu_title23'; onmouseout=this.className="menu_title";><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>无纺布膜贴类</strong></span></td>
</tr>
<tr>
<td style="display:none" id='submenu23'><div class=sec_menu style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=80%>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=23&sorts=54">葡萄消痘收毛孔面膜</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=23&sorts=55">草莓清爽补水面膜</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=23&sorts=56">拧檬水嫩美白面膜</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=23&sorts=57">果漾美肌面贴膜</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=23&sorts=58">果漾美肌面贴膜</A></td>
</tr>
</table>
</div>
<div style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=100%>
<tr>
<td height=20>&nbsp;</td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=100% align=center>
<tr>
<td height=25 align="left" class=menu_title id=menuTitle5 style="cursor:hand;" onClick="showsubmenu(5)" onmouseover=this.className='menu_title5'; onmouseout=this.className="menu_title";><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>护肤产品类</strong></span></td>
</tr>
<tr>
<td style="display:none" id='submenu5'><div class=sec_menu style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=80%>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=61">祛红血丝修复液</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=62">胶原蛋白柔肤水</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=63">胶原蛋白紧肤乳</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=64">祛皱精华霜</A><A href="productrr.asp?sort=23&sorts=57"></A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=65">止痘消印精华素</A><A href="productrr.asp?sort=23&sorts=58"></A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=66">祛斑美白乳霜组合</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=67">祛痘组合</A></td>
</tr>
</table>
</div>
<div style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=100%>
<tr>
<td height=20>&nbsp;</td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=100% align=center>
<tr>
<td height=25 align="left"><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>其它面膜系列</strong></span></td>
</tr>
<tr>
<td style="display:none" id='submenu4'><div class=sec_menu style="width:100%"></div>
<div style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=100%>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</td>
<td width="507" valign="top" bgcolor="#FFFFFF"><table width="507" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10" background="images/n_bg.gif"><table width="487" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="25">&nbsp;</td>
<td width="455"><img src="images/cpjs.gif" width="106" height="27" alt=""></td>
</tr>
<tr>
<td height="100" colspan="2" align="center" background="images/iii_16.gif"><table width="461" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="60"></td>
</tr>
<tr>
<td><% on error resume next
sort=trim(request("sort"))
sorts=trim(request("sorts"))
keywords=trim(request("keywords"))
'searchout=trim(request("searchout"))
pageno=trim(request("pageno"))

'response.write "sort:" & sort & "<br>" & "sorts:" & sorts & "<br>" & "keywords:" & keywords & "<br>" & "searchout:" & searchout & "<br>"

'if searchout<>"" then
'if instr(searchout,"root")>0 then
'sort=replace(searchout,"root","")
'else
'sorts=replace(searchout,"s","")
'end if
'end if

if keywords<>"" then
keywords="%" & keywords & "%"
if sort<>"" then
if sorts<>"" then
sql="select * from (select * from product where title like '"&keywords&"' or content like '"&keywords&"') where sort="&sort&" and sorts="&sorts
else
sql="select * from (select * from product where title like '"&keywords&"' or content like '"&keywords&"') where sort="&sort
end if
else
if sorts<>"" then
sql="select * from (select * from product where title like '"&keywords&"' or content like '"&keywords&"') where sorts="&sorts
else
sql="select * from product where title like '"&keywords&"' or content like '"&keywords&"'"
end if
end if
else
if sort<>"" then
if sorts<>"" then
sql="select * from product where sort="&sort&" and sorts="&sorts
else
sql="select * from product where sort="&sort
end if
else
if sorts<>"" then
sql="select * from product where sorts="&sorts
else
sql="select * from product order by id desc"
end if
end if
end if

if sql<>"" then
PageSize=4
Rs.PageSize = PageSize
rs.open sql,conn,1,1
AllCount=Rs.RecordCount
MaxPage=Rs.PageCount
If PageNO = "" Then PageNO=1
If PageNO+1 < 1 Then PageNO=1
If Rs.RecordCount > 0 Then
Rs.MoveFirst
If PageNO = "" Then PageNO=1
If PageNO+1 < 1 Then PageNO=1
If PageNO+1 > MaxPage+1 Then PageNO = MaxPage
Rs.AbsolutePage = PageNO
End If
i=0

%>
<%do while not rs.eof and i<pagesize
i=i+1 %>
<table width="472" border="0" cellpadding="5" cellspacing="0">
<tr>
<td height="20" align="left" background="images/1_03.gif">&nbsp;<img src="images/arrow_blue.gif" width="9" height="7">&nbsp;<span class="STYLE15">
<%sql="select * from sort where id="&rs("sort")
set rs_temp=server.createobject("adodb.recordset")
rs_temp.open sql,conn,1,1
'response.write rs_temp("sort")
rs_temp.close%>
<%
if rs("sorts")<>0 then
sql="select * from sorts where id="&rs("sorts")
set rs_temp=server.createobject("adodb.recordset")
rs_temp.open sql,conn,1,1
if not(rs_temp.eof and rs_temp.bof) then
response.write rs_temp("sorts")
end if
rs_temp.close
end if
%>
&nbsp;&gt;&nbsp;&nbsp;<%=rs("title")%></span></td>
</tr>
<tr>
<td height="190" valign="top" background="images/1_06.gif"><table width="97%" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td width="145" height="150" align="center" valign="top"><a href="product01.asp?id=<%=rs("id")%>" target="_blank"><br>
<img src="manager/<%=rs("photo")%>" width="120" border="0"></a></td>
<td width="283"><table width="99%" height="104" border="0" align="center" cellpadding="0" cellspacing="0" class="t02">
<tr>
<td width="300" height="30" align="left"><TABLE
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-COLLAPSE: collapse; BORDER-RIGHT-WIDTH: 0px"
borderColor=#0062bf cellSpacing=0 cellPadding=0 width="100%"
border=1>
<TBODY>
<TR>
<TD
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none"
width="100%"><FONT color=#0066cc>■ </FONT> <a href="product01.asp?id=<%=rs("id")%>" target="_parent"><%=rs("title")%></A></TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
<tr>
<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
<tr>
<td><%=rs("module")%></td>
</tr>
</table> </td>
</tr>
<tr align="right">
<td height="18"><a href="product01.asp?id=<%=rs("id")%>" target="_blank"><img src="images/more.gif" width="80" height="17" border="0"></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="8" background="images/1_07.gif"></td>
</tr>
</table>
<p>
<% rs.movenext
loop
rs.close
end if
%>
</p>
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" class="t02">
<tr>
<td align="right"><p align="right">
<%if PageNO-1>0 then %>
| <A href="productrr.asp?sort=<%=sort%>&sorts=<%=sorts%>&keywords=<%=keywords%>&pageNO=1">首页</a>&nbsp;|&nbsp;<A href="productrr.asp?sort=<%=sort%>&sorts=<%=sorts%>&keywords=<%=keywords%>&pageNO=<%=pageNO-1%>">上页</a>&nbsp;|
<%else%>
首页&nbsp;|&nbsp;上页&nbsp;|
<%end if%>
<%if PageNo+1<=MaxPage then%>
<A href="productrr.asp?sort=<%=sort%>&sorts=<%=sorts%>&keywords=<%=keywords%>&pageNO=<%=pageNO+1%>">下页</a>&nbsp;|&nbsp;<A href="productrr.asp?sort=<%=sort%>&sorts=<%=sorts%>&keywords=<%=keywords%>&pageNO=<%=MaxPage%>">尾页</a>
<%else%>
下页&nbsp;|&nbsp;尾页
<%end if%>
&nbsp;&nbsp;
<input type="hidden" name="pageno" class="text" style="BORDER-BOTTOM: rgb(200,200,200) 1px solid; BORDER-LEFT: rgb(200,200,200) 1px solid; BORDER-RIGHT: rgb(200,200,200) 1px solid; BORDER-TOP: rgb(200,200,200) 1px solid" value="1" size="2" maxLength="3">
&nbsp;
<input type="hidden" name="sort" value="<%=sort%>">
<input type="hidden" name="sorts" value="<%=sorts%>">
<input type="hidden" name="keywords" value="<%=keywords%>">
</p></td>
</tr>
</table>
</td></tr>
<tr>
<td height="40">&nbsp;</td>
</tr>

</table></td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#3E8ACE"></td>
</tr>
<tr>
<td height="40" colspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="89%">&nbsp;</td>
<td width="11%"><span class="STYLE15">^ </span><a href="#" class="STYLE14">TOP</a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>


</table>
</td>
</tr>
</table>
</body>
</html>
这个就是整页代码!我的意思是点小类大类不合并!朋友们帮忙解决一下,谢谢,小弟很着急!


2007-08-23 09:28
ayue222
Rank: 3Rank: 3
等 级:新手上路
威 望:6
帖 子:341
专家分:0
注 册:2007-7-25
收藏
得分:0 
<tr>
<td height=25 align="left" class=menu_title id=menuTitle2 style="cursor:hand;" onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title';><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>黄金元素系列</strong></span></td>
</tr>
<tr>
<td style="display:none" id='submenu2'><div class=sec_menu style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=80%>
<tr>
<td height=25 align="left" class=menu_title id=menuTitle2 style="cursor:hand;" onClick="showsubmenu(2)" onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title';><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>黄金元素系列</strong></span></td>
</tr>

这里重复了 ...
2007-08-23 09:33
绝地逢生
Rank: 1
等 级:新手上路
帖 子:38
专家分:0
注 册:2007-7-8
收藏
得分:0 

<!--#include file="admin/conn0.asp"-->
<!--<!--#include file="head.asp" -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>协和丽姿</title>
<script type="text/JavaScript">
<!--
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
background-image: url(images/bg.gif);
}
.zw {
font-size: 14px;
font-weight: bold;
color: #00418A;
}
a:link {
color: #117BB9;
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #117BB9;
}
a:hover {
text-decoration: underline;
color: #FF6600;
}
a:active {
text-decoration: none;
color: #FF6600;
}
a {
font-size: 12px;
font-family: 宋体;
}
body,td,th {
color: #117BB9;
font-size: 12px;
line-height: 16pt;
}
.style2 { color: #044973;
font-weight: bold;
}
.STYLE14 {
font-size: 10px;
font-weight: bold;
color: #00418A;
font-family: Arial, Helvetica, sans-serif;
}
.STYLE15 {
font-family: Arial, Helvetica, sans-serif;
font-weight: bold;
}
-->
</style>
<SCRIPT language=javascript1.2>
function showsubmenu(sid)
{
whichEl = eval("submenu" + sid);
if (whichEl.style.display == "none")
{
eval("submenu" + sid + ".style.display=\"\";");
}
else
{
eval("submenu" + sid + ".style.display=\"none\";");
}
}
</SCRIPT>
</head>
<body>
<table width="773" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="266" align="center" valign="top" background="images/iii_03.gif"><table width="266" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="12" valign="top"><table width="266" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/iii_03.gif">&nbsp;</td>
</tr>
</table>
<table width="255" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20">&nbsp;</td>
</tr>
<tr>
<td valign="top"><img src="images/iii_06a.gif" width="255" height="14" alt=""></td>
</tr>
<tr>
<td height="123" align="center" background="images/iii_09a.gif" bgcolor="#FFFFFF" class=""><table width="220" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="55" align="center"><img src="images/xh.gif" width="192" height="39"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td><table cellpadding=0 cellspacing=0 width=100% align=center>
<tr>
<td height=25 align="left" class=menu_title id=menuTitle2 style="cursor:hand;" onClick="showsubmenu(2)" onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title';><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>黄金元素系列</strong></span></td>
</tr>
<tr>
<td style="display:none" id='submenu2'><div class=sec_menu style="width:100%">

<table cellpadding=0 cellspacing=0 align=center width=80%>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=21&sorts=47" target=_blank>眼纹消(黄金胶原蛋白套装大)</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=21&sorts=48">眼纹消(黄金胶原蛋白套装小)</A></td>
</tr>
<tr>
<td height=20 align="left"><a href="productrr.asp?sort=21&sorts=49">冰晶面膜</a></td>
</tr>
<tr>
<td height=20 align="left"><a href="productrr.asp?sort=21&sorts=50">冰晶眼圈膜</a></td>
</tr>
<tr>
<td height=20 align="left"><a href="productrr.asp?sort=21&sorts=51">冰晶颈膜</a></td>
</tr>
<tr>
<td height=20 align="left"><a href="productrr.asp?sort=21&sorts=52">冰晶眼膜</a></td>
</tr>
<tr>
<td height=20 align="left"><a href="productrr.asp?sort=21&sorts=53">眼袋平</a></td>
</tr>
</table>

</div>
<div style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=100%>
<tr>
<td height=20>&nbsp;</td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=100% align=center>
<tr>
<td height=25 align="left" class=menu_title id=menuTitle3 style="cursor:hand;" onClick="showsubmenu(3)" onmouseover=this.className='menu_title3'; onmouseout=this.className="menu_title";><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>胶原蛋白系列</strong></span></td>
</tr>
<tr>
<td style="display:none" id='submenu3'><div class=sec_menu style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=80%>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=22&sorts=59">胶原蛋白面贴膜</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=22&sorts=60">胶原蛋白眼贴膜</A></td>
</tr>
</table>
</div>
<div style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=100%>
<tr>
<td height=20>&nbsp;</td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=100% align=center>
<tr>
<td height=25 align="left" class=menu_title id=menuTitle23 style="cursor:hand;" onClick="showsubmenu(23)" onmouseover=this.className='menu_title23'; onmouseout=this.className="menu_title";><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>无纺布膜贴类</strong></span></td>
</tr>
<tr>
<td style="display:none" id='submenu23'><div class=sec_menu style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=80%>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=23&sorts=54">葡萄消痘收毛孔面膜</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=23&sorts=55">草莓清爽补水面膜</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=23&sorts=56">拧檬水嫩美白面膜</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=23&sorts=57">果漾美肌面贴膜</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=23&sorts=58">果漾美肌面贴膜</A></td>
</tr>
</table>
</div>
<div style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=100%>
<tr>
<td height=20>&nbsp;</td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=100% align=center>
<tr>
<td height=25 align="left" class=menu_title id=menuTitle5 style="cursor:hand;" onClick="showsubmenu(5)" onmouseover=this.className='menu_title5'; onmouseout=this.className="menu_title";><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>护肤产品类</strong></span></td>
</tr>
<tr>
<td style="display:none" id='submenu5'><div class=sec_menu style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=80%>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=61">祛红血丝修复液</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=62">胶原蛋白柔肤水</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=63">胶原蛋白紧肤乳</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=64">祛皱精华霜</A><A href="productrr.asp?sort=23&sorts=57"></A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=65">止痘消印精华素</A><A href="productrr.asp?sort=23&sorts=58"></A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=66">祛斑美白乳霜组合</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=67">祛痘组合</A></td>
</tr>
</table>
</div>
<div style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=100%>
<tr>
<td height=20>&nbsp;</td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=100% align=center>
<tr>
<td height=25 align="left"><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>其它面膜系列</strong></span></td>
</tr>
<tr>
<td style="display:none" id='submenu4'><div class=sec_menu style="width:100%"></div>
<div style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=100%>
<tr>
<td height=20></td>
</tr>
</table>
</div></td>
</tr>
</table></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table>
</td>
<td width="507" valign="top" bgcolor="#FFFFFF"><table width="507" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10" background="images/n_bg.gif"><table width="487" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="25">&nbsp;</td>
<td width="455"><img src="images/cpjs.gif" width="106" height="27" alt=""></td>
</tr>
<tr>
<td height="100" colspan="2" align="center" background="images/iii_16.gif"><table width="461" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="60"></td>
</tr>
<tr>
<td><% on error resume next
sort=trim(request("sort"))
sorts=trim(request("sorts"))
keywords=trim(request("keywords"))
'searchout=trim(request("searchout"))
pageno=trim(request("pageno"))

'response.write "sort:" & sort & "<br>" & "sorts:" & sorts & "<br>" & "keywords:" & keywords & "<br>" & "searchout:" & searchout & "<br>"

'if searchout<>"" then
'if instr(searchout,"root")>0 then
'sort=replace(searchout,"root","")
'else
'sorts=replace(searchout,"s","")
'end if
'end if

if keywords<>"" then
keywords="%" & keywords & "%"
if sort<>"" then
if sorts<>"" then
sql="select * from (select * from product where title like '"&keywords&"' or content like '"&keywords&"') where sort="&sort&" and sorts="&sorts
else
sql="select * from (select * from product where title like '"&keywords&"' or content like '"&keywords&"') where sort="&sort
end if
else
if sorts<>"" then
sql="select * from (select * from product where title like '"&keywords&"' or content like '"&keywords&"') where sorts="&sorts
else
sql="select * from product where title like '"&keywords&"' or content like '"&keywords&"'"
end if
end if
else
if sort<>"" then
if sorts<>"" then
sql="select * from product where sort="&sort&" and sorts="&sorts
else
sql="select * from product where sort="&sort
end if
else
if sorts<>"" then
sql="select * from product where sorts="&sorts
else
sql="select * from product order by id desc"
end if
end if
end if

if sql<>"" then
PageSize=4
Rs.PageSize = PageSize
rs.open sql,conn,1,1
AllCount=Rs.RecordCount
MaxPage=Rs.PageCount
If PageNO = "" Then PageNO=1
If PageNO+1 < 1 Then PageNO=1
If Rs.RecordCount > 0 Then
Rs.MoveFirst
If PageNO = "" Then PageNO=1
If PageNO+1 < 1 Then PageNO=1
If PageNO+1 > MaxPage+1 Then PageNO = MaxPage
Rs.AbsolutePage = PageNO
End If
i=0

%>
<%do while not rs.eof and i<pagesize
i=i+1 %>
<table width="472" border="0" cellpadding="5" cellspacing="0">
<tr>
<td height="20" align="left" background="images/1_03.gif">&nbsp;<img src="images/arrow_blue.gif" width="9" height="7">&nbsp;<span class="STYLE15">
<%sql="select * from sort where id="&rs("sort")
set rs_temp=server.createobject("adodb.recordset")
rs_temp.open sql,conn,1,1
'response.write rs_temp("sort")
rs_temp.close%>
<%
if rs("sorts")<>0 then
sql="select * from sorts where id="&rs("sorts")
set rs_temp=server.createobject("adodb.recordset")
rs_temp.open sql,conn,1,1
if not(rs_temp.eof and rs_temp.bof) then
response.write rs_temp("sorts")
end if
rs_temp.close
end if
%>
&nbsp;&gt;&nbsp;&nbsp;<%=rs("title")%></span></td>
</tr>
<tr>
<td height="190" valign="top" background="images/1_06.gif"><table width="97%" border="0" align="center" cellpadding="5" cellspacing="0">
<tr>
<td width="145" height="150" align="center" valign="top"><a href="product01.asp?id=<%=rs("id")%>" target="_blank"><br>
<img src="manager/<%=rs("photo")%>" width="120" border="0"></a></td>
<td width="283"><table width="99%" height="104" border="0" align="center" cellpadding="0" cellspacing="0" class="t02">
<tr>
<td width="300" height="30" align="left"><TABLE
style="BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; BORDER-COLLAPSE: collapse; BORDER-RIGHT-WIDTH: 0px"
borderColor=#0062bf cellSpacing=0 cellPadding=0 width="100%"
border=1>
<TBODY>
<TR>
<TD
style="BORDER-RIGHT: medium none; BORDER-TOP: medium none; BORDER-LEFT: medium none"
width="100%"><FONT color=#0066cc>■ </FONT> <a href="product01.asp?id=<%=rs("id")%>" target="_parent"><%=rs("title")%></A></TD>
</TR>
</TBODY>
</TABLE></td>
</tr>
<tr>
<td align="left" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="10"></td>
</tr>
<tr>
<td><%=rs("module")%></td>
</tr>
</table> </td>
</tr>
<tr align="right">
<td height="18"><a href="product01.asp?id=<%=rs("id")%>" target="_blank"><img src="images/more.gif" width="80" height="17" border="0"></a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
<tr>
<td height="8" background="images/1_07.gif"></td>
</tr>
</table>
<p>
<% rs.movenext
loop
rs.close
end if
%>
</p>
<table width="97%" border="0" align="center" cellpadding="0" cellspacing="0" class="t02">
<tr>
<td align="right"><p align="right">
<%if PageNO-1>0 then %>
| <A href="productrr.asp?sort=<%=sort%>&sorts=<%=sorts%>&keywords=<%=keywords%>&pageNO=1">首页</a>&nbsp;|&nbsp;<A href="productrr.asp?sort=<%=sort%>&sorts=<%=sorts%>&keywords=<%=keywords%>&pageNO=<%=pageNO-1%>">上页</a>&nbsp;|
<%else%>
首页&nbsp;|&nbsp;上页&nbsp;|
<%end if%>
<%if PageNo+1<=MaxPage then%>
<A href="productrr.asp?sort=<%=sort%>&sorts=<%=sorts%>&keywords=<%=keywords%>&pageNO=<%=pageNO+1%>">下页</a>&nbsp;|&nbsp;<A href="productrr.asp?sort=<%=sort%>&sorts=<%=sorts%>&keywords=<%=keywords%>&pageNO=<%=MaxPage%>">尾页</a>
<%else%>
下页&nbsp;|&nbsp;尾页
<%end if%>
&nbsp;&nbsp;
<input type="hidden" name="pageno" class="text" style="BORDER-BOTTOM: rgb(200,200,200) 1px solid; BORDER-LEFT: rgb(200,200,200) 1px solid; BORDER-RIGHT: rgb(200,200,200) 1px solid; BORDER-TOP: rgb(200,200,200) 1px solid" value="1" size="2" maxLength="3">
&nbsp;
<input type="hidden" name="sort" value="<%=sort%>">
<input type="hidden" name="sorts" value="<%=sorts%>">
<input type="hidden" name="keywords" value="<%=keywords%>">
</p></td>
</tr>
</table>
</td></tr>
<tr>
<td height="40">&nbsp;</td>
</tr>

</table></td>
</tr>
<tr>
<td height="1" colspan="2" bgcolor="#3E8ACE"></td>
</tr>
<tr>
<td height="40" colspan="2" valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="89%">&nbsp;</td>
<td width="11%"><span class="STYLE15">^ </span><a href="#" class="STYLE14">TOP</a></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>


</table>
</td>
</tr>
</table>
</body>
</html>
<!--<!--#include file="down.asp" -->

但是这里不重复了也不能实现呀·~郁闷,哥帮忙解决一下哦·~谢谢


2007-08-23 09:45
ayue222
Rank: 3Rank: 3
等 级:新手上路
威 望:6
帖 子:341
专家分:0
注 册:2007-7-25
收藏
得分:0 
说真的 ...你的这个表格结构太晕人了 ......

<body>
<table width="773" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
<tr>
<td width="266" align="center" valign="top" background="images/iii_03.gif"><table width="266" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="12" valign="top"><table width="266" border="0" cellspacing="0" cellpadding="0">
<tr>
<td background="images/iii_03.gif">&nbsp;</td>
</tr>
</table>
<table width="255" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="20">&nbsp;</td>
</tr>
<tr>
<td valign="top"><img src="images/iii_06a.gif" width="255" height="14" alt=""></td>
</tr>
<tr>
<td height="123" align="center" background="images/iii_09a.gif" bgcolor="#FFFFFF" class=""><table width="220" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="55" align="center"><img src="images/xh.gif" width="192" height="39"></td>
</tr>
<tr>
<td>&nbsp;</td>
</tr>
<tr>
<td>

<table cellpadding=0 cellspacing=0 width=100% align=center>
<tr>
<td height=25 align="left" class=menu_title id=menuTitle2 style="cursor:hand;" onClick="showsubmenu(2)" onmouseover=this.className='menu_title2'; onmouseout=this.className='menu_title';><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>黄金元素系列</strong></span></td>
</tr>

<tr>
<td style="display:none" id='submenu2'>
<div class=sec_menu style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=80%>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=21&sorts=47" target=_blank>眼纹消(黄金胶原蛋白套装大)</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=21&sorts=48">眼纹消(黄金胶原蛋白套装小)</A></td>
</tr>
<tr>
<td height=20 align="left"><a href="productrr.asp?sort=21&sorts=49">冰晶面膜</a></td>
</tr>
<tr>
<td height=20 align="left"><a href="productrr.asp?sort=21&sorts=50">冰晶眼圈膜</a></td>
</tr>
<tr>
<td height=20 align="left"><a href="productrr.asp?sort=21&sorts=51">冰晶颈膜</a></td>
</tr>
<tr>
<td height=20 align="left"><a href="productrr.asp?sort=21&sorts=52">冰晶眼膜</a></td>
</tr>
<tr>
<td height=20 align="left"><a href="productrr.asp?sort=21&sorts=53">眼袋平</a></td>
</tr>
</table>
</div>
<div style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=100%>
<tr>
<td height=20>&nbsp;</td>
</tr>
</table>
</div>
</td>
</tr>
</table>

<table cellpadding=0 cellspacing=0 width=100% align=center>
<tr>
<td height=25 align="left" class=menu_title id=menuTitle3 style="cursor:hand;" onClick="showsubmenu(3)" onmouseover=this.className='menu_title3'; onmouseout=this.className="menu_title";><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>胶原蛋白系列</strong></span></td>
</tr>
<tr>
<td style="display:none" id='submenu3'><div class=sec_menu style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=80%>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=22&sorts=59">胶原蛋白面贴膜</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=22&sorts=60">胶原蛋白眼贴膜</A></td>
</tr>
</table>
</div>
<div style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=100%>
<tr>
<td height=20>&nbsp;</td>
</tr>
</table>
</div></td>
</tr>
</table>

<table cellpadding=0 cellspacing=0 width=100% align=center>
<tr>
<td height=25 align="left" class=menu_title id=menuTitle23 style="cursor:hand;" onClick="showsubmenu(23)" onmouseover=this.className='menu_title23'; onmouseout=this.className="menu_title";><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>无纺布膜贴类</strong></span></td>
</tr>
<tr>
<td style="display:none" id='submenu23'><div class=sec_menu style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=80%>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=23&sorts=54">葡萄消痘收毛孔面膜</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=23&sorts=55">草莓清爽补水面膜</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=23&sorts=56">拧檬水嫩美白面膜</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=23&sorts=57">果漾美肌面贴膜</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=23&sorts=58">果漾美肌面贴膜</A></td>
</tr>
</table>
</div>
<div style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=100%>
<tr>
<td height=20>&nbsp;</td>
</tr>
</table>
</div></td>
</tr>
</table>
<table cellpadding=0 cellspacing=0 width=100% align=center>
<tr>
<td height=25 align="left" class=menu_title id=menuTitle5 style="cursor:hand;" onClick="showsubmenu(5)" onmouseover=this.className='menu_title5'; onmouseout=this.className="menu_title";><span><img src="images/arrow_blue.gif" width="9" height="7"> <strong>护肤产品类</strong></span></td>
</tr>
<tr>
<td style="display:none" id='submenu5'><div class=sec_menu style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=80%>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=61">祛红血丝修复液</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=62">胶原蛋白柔肤水</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=63">胶原蛋白紧肤乳</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=64">祛皱精华霜</A><A href="productrr.asp?sort=23&sorts=57"></A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=65">止痘消印精华素</A><A href="productrr.asp?sort=23&sorts=58"></A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=66">祛斑美白乳霜组合</A></td>
</tr>
<tr>
<td height=20 align="left"><A href="productrr.asp?sort=24&sorts=67">祛痘组合</A></td>
</tr>
</table>
</div>
<div style="width:100%">
<table cellpadding=0 cellspacing=0 align=center width=100%>
<tr>
<td height=20>&nbsp;</td>
</tr>
</table>
</div></td>
</tr>
</table>


你就改从BODY 到 其他面膜系统上面那个</table>为止的这段代码吧 ...后面的偶没动 ...
2007-08-23 10:10
绝地逢生
Rank: 1
等 级:新手上路
帖 子:38
专家分:0
注 册:2007-7-8
收藏
得分:0 
楼上的哥呀·~还是实现不了   

2007-08-23 11:44
ayue222
Rank: 3Rank: 3
等 级:新手上路
威 望:6
帖 子:341
专家分:0
注 册:2007-7-25
收藏
得分:0 
........自己好好整理下表格吧 .......偶上面那个代码测试过绝对能实现滴 ...
2007-08-23 11:52
绝地逢生
Rank: 1
等 级:新手上路
帖 子:38
专家分:0
注 册:2007-7-8
收藏
得分:0 
楼上的朋友谢谢了   能不能给留个QQ我想跟你交个朋友。我的QQ是261954079 谢谢

2007-08-23 16:39
快速回复:Javascript代码不明白什么意思
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.029642 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved