首页 新闻 搜索 专区 学院

asp手机站下拉加载更多(我要怎么加程序呀!)

0
悬赏园豆:30 [待解决问题]

<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<title>历史文化名镇古荥</title>
<meta name="keyword" content="历史文化名镇古荥">
<meta name="description" content="历史文化名镇古荥">
<link rel="stylesheet" type="text/css" href="css/index.css" />
<link rel="stylesheet" type="text/css" href="css/bd_share.css">
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/share.js"></script>
<script type="text/javascript" src="js/TouchSlide.1.1.js"></script>
<script src="js/html5.js"></script>
<link rel="stylesheet" href="css/pullToRefresh.css" type="text/css" />

<script type="text/javascript" src="js/iscroll.js"></script>
<script type="text/javascript" src="js/pullToRefresh.mini.js"></script>
<!--[if lt IE 9]><scriptsrc="js/css3-mediaqueries.js"></script><![endif]-->
</head>
<body id="index_body">
<!--#include file="top.asp"-->


<!---内页主体部分----->


<!--must content ul li,or shoupi-->
<div id="wrapper">
<ul>
<li>
<a href="newsshow.asp"><img src="images/news11.jpg"></a>
<div class="game-info">
<h1><a href="newsshow.asp">仙剑客栈20周年版</a></h1>
<p class="gamebox">网易游戏出品,双维度操控,真人真机对战</p>
</div>

</li>
<li>
<a href="newsshow.asp"><img src="images/news11.jpg"></a>
<div class="game-info">
<h1><a href="newsshow.asp">仙剑客栈20周年版</a></h1>
<p class="gamebox">网易游戏出品,3D即时战斗Q版手游</p>
</div>

</li>
<li>
<a href="newsshow.asp"><img src="images/news11.jpg"></a>
<div class="game-info">
<h1><a href="newsshow.asp">仙剑客栈20周年版</a></h1>
<p class="gamebox">再现经典即时战斗玄幻武侠手游</p>
</div>

</li>
<li>
<a href="newsshow.asp"><img src="images/news11.jpg"></a>
<div class="game-info">
<h1><a href="newsshow.asp">仙剑客栈20周年版</a></h1>
<p class="gamebox">承载着3亿玩家期待的十年经典游戏</p>
</div>

</li>
<li>
<a href="newsshow.asp"><img src="images/news11.jpg"></a>
<div class="game-info">
<h1><a href="newsshow.asp">辉仔漏夜上东莞</a></h1>
<p class="gamebox">超愉悦,与二次女友尺度大冒险</p>
</div>

</li>
<li>
<a href="newsshow.asp"><img src="images/news11.jpg"></a>
<div class="game-info">
<h1><a href="newsshow.asp">仙剑客栈20周年版</a></h1>
<p class="gamebox">仙剑20周年王牌手游巨制一全新演绎</p>
</div>
</li>
<li><a href="newsshow.asp"><img src="images/news11.jpg"></a><div class="game-info"><h1><a href="newsshow.asp">展哥剑风传奇</a></h1><p class="gamebox">漫画神作改编 首创三维一体玩法RPG巨作</p></div></li>
</ul>
</div>

<script type="text/javascript">
refresher.init({
id:"wrapper",//<------------------------------------------------------------------------------------┐
pullDownAction:Refresh,
pullUpAction:Load
});
function Refresh() {
setTimeout(function () { // <-- Simulate network congestion, remove setTimeout from production!
var el, li, i;
el =document.querySelector("#wrapper ul");
//这里写你的刷新代码
document.getElementById("wrapper").querySelector(".pullDownIcon").style.display="none";
document.getElementById("wrapper").querySelector(".pullDownLabel").innerHTML="<img src='images/ok.png'/>刷新成功";
setTimeout(function () {
wrapper.refresh();
document.getElementById("wrapper").querySelector(".pullDownLabel").innerHTML="";
},1000);//模拟qq下拉刷新显示成功效果
/****remember to refresh after action completed! ---yourId.refresh(); ----| ****/
}, 2000);
}
function Load() {
setTimeout(function () {// <-- Simulate network congestion, remove setTimeout from production!
var el, li, i;
el =document.querySelector("#wrapper ul");
for (i=0; i<5; i++) {
li = document.createElement('li');
li.innerHTML="<a href='newsshow.asp'><img src='images/news11.jpg'></a><div class='game-info'><h1><a href='newsshow.asp'>仙剑客栈20周年版</a></h1><p class='gamebox'>秒杀虚拟摇杆,砸烂手机键盘</p></div>"
el.appendChild(li, el.childNodes[0]);
}
wrapper.refresh();/****remember to refresh after action completed!!! ---id.refresh(); --- ****/
},2000);
}
</script>

</body>
</html>

asp
问题补充:

<!--#include file="Inc/conn.asp"-->
<!--#include file="Inc/common.asp"-->
<%
id=str2num(request.QueryString("id"),1)
sql="Select NS_Id,NS_Name,NS_Parentid,NS_Keywords,NS_Description,NS_Abstract from NewsSort_C where NS_id="&id

set rs=conn.execute(sql)
if not rs.eof then
NS_Id=rs("NS_Id")
NS_Parentid=rs("NS_Parentid")
NS_Name=rs("NS_Name")

NS_Keywords=rs("NS_Keywords")
NS_Description=rs("NS_Description")
NS_Abstract=rs("NS_Abstract")

if rs("NS_Abstract")<>"" then
NS_Abstract=rs("NS_Abstract")&"-"&webname
else
NS_Abstract=NS_Name&"-"&webname
end if

if NS_Keywords<>"" then
NS_Keywords=rs("NS_Keywords")
else
NS_Keywords=NS_Name
end if

if NS_Description<>"" then
NS_Description=rs("NS_Description")
else
NS_Description=NS_Name
end if
else
NS_Keywords="古荥镇网事"
NS_Description="古荥镇网事"
NS_Abstract="古荥镇网事-"&webname
end if

rs.close:set rs=nothing
%>
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<meta http-equiv="x-ua-compatible" content="IE=edge,chrome=1" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=no">
<title><%=NS_Abstract %></title>
<meta name="keywords" content="<%=NS_Keywords %>" />
<meta name="description" content="<%=NS_Description %>"/>
<link rel="stylesheet" type="text/css" href="css/index.css" />
<link rel="stylesheet" type="text/css" href="css/bd_share.css">
<script type="text/javascript" src="js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="js/share.js"></script>
<script type="text/javascript" src="js/TouchSlide.1.1.js"></script>
<script src="js/html5.js"></script>
<link rel="stylesheet" href="css/pullToRefresh.css" type="text/css" />

<script type="text/javascript" src="js/iscroll.js"></script>
<script type="text/javascript" src="js/pullToRefresh.mini.js"></script>
<!--[if lt IE 9]><scriptsrc="js/css3-mediaqueries.js"></script><![endif]-->
</head>
<body id="index_body">
<p id="fhdb" class="inside_nav_p"></p>
<div class="inside_top">
<p class="inside_tit_fl"><a href="javascript:history.go(-1)"><img src="images/icon05.jpg" width="12" height="24" alt=""></a></p>
<dl class="clearfix">
<dt><%= NS_Name %></dt>
<dd><a href="index.asp">首页</a></dd>
</dl>
</div>


<!---内页主体部分----->


<!--must content ul li,or shoupi-->
<div id="wrapper">
<ul>
<%= GetNews2(id,50,50) %>
</ul>
</div>

<script type="text/javascript">
refresher.init({
id:"wrapper",//<------------------------------------------------------------------------------------┐
pullDownAction:Refresh,
pullUpAction:Load
});
function Refresh() {
setTimeout(function () { // <-- Simulate network congestion, remove setTimeout from production!
var el, li, i;
el =document.querySelector("#wrapper ul");
//这里写你的刷新代码
document.getElementById("wrapper").querySelector(".pullDownIcon").style.display="none";
document.getElementById("wrapper").querySelector(".pullDownLabel").innerHTML="<img src='images/ok.png'/>刷新成功";
setTimeout(function () {
wrapper.refresh();
document.getElementById("wrapper").querySelector(".pullDownLabel").innerHTML="";
},1000);//模拟qq下拉刷新显示成功效果
/****remember to refresh after action completed! ---yourId.refresh(); ----| ****/
}, 2000);
}
function Load() {
setTimeout(function () {// <-- Simulate network congestion, remove setTimeout from production!
var el, li, i;
el =document.querySelector("#wrapper ul");
for (i=0; i<1; i++) {
li = document.createElement('li');
li.innerHTML="<%= GetNews(id,50,50) %>"
el.appendChild(li, el.childNodes[0]);
}
wrapper.refresh();/****remember to refresh after action completed!!! ---id.refresh(); --- ****/
},2000);
}
</script>

</body>
</html>

丫丫丫头的主页 丫丫丫头 | 初学一级 | 园豆:172
提问于:2016-05-25 17:56
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册