?? menu.jsp
字號:
<%@ page contentType="text/html; charset=gb2312" language="java" import="java.util.*,bean.CartInf" errorPage="" %>
<style type="text/css">
<!--
#glowtext{
filter:glow(color=FF0000,strength=2);
width:100%;
}
-->
#tic {
/* enter any styles for the ticker below */
border: .08em pink solid;
font-size:1.2em;
padding:10px;
width:150px;
line-height:25px;
}
#tic * {
/* this will hide all children tags */
font-size: 1.1em;
margin:0px;
padding:0px;
display:none;
}
#tic a {
/* add more tags to this list if you wish to display them inside the children */
display:inline;
}
</style>
<script type="text/javascript">
//more javascript from http://www.smallrain.net
var list; // global list variable cache
var tickerObj; // global tickerObj cache
var hex = 255;
function fadeText(divId) {
if(tickerObj)
{
if(hex>0) {
hex-=5; // increase color darkness
tickerObj.style.color="rgb("+hex+","+hex+","+hex+")";
setTimeout("fadeText('" + divId + "')", fadeSpeed);
} else
hex=255; //reset hex value
}
}
function initialiseList(divId) {
tickerObj = document.getElementById(divId);
if(!tickerObj)
reportError("Could not find a div element with id \"" + divId + "\"");
list = tickerObj.childNodes;
if(list.length <= 0)
reportError("The div element \"" + divId + "\" does not have any children");
for (var i=0; i<list.length; i++) {
var node = list[i];
if (node.nodeType == 3 && !/\S/.test(node.nodeValue))
tickerObj.removeChild(node);
}
run(divId, 0);
}
function run(divId, count) {
fadeText(divId);
list[count].style.display = "block";
if(count > 0)
list[count-1].style.display = "none";
else
list[list.length-1].style.display = "none";
count++;
if(count == list.length)
count = 0;
window.setTimeout("run('" + divId + "', " + count+ ")", interval*1000);
}
function reportError(error) {
alert("The script could not run because you have errors:\n\n" + error);
return false;
}
var interval = 7; // interval in seconds
var fadeSpeed = 40; // fade speed, the lower the speed the faster the fade. 40 is normal.
</script>
<td width="19%" height="731" bgcolor="#FFFFFF" />
<p>
<% if(session.getAttribute("userId")==null){ %>
</p>
<div id="tic">
<p>親愛的顧客朋友:如果您對網站有不滿意的地方、對購買的書籍發現存在問題、查看匯款地址請聯系我們,我們將會在第一時間采納好的建議,對網站進行改善!</p>
<p>
親愛的顧客朋友:如果您對網站有不滿意的地方、對購買的書籍發現存在問題、查看匯款地址請聯系我們,我們將會在第一時間采納好的建議,對網站進行改善!</p>
</div>
<script type="text/javascript">
<!--
initialiseList("tic");
//-->
</script>
<div class="relatedLinks">
<p> </p>
<form name="form" method="post" action="/bookshop/UserLogin">
<p>帳號:
<input name="id" type="text" id="id" size="12">
</p>
<p>密碼:
<input name="password" type="password" id="password" size="12">
</p>
<p align="center">
<input type="submit" name="Submit" value="登陸">
</p>
</form>
</div>
<div><i>
<script language="JavaScript">
<!-- Begin
text = "友情鏈接"; //顯示的文字
color1 = "red"; //文字的顏色
color2 = "black"; //轉換的顏色
fontsize = "4"; //字體大小
speed = 100; //轉換速度 (1000 = 1 秒)
I = 0;
if (navigator.appName == "Netscape") {
document.write("<layer id=a visibility=show></layer><br><br><br>");
}
else {
document.write("<div id=a></div>");
}
function changeCharColor() {
if (navigator.appName == "Netscape") {
document.a.document.write("<center><font face=arial size =" + fontsize + "><font color=" + color1 +
">");
for (var j = 0; j < text.length; j++) {
if(j == I) {
document.a.document.write("<font face=arial color=" + color2 + ">" + Text.charAt(I) + "</font>");
}
else {
document.a.document.write(text.charAt(j));
}
}
document.a.document.write('</font></font></center>');
document.a.document.close();
}
if (navigator.appName == "Microsoft Internet Explorer") {
str = "<center><font face=arial size=" + fontsize + "><font color=" + color1 + ">";
for (var j = 0; j < text.length; j++) {
if( j == I) {
str += "<font face=arial color=" + color2 + ">" + text.charAt(I) + "</font>";
}
else {
str += text.charAt(j);
}
}
str += "</font></font></center>";
a.innerHTML = str;
}
(I == text.length) ? I=0 : I++;
}
setInterval("changeCharColor()", speed);
// End -->
</script></i></div>
<p> </p>
<div align="center"><a href="http://www.ayoga.cn/"><font color="#0099FF" >亞洲瑜伽網</font></a></div>
<div align="center"><a href="http://www.gogle.com/"><font color="#0099FF">gogle搜索網</font></a></div>
<div align="center"><a href="http://home.dangdang.com/"><font color="#0099FF">當當網上書店</font></a></div>
<div align="center"><a href="http://www.smallrain.net/"><font color="#0099FF">小雨在線(網站素材)</font></a></div>
<div align="center"><a href="http://www.ritie.com/"><font color="#0099FF">日帖生活網</font></a></div>
<div align="center"><a href="http://news.sina.com.cn/"><font color="#0099FF">新浪新聞網</font></a></div>
<p>
<% } else {
GregorianCalendar date=new GregorianCalendar();%>
</p>
<p> </p>
<div class="relatedLinks">
<h3 ><%= (String)session.getAttribute("userId") %>,歡迎您光臨!</h3>
<p>今天是<%= date.get(Calendar.MONTH)+1 %>月<%= date.get(Calendar.DAY_OF_MONTH) %>日</p>
</div>
<div id="sectionLinks">
<div align="center">
<a href="/bookshop/myCart.jsp">我的購物車 </a>
<a href="/bookshop/userOrder.jsp">歷史訂單</a>
<a href="/bookshop/changePassword.jsp">修改密碼</a>
<a href="/bookshop/userInf.jsp">個人資料</a>
<a href="/bookshop/UserExit">離開書店</a>
</div>
</div>
<%
}%>
</td>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -