?? news.asp
字號:
<!--#include file="../include/connstr.asp"-->
<!--#include file="../include/DefFunction.asp"-->
<html>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
</script>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>浙江永嘉誠一閥門有限公司</title>
<style type="text/css">
<!--
body {
margin-top: 0px;
margin-left: 0px;
margin-bottom: 0px;
}
-->
</style>
<link href="../include/mycss.css" rel="stylesheet" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<script src='../include/jchar.js'></script>
<!-- 浮動層的開始 -->
<SCRIPT language=javascript>
var delta=0.15
var collection;
function floaters() { //添加層的子程序
this.items = [];
this.addItem = function(id,x,y,content)
{
document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute; width:100px; height:240px;left:'+(typeof(x)=='string'?eval(x):x)+';top:'+(typeof(y)=='string'?eval(y):y)+'">'+content+'</DIV>');
var newItem = {};
newItem.object = document.getElementById(id);
newItem.x = x;
newItem.y = y;
this.items[this.items.length] = newItem;
}
this.play = function()
{
collection = this.items
setInterval('play()',10);
}
}
function play() //調整層的位置
{
for(var i=0;i<collection.length;i++)
{
var followObj = collection[i].object;
var followObj_x = (typeof(collection[i].x)=='string'?eval(collection[i].x):collection[i].x);
var followObj_y = (typeof(collection[i].y)=='string'?eval(collection[i].y):collection[i].y);
if(followObj.offsetLeft!=(document.body.scrollLeft+followObj_x)) {
var dx=(document.body.scrollLeft+followObj_x-followObj.offsetLeft)*delta;
dx=(dx>0?1:-1)*Math.ceil(Math.abs(dx));
followObj.style.left=followObj.offsetLeft+dx;
}
if(followObj.offsetTop!=(document.body.scrollTop+followObj_y)) {
var dy=(document.body.scrollTop+followObj_y-followObj.offsetTop)*delta;
dy=(dy>0?1:-1)*Math.ceil(Math.abs(dy));
followObj.style.top=followObj.offsetTop+dy;
}
followObj.style.display = '';
}
}
var theFloaters = new floaters();
theFloaters.addItem('followDiv2',900,100,'<img src=../images/right.jpg usemap="#Map1111111111111" border=0>'); //層名,位置X,位置Y,內容
theFloaters.play();
</SCRIPT>
<!-- 浮動層的結束 -->
</head>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</script>
<body>
<!--#include file="../include/top.asp"-->
<table width="919" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="278" height="502" valign="top" bgcolor="63a639"> <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="278" height="502">
<param name="movie" value="images/left.swf">
<param name=quality value=high>
<embed src="images/left.swf" quality=high pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="278" height="502"></embed>
</object></td>
</tr>
</table>
<!--#include file="../include/left.asp"-->
</td>
<td width="616" valign="top"><table width="99%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td width="96%" height="502" valign="top"><table width="616" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="136" valign="middle" background="<%if request("CateID")="News_Trend" then response.write "images/News.jpg" else response.write "images/trend.jpg"%>"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="3" align="right"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0" width="308" height="80">
<param name="movie" value="../images/shuidi.swf">
<param name="quality" value="high">
<param name="wmode" value="transparent">
<embed src="../images/shuidi.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="308" height="80" wmode="transparent"></embed>
</object></td>
</tr>
<tr>
<td width="6%"> </td>
<td width="57%" class="biaoti"><%if request("CateID")="News_Trend" then response.write "HOME> 新聞動態>行業動態" else response.write "HOME> 新聞動態>企業新聞"%></td>
<td width="37%"> </td>
</tr>
<tr>
<td colspan="3"> </td>
</tr>
</table></td>
</tr>
<tr>
<td height="351" valign="top"><table width="94%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td colspan="3" valign="top" class="zhengwen">
<%
'----------------------------
PERPAGE =10
PageNo=request("PageNo")
set rs=server.createobject("ADODB.recordset")
if request("CateID")="" then
sql="select * from tNews where ClassID='News_Company' or ClassID='News_Trend' order by AddTime desc"
else
sql="select * from tNews where ClassID='"&request("CateID")&"' order by AddTime desc"
end if
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "暫時沒有數據!"
else
rs.pagesize = PERPAGE
if isempty(PageNo) or cstr(PageNo)<"1" then PageNo = 1
CurPage=PageNo
if int(PageNo)>=int(rs.pagecount) then CurPage=cint(rs.pagecount)
rs.absolutepage = CurPage
%>
<img src="../images/news1.jpg" width="574" height="89"></td>
</tr>
<tr>
<td width="29" height="123" background="../images/news2.jpg" class="zhengwen"><img src="../images/news2.jpg" width="26" height="24"></td>
<td width="532" valign="top" class="zhengwen"><table width="95%" border="0" cellspacing="0" cellpadding="0">
<% for i = 1 to rs.pagesize %>
<tr <%if i mod 2=0 then response.write "bgcolor='efefef'"%>>
<td width="6%" height="20" align="center"><%=rs("ID")%></td>
<td width="65%" height="20" align="center"><a href="javascript:newWindow('/News/ShowNews.asp?ID=<%=rs("ID")%>','news','763','583','')">
<%if len(rs("Title"))>18 then response.write left(rs("Title"),18)&"..." else response.write rs("Title")%>
</a></td>
<td width="18%" height="20" align="center"><%=formatdatetime(rs("AddTime"),1)%></td>
<td width="11%" height="20" align="center"><%=rs("Hits")%></td>
</tr>
<tr <%if i mod 2=0 then response.write "bgcolor='efefef'"%>>
<td height="7" colspan="4" align="center"><img src="../images/news5.jpg" width="519" height="7"></td>
</tr>
<% rs.movenext
if rs.eof then
i = i + 1
exit for
end if
next %>
</table>
</td>
<td width="18" align="left" background="../images/news3.jpg" class="zhengwen"><img src="../images/news3.jpg" width="13" height="29"></td>
</tr>
<tr>
<td height="133" colspan="3"><table width="100%" height="133" border="0" cellpadding="0" cellspacing="0" background="../images/news4.jpg">
<tr>
<td valign="middle"><table width="83%" height="45" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td width="41%" height="45" valign="bottom"> 頁次:<b><%=CurPage%></b>/<b><%=rs.pagecount %></b>頁 共<b><%=rs.recordcount %></b>條記錄</td>
<td width="59%" align="left" valign="bottom" nowrap>
<%if CurPage = 1 then
response.write " 首頁 | 上一頁 | "
else
response.write "<a href='?PageNo=1&CateID="&request("CateID")&"'><b> 首頁 </b></a> | <a href='?PageNo="&CurPage-1&"&CateID="&request("CateID")&"'><b>上一頁</b></a>| "
end if
if CurPage = rs.pagecount then
response.write "后一頁 | 尾頁 "
else
response.write "<a href='?PageNo="&CurPage+1&"&CateID="&request("CateID")&"'><b>后一頁</b> </a>| <a href='?PageNo="&rs.pagecount&"&CateID="&request("CateID")&"'><b>尾頁</b> </a>"
end if
%>
跳轉到:
<select name="menu1" onChange="MM_jumpMenu('parent',this,0)">
<% for i=1 to rs.pagecount
if CurPage=i then
response.write "<option value='?PageNo="&i&"&CateID="&request("CateID")&"' selected>第"&i&"頁"
else
response.write "<option value='?PageNo="&i&"&CateID="&request("CateID")&"'>第"&i&"頁"
end if
next
%>
</select></td>
</tr>
<%end if%>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
</tr>
</table></td>
<td width="25" valign="bottom" background="../images/about_6.jpg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td height="52" background="../images/about_6.jpg"><IMG SRC="../images/about_6.jpg" WIDTH=24 HEIGHT=52 ALT=""></td>
</tr>
<tr>
<td height="459" valign="bottom"><IMG SRC="../images/about_8.jpg" WIDTH=24 HEIGHT=337 ALT=""></td>
</tr>
</table></td>
</tr>
</table>
<!--#include file="../include/bottom.asp"-->
</body>
</html>
<map name="Map1111111111111" id="Map1111111111111">
<area shape="rect" coords="18,62,71,116" href="../News/News.asp">
<area shape="rect" coords="18,125,72,184" href="../aboutus/Cultrue.asp">
<area shape="rect" coords="20,203,73,258" href="../product/Feedback.asp">
<area shape="rect" coords="18,272,77,327" href="../Distribution/Distribution.asp">
<area shape="rect" coords="14,334,81,359" href="../english/main.asp" target="_blank">
</map>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -