?? notice.jsp
字號:
<%@ page contentType="text/html;charset=gb2312" %>
<%@ page import="shopbean.ConnDB" %>
<%@ page import="java.io.*"%>
<%@ page import="java.util.*"%>
<%@ page import="java.sql.*"%>
<table width="180" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="184" height="30" align="center" bgcolor="#99CCFF"><span class="STYLE2">公告欄</span></td>
</tr>
<%
ConnDB non=new ConnDB();
String nsql="select n_message from notice";
String notice="";
String nsum="";
ResultSet nrs=non.doQuery(nsql);
int count=1;
while(nrs.next())
{
notice =nrs.getString("n_message");
nsum=nsum+"<br><Br>公告"+String.valueOf(count)+": "+notice;
count++;
}
%>
<tr>
<td height="70" align="center"><span class="STYLE1" style="color: #000000">
<marquee direction=up height=100 id=m onmouseout=m.start() onMouseOver=m.stop() scrollamount=2 align="center">
<%= nsum %>
</marquee>
</span></td>
</tr>
</table>
<% non.closeConnection(); %>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -