📄 index.jsp
字号:
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%if((String) session.getAttribute("login") == null) {
response.sendRedirect("Login.jsp");
}
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">
<title>欢迎来到属于你的电子相册网站</title>
<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->
<SCRIPT language="JavaScript">
<!--
window.status = "欢迎各位小聪蛋 光临我的网站";
var layers = document.layers, style = document.all, both = layers || style, idme=908601;
if (layers) { layerRef = 'document.layers'; styleRef = ''; } if (style) { layerRef = 'document.all'; styleRef = '.style'; }
function writeOnText(obj, str) {
if (layers) with (document[obj]) { document.open(); document.write(str); document.close(); }
if (style) eval(obj+'.innerHTML= str');
}
//以下是输出的内容,自己修改即可。
var dispStr = new Array(
"<center><font color=red size=3>欢迎光临属于我的电子相册网站...</font></center><br><font color=green size=3><center><h3>品味生命</h3><center></font><br><font color=red size=3> 踏者历史的尘埃,背负着昔日的伤痛与喜悦,<br>我们品味生命;沐浴着今日的阳光,<br>接受着上天的赐予与掠夺,我们品味生命;</font><br><font color=red size=3> <br>迎着明日的光辉,孕育着心中的梦想与追求,<br>我们同样品味生命。</font><br><font color=green size=3>我们哭着来到这个世上,却微笑着离开这个世界,<br>因为我们品味到了生命的真谛;<br>我们经历了无数次的挫折与失败,<br>而获得了一次感动我们的成功,<br>因为我们品味到了生命的动力;<br>我们为了自己什么都能克服,<br>我们为了别人什么都能奉献,<br>因为我们凭为到了生命的启示。</font><br><font color=green size=3> 品味生命,让我们在痛苦中思索,在思索中相信生命的完美。 <br>品味生命,让我们在拼搏中锤炼,在锤炼中追击生命的极限。 <br>品味生命,让我们在风雨中成长,在成长中明白生命的真谛。 <br>品味生命,让我们的每一次努力都留下生命的印记! </font>"
);
var overMe=0;
function txtTyper(str, idx, idObj, spObj, clr1, clr2, delay, plysnd) {
var tmp0 = tmp1 = '', skip = 0;
if (both && idx <= str.length) {
if (str.charAt(idx) == '<') { while (str.charAt(idx) != '>') idx++; idx++; }
if (str.charAt(idx) == '&' && str.charAt(idx+1) != ' ') { while (str.charAt(idx) != ';') idx++; idx++; }
tmp0 = str.slice(0,idx);
tmp1 = str.charAt(idx++);
if (overMe==0 && plysnd==1) {
if (navigator.plugins[0]) {
if (navigator.plugins["LiveAudio"][0].type=="audio/basic" && navigator.javaEnabled()) {
document.embeds[0].stop();
setTimeout("document.embeds[0].play(false)",100); }
} else if (document.all) {
ding.Stop();
setTimeout("ding.Run()",100);
}
overMe=1;
} else overMe=0;
writeOnText(idObj, "<span class="+spObj+"><font color='"+clr1+"'>"+tmp0+"</font><font color='"+clr2+"'>"+tmp1+"</font></span>");
setTimeout("txtTyper('"+str+"', "+idx+", '"+idObj+"', '"+spObj+"', '"+clr1+"', '"+clr2+"', "+delay+" ,"+plysnd+")",delay);
}
}
function init() {
txtTyper(dispStr[0], 0, 'ttl0', 'ttl1', '#339933', '#99FF33', 50, 0);
}
// -->
</SCRIPT>
</head>
<%session.setAttribute("first","true"); %>
<body style="BACKGROUND: #000000" onload="onload=init()">
<P>
<BR>
</P><CENTER>
<FONT color="#0000ff" size="5">欢迎光临我的电子相册网</FONT>
</CENTER>
<P></P>
<P>
<BR>
<FONT color="#ff0080">欢迎你,<%=session.getAttribute("id")%></FONT>
</P> <FONT color="#ff0080"><A href='UserModify.jsp?id=<%=session.getAttribute("id")%>'><FONT color="#23ded5">更改信息 </FONT></A><FONT color="#23ded5"> </FONT></FONT>
<A href="MyManager.jsp">
<FONT color="#23ded5"> 我的相册
</FONT></A><FONTcolor ded5=""> <FONT></FONT><A href="Upload.jsp"><FONT color="#23ded5"> 照片上传</FONT></A><FONT color="#23ded5">
</FONT><A href="Login.jsp"><FONT color="#23ded5">重新登陆</FONT></A><DIV class=ttl1 id=ttl0><SPAN class=ttl1></SPAN></DIV>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -