📄 headpage.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="gbk"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>ATA数码商城</title>
<link href="css/20.css" rel="stylesheet" type="text/css">
<script src="manage/JS/AC_RunActiveContent.js" type="text/javascript"></script>
<style type="text/css">
<!--
.STYLE4 {
font-size: 14px;
color: #00FF00;
}
.STYLE5 {
font-size: 14px;
color: #CC3366;
}
.STYLE9 {
font-size: 14px;
color: #00FFFF;
}
.STYLE10 {font-size: 14px}
.STYLE12 {font-size: 14px; color: #FF6600; }
.STYLE13 {color: #00FF00}
.STYLE15 {
font-size: 14px;
color: #FF9900;
}
.STYLE19 {
font-size: 16px;
color: #6600FF;
}
.STYLE22 {
color: #99FF00;
font-size: 16px;
}
.STYLE28 {font-size: 16px; color: #33FF66; }
.STYLE29 {color: #00FF33}
.STYLE30 {color: #FF0000}
.STYLE31 {font-size: 16px; color: #33FF00; }
.STYLE32 {color: #33FF00}
-->
</style>
<script language=JavaScript>
<!--
var imgUrl=new Array();
var imgLink=new Array();
var adNum=0;
var jumpUrl="";
imgLink[1]="img/head/h1.jpg";
imgLink[2]="img/head/h2.jpg";
imgLink[3]="img/head/h3.jpg";
imgLink[4]="img/head/h4.jpg";
imgLink[5]="img/head/h5.jpg";
imgLink[6]="img/head/h6.jpg";
imgLink[7]="img/head/h7.jpg";
imgUrl[1]="img/head/h1.jpg";
imgUrl[2]="img/head/h2.jpg";
imgUrl[3]="img/head/h3.jpg";
imgUrl[4]="img/head/h4.jpg";
imgUrl[5]="img/head/h5.jpg";
imgUrl[6]="img/head/h6.jpg";
imgUrl[7]="img/head/h7.jpg";
var imgPre=new Array();
var j=0;
for (i=1;i<=imgUrl.length-1;i++) {
if(imgLink[i]!="") {j++;}
else {break;}
}
function playTran(){
if (document.all)
imgInit.filters.revealTrans.play();
}
var key=0;
function nextAd(){
if(adNum<j)adNum++ ;
else adNum=1;
if( key==0 ){key=1;}
else if (document.all){
imgInit.filters.revealTrans.Transition=6;
imgInit.filters.revealTrans.apply();
playTran();
}
document.images.imgInit.src=imgUrl[adNum];
jumpUrl=imgLink[adNum];
theTimer=setTimeout("nextAd()", 2000);
}
function goUrl(){
jumpTarget='_blank';
if (jumpUrl != ''){
if (jumpTarget != '') window.open(jumpUrl,jumpTarget);
else location.href=jumpUrl;
}
}
//-->
function onlogin(){
if (document.all("id").value==""){
alert("请输入帐号");
return false;
}else if (document.all("pwd").value==""){
alert("请输入密码");
return false;
}else if (document.all("check").value==""){
alert("请输入验证码");
return false;
}
return true;
}
</script>
</head>
<body>
<div id="container">
<div id="banner">
<table width="779" height="91" border="0">
<tr>
<td width="122"><img src="img/head/15.gif" width="160" height="150" /></td>
<td width="647"><script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','570','height','140','src','img/head/top4','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','img/head/top4' ); //end AC code
</script><noscript><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="570" height="140">
<param name="movie" value="img/head/top4.swf" />
<param name="quality" value="high" />
<embed src="img/head/top4.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="570" height="140"></embed>
</object></noscript></td>
</tr>
</table>
</div>
<div id="globallink">
<table width="778" height="24" border="0">
<tr>
<td width="92" class="STYLE22">商城首页</td>
<td width="94"><span class="STYLE28"><a href="product.jsp?action=camera"><font color="33FF66">数码相机</font></a></span></td>
<td width="93"><span class="STYLE28"><a href="product.jsp?action=mobile"><font color="33FF66">品牌手机</font></a></span></td>
<td width="93"><span class="STYLE28"><a href="product.jsp?action=newest"><font color="33FF66">新品上架</font></a></span></td>
<td width="91"><span class="STYLE28"><a href="product.jsp?action=promotion"><font color="33FF66">促销产品</font></a></span></td>
<td width="89"><span class="STYLE28"><a href="product.jsp?action=briskly"><font color="33FF66">最近畅销</font></a></span></td>
<td width="91"><span class="STYLE28"><a href="product.jsp?action=lead"><font color="33FF66">购买导航</font></a></span></td>
<td width="90"><span class="STYLE28"><a href="page/vote.jsp"><font color="33FF66">网上投票</font></a></span></td>
</tr>
</table>
<br>
</div>
<div id="left">
<div id="weather">
<h3><span>用户登录</span></h3>
<%
String errorInfo=request.getParameter("errInfo");
if(errorInfo!=null){
if(errorInfo.equals("id_error")){
out.print("帐号格式错误");
}else if(errorInfo.equals("verify_error")){
out.print("验证码错误");
}else if(errorInfo.equals("not_exist_id")){
out.print("不存在的帐号");
}else if(errorInfo.equals("pwd_error")){
out.print("密码错误");
}
}
%>
<ul>
<form action="servlet/UserServlet?action=login" onsubmit="return onlogin()" method="post">
<li>帐号 <input type="text" name="id" size="15" maxlength="150"></li>
<li>密码 <input type="password" name="pwd" size="15" maxlength="150"></li>
<li>验证码:<input type="text" name="check" size="4" maxlength="150"><img src="manage/verify.jsp"></li>
<li><input type="submit" name="button" value="登录"/>
<input type="button" name="button2" value="注册" onclick="window.location.href='registPage.jsp'"></li>
</form>
</ul>
<br>
</div>
<div id="today">
<h3><span>手机相机</span></h3>
<ul>
<li><a href="product.jsp?action=mobile"><img src="img/head/tuijian1.jpg" width="170" height="102" /></a></li>
<li><a href="product.jsp?action=mobile">手机</a></li>
<li><a href="product.jsp?action=camera"><img src="img/head/md_raitaca328.jpg" width="162" height="120" /></a></li>
<li><a href=""><a href="product.jsp?action=camera">相机</a></li>
</ul>
</div>
</div>
<div id="banner">
<div id="">
<table width="557" cellpadding="0" cellspacing="0">
<tr><td width="402" height="138" rowspan="2"><span class="STYLE4">>></span><span class="STYLE5">最新产品</span>
<hr />
<li><a href="newestproducts/nb_lenovo_xuri_n220__m.jsp"><font color="ffffff">1.联想 旭日N220GC530 W21024120BVCW1b </font></a></li>
<li><a href="newestproducts/Vostro1400(R520187).jsp"><font color="ffffff">2.戴尔 Vostro 1400(R520187)</font></a></li>
<li><a href="newestproducts/nb_hp_b2210__m.jsp"><font color="ffffff">3.惠普 Compaq 2210b(KS292PA)</font></li>
<li><a href="newestproducts/nb_hasee_ty_f1500_1_m.jsp"><font color="ffffff">4.神舟 天运F1500</font></li>
<li><a href="newestproducts/nb_lenovo_y510_1_m.jsp"><font color="ffffff">5.联想 IdeaPad Y510AT8100-P(TV TUNER)</font></li>
<li><a href="newestproducts/nb_lenovo_y710_1_m.jsp"><font color="ffffff">6.联想 IdeaPad Y710AX7900-L(TV TUNER)</font></li></td>
<td width="10" rowspan="2"> </td>
<td width="152" height="25"><p class="STYLE15"><span class="STYLE29">>></span><span class="STYLE30">公告</span></p>
</td>
<tr>
<td> <MARQUEE id=MARQUEE1 onmouseover=this.stop() onmouseout=this.start() scrollAmount=2 scrollDelay=0 direction=up width=150 bgColor=#3399FF height=120 align="center" border="0">
<P class="STYLE31">欢迎您的光临!</P>
<P class="STYLE31">本站将为您提供</P>
<P class="STYLE19"><span class="STYLE32">最完美的服务</span>!</P>
</MARQUEE></td>
</table>
</div>
<div id="beauty">
<table width="559" height="259" border="0">
<tr>
<td width="302" height="45"><font color="#33FF99">今天是:
<script language=JavaScript>
d = new Date();
document.write((d.getYear())+"年"+(d.getMonth()+1)+"月"+d.getDate()+ "日");
</script>
<script language=JavaScript>
d = new Date();
switch (d.getDay()) {
case 0:
strweek="日";
break;
case 1:
strweek="一";
break;
case 2:
strweek="二";
break;
case 3:
strweek="三";
break;
case 4:
strweek="四";
break;
case 5:
strweek="五";
break;
case 6:
strweek="六";
break;
}
document.write("星期"+ strweek);
</script> </td>
<td width="182">
<input name="keyword" type="text" class="input" id="keyword3" value="站内搜索" size="12"style="width: 135; height: 18"></td>
<td width="71"><img src="img/head/gif-0256.gif" width="71" height="18" /></td>
<td width="248"><span class="STYLE12"><span class="STYLE13">>></span><span class="STYLE30">图片新闻 </span></span></td>
</tr>
<tr>
<td colspan="3" rowspan="2"><table width="394" height="242" border="0">
<tr>
<td height="25" colspan="3"> </td>
</tr>
<tr>
<td width="127" height="79"><a href="newestproducts/dvd_bubugao_dl339_1l_m.jsp"><img src="img/products/dvd_bubugao_dl339_1l_m.jpg" width="127" height="110" /></a></td>
<td width="120"><a href="newestproducts/mobile_samsung_w159_1l_m.jsp"><img src="img/products/mobile_samsung_w159_1l_m.jpg" width="127" height="110" /></a></td>
<td width="133"><a href="newestproducts/nb_acer_tm6492_2_m.jsp"><img src="img/products/nb_acer_tm6492_2_m.jpg" width="127" height="110" /></a></td>
</tr>
<tr>
<td height="51"><p>型号:DL339</p>
<p>价格: 2299</p></td>
<td><p>型号:SCH-W159 </p>
<p>价格:3180</p></td>
<td><p>型号:tm6492</p>
<p>价格:8800</p></td>
</tr>
</table>
<p> </p>
<p> </p>
<p> </p></td>
<td width="248">
<a href="javascript:goUrl()"><img style="FILTER:
revealTrans(duration=2,transition=6);border:1 solid black" src="javascript:nextAd()" width=150
border=0 name=imgInit height="152"></a> </td>
</tr>
<tr>
<td height="49"> </td>
</tr>
</table>
<h3> </h3>
<br>
</div>
</div>
<li></li>
<table width="778" height="58" border="0" cellpadding="0" cellspacing="0">
<td width="83" rowspan="2" nowrap class="f14 STYLE9"> 友情链接</td>
<td width="84" nowrap="nowrap" class="f14"><a href="http://www.pconline.com.cn/market/" class="STYLE10">数码产品报价</a></td>
<td width="10" nowrap class="s STYLE10"> </td>
<td width="122" nowrap class="f14"><a href="http://detail.zol.com.cn/" class="STYLE10">最新数码产品</a></td>
<td width="9" nowrap class="s STYLE10"> </td>
<td width="102" nowrap class="f14"><a href="http://prod.it.com.cn/" class="STYLE10">数码产品网站</a></td>
<td width="9" nowrap class="s STYLE10"> </td>
<td width="102" nowrap class="f14"><a href="http://www.okey68.com/user/index_6746.html" class="STYLE10">数码产品批发</a></td>
<td width="9" nowrap class="s STYLE10"> </td>
<td width="142" nowrap class="f14"><a href="http://prod.it.com.cn/" class="STYLE10">数码产品网</a></td>
<tr>
<td nowrap="nowrap" class="f14"><a href="http://www.shihui99.net/dl/condition.aspx.htm" class="STYLE10">数码产品代理</a></td>
<td nowrap class="s STYLE10"> </td>
<td nowrap class="f14"><a href="http://www.photal.com.cn/campaign/nv106/index.asp" class="STYLE10">数码相机</a></td>
<td nowrap class="s STYLE10"> </td>
<td nowrap class="f14"><a href="http://detail.zol.com.cn/" class="STYLE10">数码新产品</a></td>
<td nowrap class="s STYLE10"> </td>
<td nowrap class="f14"><a href="http://product.it168.com/list/b/03050230_1.shtml" class="STYLE10">索尼数码产品</a></td>
<td nowrap class="s STYLE10"> </td>
<td nowrap class="f14">
<a href="http://www.baidu.com" class="STYLE10" onclick="tab('20')">更多相关搜索 >></a></td></tr></table>
<div id="footer">
<p>xtu.邱永刚 ©版权所有</p>
<p> <a href="http://www.163.com/">yonggang0929@163.com</a></p>
</div>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -