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

📄 index.asp

📁 购物系统(本版为正式商业版
💻 ASP
字号:
<!--#include file="../conn.asp"-->
<!--#include file="../webconfig.asp"-->
<!--#include file="../fuction.asp" -->
<!--#include file="webconfig.asp"-->
<html>
<head>
<title><%=webname%>--新闻中心</title>
<html>
<link rel="SHORTCUT ICON" href="/shortcut.ico">
<meta name="generator" content="snsn-shop">
<meta name=keywords content="<%=webgjz%>">
<meta name="description" content="<%=webmx%>">
<meta name="MSSmartTagsPreventParsing" content="TRUE">
<meta http-equiv="MSThemeCompatible" content="Yes">
<link href="/css.css" rel="stylesheet" type="text/css">
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<style type="text/css">
<!--
.style1 {color: #FF0000}
.style2 {color: #0000FF}
-->
</style>
</head>
<body leftmargin=0 topmargin=0 marginwidth="0" marginheight="0"><!-- onMouseOver="window.status='【<%=webname%>】<%=weburl%> 如果您喜欢本站,别忘了把本站介绍给您的好友哦!:)';return true">-->
<!--#include file="../webtop.asp"-->
<table width="940" align="center" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="6" colspan="3"></td>
  </tr>
  <tr>
    <td width="17"><img src="/img/index_1.gif" width="15" height="16"></td>
    <td valign="bottom">您现在的位置是:<a href="<%=weburl%>"><%=webname%></a> -> <a href="/news/">新闻中心</a> -> 新闻首页</td>
    <td valign="bottom"> </td>
  </tr>
  <tr>
    <td height="6" colspan="3"></td>
  </tr>
</table>
<table width="945"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="200" valign="top"><!--#include file="news_left.asp"--></td>
    <td valign="top"><table width="730"  border="0" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td><div align="center">              <%=newsd1%>
            <%=newsd2%> </div></td>
      </tr>
    </table>
  <%
				set avirs=server.CreateObject("adodb.recordset")
               avisql="select * from shop_News_class  order by px asc"
				avirs.open avisql,conn,1,1
				%>
<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#CCCCCC" summary="Flash在线试听,Flash动画,Flash MTV,flash动漫,Flash下载,Flash游戏">
  <%
					do while not avirs.eof
					%>
  <tr>
    <%
					ii=1
					do while ii<3
					if  not avirs.eof then
					%>
    <td width="20%" valign="top" bgcolor="#FFFFFF">
      <table width="99%" border="0" align="center" cellpadding="0" cellspacing="0" class="sm_debrown">
        <tr>
          <td colspan="4" height="4" bgcolor="ffffff"></td>
        </tr>
        <tr>
		          <td width="15" class="sm_debrown"><img src="../img/skin<%=cssid%>/news_tetle_1.gif" width="15" height="37" border="0"></td>
          <td height="30" background="/img/skin<%=cssid%>/news_tetle_2.gif" class="sm_debrown"><%=x%>&nbsp;<a href=listnews.asp?id=<%=avirs("id")%>><strong><%=avirs("classname")%></strong></a></td>
          <td width="36" class="sm_debrown"><div align="center"><a href="rss.asp?a=<%=avirs("id")%>&d=<%=news_id%>"><img src="../img/skin<%=cssid%>/news_tetle_3.gif" alt="RSS2.0支持" width="36" height="37" border="0"></a></div></td>
        </tr>
      </table>
      <%
set rs2=server.createobject("adodb.recordset")
		rs2.open "select top "&inc6&" * from shop_news where classid="&avirs("id")&" order by newsid desc",conn,1,3
		if rs2.recordcount=0 then 
		%>
      <table width="100%" border="0" cellspacing="0" cellpadding="5" align="center">
        <tr>
          <td align=center>暂无新闻</td>
        </tr>
      </table>
      <%
		else%>
      <table width="100%" border="0" cellspacing="0" cellpadding="2" align="center">
        <%
			while not rs2.eof
			%>
        <tr  onMouseOver='JavaScript:this.style.backgroundColor="#f1f1f1"' onMouseOut='JavaScript:this.style.backgroundColor=""'>
          <td height=20 colspan="2">· <a href=news.asp?id=<%=rs2("newsid")%> title="<%=rs2("newsname")%>">
            <%if len(trim(rs2("newsname")))>15 then
	response.write left(trim(rs2("newsname")),15)&""
	else
	response.write trim(rs2("newsname"))
	end if%></a>
            <%if rs2("newstop")=0 then%>
            <font color="#FF0000">顶</font>
            <%end if%>
            <%if rs2("newstj")=0 then%>
            <span class="style2">荐</span>
            <%end if%>
            <%if rs2("tp")=0 then%>
            <img src="../img/img.gif" width="13" height="13">
            <%end if%>            </td>
          <td width="28%" height=20><div align="right"><%=year(rs2("adddate"))&"年"&month(rs2("adddate"))&"月"&day(rs2("adddate"))&"日"%></div></td>
        </tr>
        <tr>
          <td width="11" height="1" background="/img/skin<%=cssid%>/x.gif"></td>
          <td height="1" background="/img/skin<%=cssid%>/x.gif"></td>
          <td width="120" height="1" background="/img/skin<%=cssid%>/x.gif"></td>
        </tr>
        <%
			rs2.movenext
		    wend
			%>
      </table>
      <%
		end if
		rs2.close
		set rs2=nothing
		%></td>
    <%
					  avirs.movenext
					  else
					  %>
    <td width="20%" valign="top" bgcolor="#FFFFFF"></td>
    <%
					  end if 
					  ii=ii+1
					  loop
					  %>
  </tr>
  <%
				  loop
				  avirs.close
				  %>
</table>
<table width="730"  border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
      <div align="center">
          <%=newsd3%><%=newsd4%>
    </div></td></tr>
</table></td>
  </tr>
</table>
<!--#include file="../copyright.asp"-->
</body>
</html>
<%if newspfdy=1 then %>
<div id="pf" style="position:absolute; left:297px; top:114px; width:100px; height:100px; z-index:1"><%=newspf%></div>
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
var xPos = 20;
var yPos = document.body.clientHeight;
var step = 1;
var delay = 30; 
var height = 0;
var Hoffset = 0;
var Woffset = 0;
var yon = 0;
var xon = 0;
var pause = true;
var interval;
pf.style.top = yPos;
function changePos() {
width = document.body.clientWidth;
height = document.body.clientHeight;
Hoffset = pf.offsetHeight;
Woffset = pf.offsetWidth;
pf.style.left = xPos + document.body.scrollLeft;
pf.style.top = yPos + document.body.scrollTop;
if (yon) {
yPos = yPos + step;
}
else {
yPos = yPos - step;
}
if (yPos < 0) {
yon = 1;
yPos = 0;
}
if (yPos >= (height - Hoffset)) {
yon = 0;
yPos = (height - Hoffset);
}
if (xon) {
xPos = xPos + step;
}
else {
xPos = xPos - step;
}
if (xPos < 0) {
xon = 1;
xPos = 0;
}
if (xPos >= (width - Woffset)) {
xon = 0;
xPos = (width - Woffset);
   }
}
function start() {
pf.visibility = "visible";
interval = setInterval('changePos()', delay);
}
function pause_resume() {
if(pause) {
clearInterval(interval);
pause = false;
}
else {
interval = setInterval('changePos()',delay);
pause = true;
   }
}
start();
//  End -->
</script>
<%end if%>
<%if newsdldy=1 then %>
<SCRIPT LANGUAGE="JavaScript">
var delta=0.015;
 var collection;
 var closeB=false;
 function floaters() {
  this.items = [];
  this.addItem = function(id,x,y,content)
      {
     document.write('<DIV id='+id+' style="Z-INDEX: 10; POSITION: absolute;  width:80px; height:60px;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()',30);
      }
  }
  function play()
  {
   if(screen.width<=800 || closeB)
   {
    for(var i=0;i<collection.length;i++)
    {
     collection[i].object.style.display = 'none';
    }
    return;
   }
   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 = '';
   }
  } 
  function closeBanner()
  {
   closeB=true;
   return;
  }

 var theFloaters  = new floaters();
 //
 theFloaters.addItem('followDiv1','document.body.clientWidth-100',0,'<%=newsdlz%><br><a onClick="closeBanner();">关闭广告</a><!--img src=ad/doublead/close.gif onClick="closeBanner();"-->');
 theFloaters.addItem('followDiv2',0,0,'<%=newsdly%><br><a onClick="closeBanner();">关闭广告</a><!--img src=ad/doublead/close.gif onClick="closeBanner();"-->');
 theFloaters.play();
</script>
<%end if%>
<%if newstcdy=1 then %>
<script language="javascript">
window.open('<%=newstc%>','tcck','width=<%=newstcw%>,height=<%=newstch%>,top=0,left=0');
</script>
<%end if%>

⌨️ 快捷键说明

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