⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.jsp

📁 某电子商品销售公司为了提升企业形象和商品销售量
💻 JSP
字号:
<%@ page language="java" pageEncoding="gbk"%>
<%@ page import="java.util.*,s2jsp.bysj.dao.*,s2jsp.bysj.entity.*"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>妙妙宾馆</title>
<link href="image/css.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
-->
</style>

</head>

<body>
<%@ include file="top.jsp"%>
<table width="799" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td height="3" background="image/d.jpg"></td>
  </tr>
</table>
<table width="799" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td valign="top"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td width="352"><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td background="image/d02.jpg"><img src="image/d_r7_c1.jpg" width="101" height="35" /></td>
            <td align="right" background="image/d02.jpg"><img src="image/d_r7_c14.jpg" width="94" height="35" /></td>
          </tr>
<%
	NewsDao newsDao = new NewsDao();
	List newsList = newsDao.findNews();
	if (newsList.size() > 0) {
		for (int i = 0; i < newsList.size(); i++) {
			News news = (News) newsList.get(i);
%>
		  
		  
          <tr>
            <td height="26" colspan="2"> &nbsp;<a href="detailNews.jsp?newsID=<%=news.getNewsID() %>" class="dong06"><%=news.getTitle()%>&nbsp;&nbsp;&nbsp;<font color="#ff0000">[<%=news.getWriterDate()%>]</font></a></td>
          </tr>
          <tr>
            <td colspan="2"><img src="image/d03.jpg" width="352" height="1" /></td>
          </tr>

<%
	}
	} else {
%>
          <tr>
            <td height="26" colspan="2"> <a href="#" class="dong06">暂无</a></td>
          </tr>
          <tr>
            <td colspan="2"><img src="image/d03.jpg" width="352" height="1" /></td>
          </tr>

<%
}
%>
           <tr>
            <td colspan="2" align="right"><a href="#"><img src="image/d_r11_c15.jpg" width="51" height="33" border="0" /></a></td>
          </tr>
          
        </table></td>
        <td align="right" valign="top"><table width="268" border="0" cellpadding="0" cellspacing="0">
          <tr>
            <td><a href="showProductList.jsp"><img src="image/d_r11_5_r1_c1.jpg" width="268" height="63" border="0" /></a></td>
          </tr>
          <tr>
            <td><a href="showProductList.jsp"><img src="image/d_r11_5_r3_c1.jpg" width="268" height="59" border="0" /></a></td>
          </tr>
          <tr>
            <td><a href="showProductList.jsp"><img src="image/d_r11_5_r4_c1.jpg" width="268" height="61" border="0" /></a></td>
          </tr>
          <tr>
            <td><a href="showProductList.jsp"><img src="image/d_r11_5_r5_c1.jpg" width="268" height="64" border="0" /></a></td>
          </tr>
        </table></td>
      </tr>
    </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td background="image/d_r11_8.jpg"><img src="image/d_r13_c1.jpg" width="160" height="27" /></td>
          <td align="right" background="image/d_r11_8.jpg"><a href="#"><img src="image/d_r13_c21.jpg" width="66" height="27" border="0" /></a></td>
        </tr>
      </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="25%" align="center"><a href="showProductList.jsp"><img src="image/d_r11_10_r1_c1.jpg" width="143" height="112" border="0" /></a></td>
          <td width="25%" align="center"><a href="showProductList.jsp"><img src="image/d_r11_10_r1_c8.jpg" width="142" height="112" border="0" /></a></td>
          <td width="25%" align="center"><a href="showProductList.jsp"><img src="image/d_r11_10_r1_c16.jpg" width="141" height="112" border="0" /></a></td>
          <td width="25%" align="center"><a href="showProductList.jsp"><img src="image/d_r11_10_r1_c22.jpg" width="142" height="112" border="0"/></a></td>
        </tr>
		 <tr>
          <td width="25%" align="center"><a href="showProductList.jsp"><img src="image/d_r11_10_r1_c2.jpg" width="143" height="112" border="0" /></a></td>
          <td width="25%" align="center"><a href="showProductList.jsp"><img src="image/d_r11_10_r1_c81.jpg" width="142" height="112" border="0" /></a></td>
          <td width="25%" align="center"><a href="showProductList.jsp"><img src="image/d_r11_10_r1_c116.jpg" width="141" height="112" border="0" /></a></td>
          <td width="25%" align="center"><a href="showProductList.jsp"><img src="image/d_r11_10_r1_c221.jpg" width="142" height="112" border="0"/></a></td>
        </tr>
    </table>
      <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td width="25%" background="image/d_r11_11_r1_c15.jpg"><img src="image/d_r11_11_r1_c1.jpg" width="185" height="27" /></td>
          <td width="25%" background="image/d_r11_11_r1_c15.jpg">&nbsp;</td>
          <td width="25%" background="image/d_r11_11_r1_c15.jpg"><img src="image/d_r11_11_r1_c21.jpg" width="160" height="27" /></td>
          <td width="25%" align="right" background="image/d_r11_11_r1_c15.jpg"><a href="#"><img src="image/d_r11_11_r1_c30.jpg" width="63" height="27" border="0" /></a></td>
        </tr>
        <tr>
          <td width="50%" colspan="2" bgcolor="#FCFCFC"><table width="100%" border="0" cellspacing="0" cellpadding="0">
            <tr>
              <td width="28" height="29"><img src="image/d_r11_12_r1_c1.jpg" width="28" height="32" /></td>
              <td width="100" align="center" class="d06" style="font-weight: bold">&nbsp;啪啪啪啪:</td>
              <td class="d06" style="font-weight: bold">010-88888888</td>
            </tr>
            <tr>
              <td width="28" height="29"><img src="image/d_r11_12_r1_c1.jpg" width="28" height="32" /></td>
              <td width="100" align="center" class="d06">&nbsp;<span style="font-weight: bold">售后服务:</span></td>
              <td class="d06" style="font-weight: bold">010-66666666</td>
            </tr>
            <tr>
              <td width="28" height="29"><img src="image/d_r11_12_r1_c1.jpg" width="28" height="32" /></td>
              <td width="100" align="center" class="bold">&nbsp;<span class="d06" style="font-weight: bold">传&nbsp;&nbsp;&nbsp;&nbsp;真:</span></td>
              <td class="d06" style="font-weight: bold">010-88888888</td>
            </tr>
          </table></td>
          <td width="50%" colspan="3" bgcolor="#FCFCFC"><table width="287" border="0" align="center" cellpadding="0" cellspacing="0">
            <tr>
              <td width="97" height="47" align="center"><img src="image/f1.gif" width="90" height="33" /></td>
              <td width="97" height="47" align="center"><img src="image/f2.gif" width="88" height="33" /></td>
              <td width="97" height="47" align="center"><img src="image/f3.gif" width="90" height="33" /></td>
            </tr>
            <tr>
              <td width="97" height="47" align="center"><img src="image/d_r11_13_r6_c13.jpg" width="90" height="33" /></td>
              <td width="97" height="47" align="center"><img src="image/d_r11_13_r1_c1.jpg" width="90" height="33" /></td>
              <td width="97" height="47" align="center"><img src="image/d_r11_13_r1_c7.jpg" width="88" height="33" /></td>
            </tr>
          </table></td>
        </tr>
      </table></td>
    <td width="175" valign="top" bgcolor="#FCFCFC"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td valign="top"><a href="cgal.asp"><img src="image/d_r11_6.jpg" width="175" height="42" border="0" /></a></td>
      </tr>
      <tr>
        <td height="590">
  <!-- 指向链接图片url -->
<div id=demo style=overflow:hidden;height:600;width:180;background:#214984;color:#ffffff>
<div id=demo1>
<!-- 定义图片 -->

             <%
             	ProductDao productDao = new ProductDao();
             	List productList = productDao.findAllProduct();
             	session.setAttribute("productList",productList);
             	for (int i = 0; i < productList.size(); i++) {
             		Product product = (Product) productList.get(i);
             %>
             <img src="image/<%=product.getPicture() %>" width="100%" height="107" border="0" align="middle"/>
             <%
             }
             %>
</div>
<div id=demo2></div>
       
      </div>   
         
         <script>
var speed=30;
demo2.innerHTML=demo1.innerHTML;
demo.scrollTop=demo.scrollHeight;
function Marquee(){
if(demo1.offsetTop-demo.scrollTop>=0)
demo.scrollTop+=demo2.offsetHeight;
else{
demo.scrollTop--;
}
}
var MyMar=setInterval(Marquee,speed);
demo.onmouseover=function() {clearInterval(MyMar)}
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed);}
</script>

</td>
      </tr>
    </table></td>
  </tr>
</table>
<%@ include file="bottom.jsp"%>

</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -