js问题请高手帮忙!!!万分感谢!在线等。。。
我找到一个js特效http://www.alixixi.com/Dev/HTML/jsrun/color/2008/2008080180461.html主要我想做成删除的时候提示删除成功用,但对这个特效实在没有研究清楚,尝试了好几次也没能成功,哪位高手能帮我改一下吗?
我的代码如下:(是JSP的,不过只要实现了点删除的时候页面变灰,弹出提示框,就可以了,先谢过了!!在赶工期,拜托大家帮帮忙!!我很菜,看不懂上面的JS特效代码,如果方便的话,高手帮改的时候能加些注释吗?不加也行,谢谢了 !!我今天一直在线等)
<%@ page language="java" import="java.util.*, java.sql.*,MyBean.DealString" pageEncoding="GB2312"%>
<%
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>
<base href="<%=basePath%>">
<title>My JSP 'listNotice.jsp' starting page</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">
-->
<style type="text/css">
<!--
.STYLE1 {
font-size: 24px;
font-weight: bold;
}
#Layer1 {
position:absolute;
width:964px;
height:47px;
z-index:1;
left: 13px;
top: 243px;
}
-->
</style>
</head>
<body>
<center>
<form action = "message.jsp" method = "post">
<p> </p>
<p> </p>
<p class="STYLE1">信息公告 </p>
<p>
<input type = "hidden" name = "flag" value = "2"/>
<input type = "submit" value = "发表公告"/>
</p>
</form>
<table align="left" width="100%" bgcolor="#FFFFFF" >
<caption align="center">
</caption>
<tr>
<th width="60%" align="left" valign="top" bgcolor="#FFFFFF" > 主题 </th>
<th align="left" valign="top" >时间</th>
</tr>
<tr>
<%
DealString ds = new DealString();
ResultSet rsNotice = (ResultSet)session.getAttribute("rsNotice");
rsNotice.first();
//rsNotice.previous();
do {
%>
<td>
<a href="servlet/contentServlet?noticeID=<%=rsNotice.getInt(1) %>">
<%= ds.toGBK(rsNotice.getString("title")) %></a>
</td>
<td><%= rsNotice.getString("time") %></td>
<td valign="BOTTOM">
<form action = "servlet/deleteServlet" method = "post">
<input type = "hidden" name = "ID" value = "<%=rsNotice.getInt(1)%>">
<input type = "submit" value = "删除">
</form>
</td>
</tr>
<br><br>
<%
}while(rsNotice.next());
%>
</table>
<div id="Layer1">
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p> </p>
<p>Copyright©2008 xx Corporation. All rights reserved.</p>
</div>
</center>
</body>
</html>