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

📄 index.jsp

📁 企业宣传网 用JSP+SQLSERVER开发 商品展示 在线聊天 留言板 新闻发布 后台管理
💻 JSP
字号:
<%@ page language="java" import="java.util.*,com.accpedu.LHcompany.dao.*,com.accpedu.LHcompany.entity.*" pageEncoding="gbk"%>
<html>
  <head>
  <style type="text/css">
<!--
#Layer11 {
	position:absolute;
	width:290px;
	height:115px;
	z-index:1;
	left: 30px;
	top: 215px;
}
#Layer2 {
	position:absolute;
	width:268px;
	top: 215px;
	left: 320px;
	z-index:1;
}
.STYLE1 {
	font-family: "宋体";
	font-size: 12px;
}
.STYLE2 {
	font-family: "宋体";
	font-size: 12px;
	color:red;
}
#Layer12 {
	position:absolute;
	width:558px;
	top:467px;
	z-index:2;
	left:30px;
}
#Layer13 {
	position:absolute;
	width:200px;
	height:115px;
	left:30px;
	top:722px;
	z-index:3;
}
.STYLE7 {font-family: "宋体"; font-size: 14px; font-weight: bold; text-align:center; }
#Layer14 {
	position:absolute;
	width:200px;
	height:115px;
	left:308px;
	top:722px;
	z-index:1;
}
#Layer15 {
	position:absolute;
	width:156px;
	left:589px;
	top:216px;
	z-index:4;
	height:626px;
}
-->
  </style>
  </head>
  
  <body>
    <%@ include file="top.jsp" %>
    <%
    	newsDao nd=new newsDao();
    	ArrayList<news> al=nd.selects1();
    %>
    <div id="Layer11">
	<table width="290" border="0" cellspacing="0" cellpadding="0">
  	<tr >
    <td width="101"><img src="image/d_r7_c1.jpg"></td>
	<td background="image/d02.jpg" width="95">&nbsp;</td>
	<td width="94"><img src="image/d_r7_c14.jpg"></td>
  	</tr>
  	<%for(int i=0;i<al.size();i++)
  	{ %>
	  <tr>
		<td height="23" colspan="3" style="border-bottom:dashed; border-bottom-width:1px; border-bottom-color:#99FFFF;">&nbsp;<span class="STYLE1"><a href="newsSelect.jsp?id=<%=al.get(i).getNewsID() %>" style="text-decoration:none;"><%=al.get(i).getTitle() %></a></span>&nbsp;&nbsp;&nbsp;<span class="STYLE2">[<%=al.get(i).getWriterDate() %>]</span></td>
	  </tr>
	<%} %>
	
	  <tr>
	  <td colspan="3" align="right"><a href="news.jsp"><img src="image/d_r11_c15.jpg" border=0></a></td>
	  </tr>
</table>
</div>
	
	<div id="Layer2">
	<table width="268" height="252" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td><img src="image/d_r11_5_r1_c1.jpg"></td>
  </tr>
  <tr>
    <td><img src="image/d_r11_5_r3_c1.jpg"></td>
  </tr>
  <tr>
    <td><img src="image/d_r11_5_r4_c1.jpg" width="268"></td>
  </tr>
  <tr>
    <td><img src="image/d_r11_5_r5_c1.jpg"></td>
  </tr>
</table>
  </div>
	
    <div id="Layer12">
	<table width="558" border="0" cellpadding="0" cellspacing="0">
	<tr>
	<td colspan="4"><img src="image/d_r13_c1.jpg" width="160"><img width="332" height="27"src="image/d_r11_8.jpg"><a href="Product.jsp"><img width="66" src="image/d_r13_c21.jpg" border=0></a></td>
	</tr>
	<%
		productDao pd=new productDao();
		ArrayList<product> al1=pd.selects1();
		for(int i=al1.size();i<8;i++)
		{
			product p=new product();
			p.setPicture("116.jpg");
			p.setProductID(65530);
			al1.add(p);
		}
		
		for(int i=0;i<al1.size();i=i+4)
		{
		%>
			<tr height="112">
				<%
				for(int j=i;j<i+4;j++)
				{
				 %>
					<td width="139">
					<a href="prodocts.jsp?id=<%=al1.get(j).getProductID() %>"><img width="139" height="112" src="image/<%=al1.get(j).getPicture()%>" border=0></a>
					</td>
			  <%}%>
			</tr>
	  <%} %>
	</table>
	</div>
	
	
    <div id="Layer13">
	<table width="279" border="0" cellpadding="0" cellspacing="0">
	<tr>
	<td background="image/d_r11_8.jpg" colspan="2"><img src="image/n06.jpg"></td>
	</tr>
	<tr>
		<td><img src="image/d_r11_12_r1_c1.jpg"></td>
		<td><span class="STYLE7">业务专线: 010-88888888 </span></td>
	</tr>
	<tr>
		<td><img src="image/d_r11_12_r1_c1.jpg"></td>
		<td><span class="STYLE7">售后服务: 010-66666666 </span></td>
	</tr>
	<tr>
		<td><img src="image/d_r11_12_r1_c1.jpg"></td>
		<td><span class="STYLE7">传&nbsp;&nbsp;&nbsp;&nbsp;真: 010-88888888 </span></td>
	</tr>
	</table>
	</div>
	
	<div id="Layer14">
	<table width="279" border="0" cellpadding="0" cellspacing="0">
	<tr>
	<td colspan="3"><img src="image/d_r11_11_r1_c21.jpg"><img src="image/d_r11_8.jpg" width="56" height="27"><img src="image/d_r11_11_r1_c30.jpg"></td>
	</tr>
	<tr>
	<td><img src="image/d_r11_13_r1_c1.jpg"></td>
	<td><img src="image/d_r11_13_r1_c7.jpg"></td>
	<td><img src="image/d_r11_13_r6_c13.jpg"></td>
	</tr>
	<tr>
	<td><img src="image/f1.gif"></td>
	<td><img src="image/f2.gif"></td>
	<td><img src="image/f3.gif"></td>
	</tr>
	</table>
	</div>
	
    <div id="Layer15">
	<table width="100%" height="620" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td height="37" valign="top"><a href="Product.jsp"><img src="image/d_r11_6.jpg" width="156" border=0></a></td>
      </tr>
      <tr>
        <td height="570">
<div id=demo style=overflow:hidden;height:570;width:156;background:#214984;color:#ffffff>
<div id=demo1>
             <%
             	productDao pd2 = new productDao();
             	ArrayList<product> al2=pd2.selects();
             	for (int i = 0; i < al2.size(); i++) {
             		product product = al2.get(i);
             %>
             <img width=156 src="image/<%=product.getPicture() %>" 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>
	
	
  </div>
  </body>
</html>

⌨️ 快捷键说明

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