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

📄 news.asp

📁 模块及功能: 1.汽车新闻 分类.查询.翻页 2.出售信息 搜索.评估.地区展示.发布.展示.固顶.刷新 3.求购信息 发布.展示.固顶.刷新 3.加盟商家管理 注册.登录.信
💻 ASP
字号:
<!--数据库链接文件-->
<!--#include file="byshop_conn.asp"-->
<!--网站头文件-->
<!--#include file="webhead.asp"--><%dim id
		id=lcase(trim(request("id")))  
					  if IsNumeric(request.QueryString("id"))=False or request.QueryString("id")="" then
		response.write"<SCRIPT language=JavaScript>alert('参数错误!');"
		response.write"javascript:history.go(-1)</SCRIPT>"
		response.end	
		end if
				sql="select * from news where newsid="&id&""
		Set rsb= Server.CreateObject("ADODB.Recordset")
		rsb.open sql,conn,1,3
		if rsb.bof and rsb.eof then
		response.write"<SCRIPT language=JavaScript>alert('参数错误!');"
		response.write"javascript:history.go(-1)</SCRIPT>"
		response.end
		else
		rsb("viewcount")=rsb("viewcount")+1
		rsb.update
		end if
		newsname=rsb("newsname")
		servername3=cstr(request.servervariables("http_referer"))

%>

<title><%=rsb("newsname")%>-<%=webname%></title>
<script language="JavaScript">
<!--
<!--
function click() {
if (event.button==2) {
	if(document.all.auto.status==true){document.all.auto.status=false;}
	scroller();
	}
}
document.onmousedown=click

var position = 0; 
function scroller() {
if (document.all.auto.status==true){ 
	position++; 
	scroll(0,position); 
	clearTimeout(timer); 
	var timer = setTimeout("scroller()",50); 
	timer;
	}
else{
	clearTimeout(timer);
	}
}

function doZoom(size){
	document.getElementById('zoom').style.fontSize=size+'px'
}

function mOvr(src,clrOver) {
   if (!src.contains(event.fromElement)) {
	  src.bgColor = clrOver;
	}
  }
  
function mOut(src,clrIn) {
	if (!src.contains(event.toElement)) {
	  src.bgColor = clrIn;
	}
  }
// -->

function MM_callJS(jsStr) { //v2.0
  return eval(jsStr)
}
//-->

function copyToClipBoard(){
	var clipBoardContent=''; 	
	clipBoardContent+='<%=newsname%>';
	clipBoardContent+='\r\n<%=servername3%>';	window.clipboardData.setData("Text",clipBoardContent);
	alert("地址已经复制到粘贴板!");
}

</SCRIPT>

<div align="center">
<table border="0" width="779" id="table3" cellspacing="0" cellpadding="0">
	<tr>
		<td>您的位置: <a href="default.asp">网站首页</a> &gt; 
		<a href="carnews.asp">汽车新闻</a> &gt; <%if rsb("class")=1 then %><a href="carnews.asp?class=1">二手车新闻</a><%end if%><%if rsb("class")=2 then %><a href="carnews.asp?class=2">行内标准</a><%end if%><%if rsb("class")=3 then %><a href="carnews.asp?class=3">业内政策</a><%end if%><%if rsb("class")=4 then %><a href="carnews.asp?class=4">二手车贷款</a><%end if%>&nbsp;&gt;&nbsp;<%=rsb("newsname")%></td>
	</tr>
</table>
		
		</div>
<div align="center">
<table border="0" width="779" id="table73" cellpadding="0" style="border-collapse: collapse">
	<tr>
		<td width="175" valign="top"><!--网站左面-->
		<div align="center">
		<table width="100%" border="0" cellspacing="1" cellpadding="0" id="table1">
       
 <tr> 
          <td  align="center" valign="top" height="2"></td>
        </tr> <tr> 
          <td  align="center" valign="top">
			<!--新闻--><!--#include file="in_news.asp"-->
			<!--新闻收索--><!--#include file="in_newssearch.asp"-->
			<!--广告--><!--#include file="in_ads2.asp"-->

       
		  </td>
        </tr>
       
      </table>
    
		</div>
		 </td>
		<td width="4" valign="top">
		 &nbsp;&nbsp;</td>
		<td valign="top">
	
		<div align="right">
			<table border="0"  id="table74" cellspacing="0" cellpadding="0">
				<tr>
					<td align="center"><table cellSpacing="0" cellPadding="0" width="100%" bgColor="#ffffff" border="0" id="table75">
				<tr>
					<td vAlign="top" align="middle">
					<table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table76">
						<tr vAlign="top">
							<td>
							<table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table77">
								<tr>
									<td vAlign="top">
									<table cellSpacing="0" cellPadding="0" width="100%" border="0" id="table78">
										<tr>
											<td width="6">
											<p align="left">
											<img height="6" src="images/didi_001.gif" width="6"></td>
											<td background="images/didi_005.gif">
											<p align="left">
											<img height="6" src="images/didi_005.gif" width="6"></td>
											<td width="6">
											<p align="left">
											<img height="6" src="images/didi_002.gif" width="6"></td>
										</tr>
										<tr>
											<td background="images/didi_007.gif">
											<p align="left"> </td>
											<td vAlign="top">
											<table height="1" cellSpacing="0" cellPadding="0" width="100%" bgColor="#ffffff" border="0" id="table79">
												<tr>
													<td bgcolor="#BDDBE9" colspan="2">
													<p align="center"> <%=rsb("newsname")%> </td>
												</tr>
												
												<tr>
													<td width=1%>
													<p align="right">
													</td>
													<td width="99%" height="30">
													<p align="right">
													<font color="#FF9900"> [ 
			<%=year(rsb("adddate"))%>-<%=month(rsb("adddate"))%>-<%=day(rsb("adddate"))%> 浏览:<%=rsb("viewcount")%> 来源:<%=webname%>&nbsp;]</td>
												</tr>
												<tr>
													<td width="100%" colspan="2">
													<p align="right"> 文字 〖 <a href="javascript:doZoom(16)" class=tt1>大</a> <a href="javascript:doZoom(14)" class=tt1>中</a> <a href="javascript:doZoom(12)" class=tt1>小</a> 〗
                <input type="checkbox" name="auto" value="on" onClick="MM_callJS('scroller() ; ')">
        自动滚屏(右键暂停) </td>
												</tr>
												<tr>
													<td width="100%" colspan="2">
													 </td>
												</tr>
											</table>
											<table cellSpacing="0" cellPadding="5" width="100%" border="0" id="table80">
												<tr>
													<td class="didibaba_l17" vAlign="top">
            <table border="0" width="99%" id="table81" cellspacing="0" cellpadding="0">
				<tr>
					<td align="center"></td>
				</tr>
			

				<tr>
					<td><font id="zoom" style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 130%; TEXT-ALIGN: left; mso-pagination: widow-orphan; mso-margin-top-alt: auto; mso-margin-bottom-alt: auto">
					 <%=rsb("newscontent")%></font></td>
				</tr>
		
				<tr>
					<td>
				
        <table width="555" border="0" cellspacing="0" cellpadding="2" id="table82">
        
          <tr> <td height=1 width="544" >&nbsp; </td>
          </tr>
        
          <tr> <td height=1 width="544" >&nbsp; </td>
          </tr>
        
          <tr> <td height=1 width="544" >
          
          <%
                     sql1="select newsid,newsname from news order by adddate desc"
		Set rs1= Server.CreateObject("ADODB.Recordset")
		rs1.open sql1,conn,1,1
		do while not rs1.eof
		if rs1("newsid") = rsb("newsid") then 
		exit do
		end if
		rs1.movenext
		loop

                      %>
           <%rs1.moveprevious%>
<div align=left>
<%if rs1.bof then
response.write "<img border='0' src='images/Cprevious.gif' width='13' height='9'>上一篇:没有上一篇了"
else
%>
	<img border="0" src="images/Cprevious.gif" width="13" height="9">上一篇:<a href="news.asp?id=<%=rs1("newsid")%>"><%=rs1("newsname")%></a>&nbsp;&nbsp; 
                      <%
                      end if
                      rs1.movenext
                      rs1.movenext
                      if rs1.eof then
                      response.write "<img border='0' src='images/Cnext.gif' width='13' height='9'>下一篇:没有下一篇了"
                      else
                      %><img border="0" src="images/Cnext.gif" width="13" height="9">下一篇:<a href="news.asp?id=<%=rs1("newsid")%>"><%=rs1("newsname")%></a>&nbsp;
                    <%end if%>
                    
                    <a href="javascript:history.back(-1)">返回上一页</a></div></td>
          </tr>
        
          <tr> <td height=1 width="544" >&nbsp;
			</td>
          </tr>
        
          <tr> <td height=1 width="544" >
			<p align="right"><img  src="images/save.gif" align="absMiddle"> <a href="#bottom" title='点击我即可直接在MSN/QQ上粘贴该帖地址' onclick='copyToClipBoard()'>复制地址</a>&nbsp;<img height="14" src="images/printer.gif" width="16" align="absMiddle">
			<a href="javascript:window.print()" title="打印本页">打印本页</a> | 
			<img src="images/close.gif">
			<a href="javascript:window.close()" title="关闭窗口">关闭窗口</a></td>
          </tr>
                </table>
    </td>
				</tr>
				<tr>
					<td></td>
				</tr>
			</table><table border="0" width="100%" id="table83" cellspacing="0" cellpadding="0">
				<tr>
					<td>
          
          			</td>
				</tr>
			</table>
													</td>
												</tr>
											</table>
											</td>
											<td background="images/didi_008.gif">
											<p align="left"> </td>
										</tr>
										<tr>
											<td>
											<p align="left">
											<img height="6" src="images/didi_003.gif" width="6"></td>
											<td background="images/didi_006.gif">
											<p align="left">
											<img height="6" src="images/didi_006.gif" width="6"></td>
											<td>
											<p align="left">
											<img height="6" src="images/didi_004.gif" width="6"></td>
										</tr>
									</table>
									</td>
							
									
								</tr>
							</table>
							</td>
						</tr>
					</table>
					</td>
				</tr>
			</table>
					</td>
				</tr>
				</table>
		</div>
	
		</td>
	</tr>
</table>
</div><br>
<!--#include file=webfoot.asp-->
<SCRIPT FOR=window EVENT=onload >
initAd();//载入页面后,调用函数initAd()
</SCRIPT>
<script>
<!--
function initAd() {
//if(document.body.offsetWidth>800){
//    document.all.login.style.posTop = 2;//设置onLoad事件激发以后,广告层相对于固定后的y方向位置
//    document.all.login.style.display = 'block'//设置层

⌨️ 快捷键说明

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