📄 webtop.asp
字号:
<SCRIPT LANGUAGE="JavaScript">
<!--
function check()
{
if(checkspace(document.searchform.searchkey.value !='请输入关键字')) {
document.searchform.searchkey.focus();
alert("请输入查询的关键字!");
return false;
}
if(checkspace(document.searchform.searchkey.value)) {
document.searchform.searchkey.focus();
alert("请输入查询的关键字!");
return false;
}
document.searchform.submit();
}
function checkspace(checkstr) {
var str = '';
for(i = 0; i < checkstr.length; i++) {
str = str + ' ';
}
return (str == checkstr);
}
//-->
</script>
<%
dim webname,weburl,weblogo,webtoplogo1,webtoplogo2
set rs=server.CreateObject("adodb.recordset")
rs.open "select * from shop_config",conn,1,1
webname = trim(rs("webname"))
weburl = trim(rs("weburl"))
weblogo = trim(rs("weblogo"))
webtoplogo1 = trim(rs("webtoplogo"))
webtoplogo2 = trim(rs("webtoplogourl"))
rs.close
set rs=nothing
%>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="771" height="9" bgcolor="#6699ff"></td>
</tr>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="795" height="2"></td>
</tr>
<tr>
<td height="60">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="36" height="60"><img src="<%=weblogo%>" ></td>
<td width="5">
<td height="60"><a href=<%=webtoplogo2%> target="_blank"><img width="530" border="0" height="60" src="<%=webtoplogo1%>"></a></td>
<td width="137"><div align="center"><a href="#" onClick="this.style.behavior='url(#default#homepage)';this.sethomepage('HTTP://<%=weburl%>');return false;">设为首页</a><br><a href="#" onClick="window.external.AddFavorite('http://<%=weburl%>','<%=webname%>');return false">加入收藏</a><br>
<a href="myuser.asp?action=userziliao">我的帐户</a><br>
</div></td>
</tr>
</table></td>
</tr>
<tr>
<td height="2">
</tr>
</table>
<table width="776" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="225" height="16" bgcolor="006699"><font color=#ffffff> 今天是<%response.write year(date)&"年"&month(date)&"月"&day(date)&"日 星期"
select case weekday(date,2)
case "1"
response.write "一"
case "2"
response.write "二"
case "3"
response.write "三"
case "4"
response.write "四"
case "5"
response.write "五"
case "6"
response.write "六"
case "7"
response.write "日"
end select%>
</font></td>
<td width="660" bgcolor="006699" ><font color="#FFFFFF">
<a href="index.asp" class="a1">首 页</a> | <a href="newbooks.asp" class="a1">新品上架</a> | <a href="bkclass.asp" class="a1">图书分类</a> | <a href="bookorder.asp?action=xspk" class="a1">排行榜</a> | <a href=#>特价靓书</a> | <a href="fk.asp" class="a1">汇款留言</a> | <a href="sbkdisplay.asp" class="a1">二手图书</a> | <a href="bkqg.asp" target="_blank" class="a1">求购登记</a> | <a href=#>汇款账号</a></font></td>
</tr>
</table>
<table width="776" border="0" bgcolor="#EEF3F9" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="45%" height="16">
<%if request.cookies("bookshop")("username")="" then
response.write"<div align='right'>您好,欢迎光临聚知网,请<a href='logins.asp'>登录</a></div>"
else
response.write"<div align='right'>欢迎 <font color=red>"&request.cookies("bookshop")("username")&"</font> 光临本站</div>"
end if%></td>
<td width="42%" align=center>[<a href="reg.asp">注册</a>] [<a href="xssl.asp?action=zcfy">新手上路</a>]</td>
<td width="13%" align=center><!--#include file="userinfo_top.asp"--></td>
</tr>
</table>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -