导航:首页 > 源码编译 > 跳转页源码下载

跳转页源码下载

发布时间:2022-07-31 20:03:48

⑴ 网页中上一页,下一页,跳转到。。的代码是什么要怎样实现

你需要使用一种技术 叫做远程脚本调用:
我给你贴出全文方法, 请参考:

远程脚本调用(Remote Scripting)
-增强asp交互性,提高asp响应的一大利器

一. 综述.

Remote Scripting(简称RS)是微软采用java applet扩充asp功能的一项技术,RS技术给予了开发人员在同一页面组合客户,服务器两端功能的能力.

在动态网页领域中,以往是采用vbscript,javascript在客户端处理用户界面,做一些提交(submit)前的预处理工作,要与服务器端发生交互的话,必须将整个form内数据提交到服务器端,服务器端接收到提交的数据来做一些处理,再把处理结果返回到客户端.

如果采用RS技术,客户端程序与服务器端发生交互就可以绕过表单提交(submit)这个过程,直接调用服务器端的处理程序,然后得到返回结果在客户端显示.比如说,在一个网站的新用户注册时,往往需要填写一个注册表单,里面都会包含 “用户名”,”密码” 等信息,填写完成以后点”提交”按钮,这个用户注册信息发送到服务器上,服务器检测”用户名”是否有重复,有则提示错误,没有就新注册一个用户. 这样在用户填写整个注册表单的过程中,用户并不知道自己的”用户名”是否已经存在,要等到提交整个表单以后才能得到结果.而RS技术则可以在用户刚填写完”用户名”时就搜索服务器端数据库,并得到是否有重复的结果,提示用户要更换用户名,这样就可以保证整个注册一次成功,减少了来回修改的时间,程序的交互性也由此提高.

RS技术能提高asp程序的响应速度(asp运行速度并没有提高),因为普通方法必须提交整个表单(form),表单中不仅包含了用户输入的数据,也包括了客户机地址,用户浏览器,屏幕信息等等诸多数据,提交后再等待服务器返回处理结果. 而RS技术绕过了表单提交的过程,直接调用服务器上的程序,然后返回结果,这样虽然在服务器端处理这一块还是和以前一样,但由于去掉表单提交的过程,故而响应速度有所提高.典型的应用场合如:搜索,刷新等.

二使用Remote Scripting 技术

在 下载RS(最新版本1.0b,文件大小143KB),安装后会在开始菜单增加”Microsoft Windows Script”快捷方式,其中含有示例程序和详细文档. RS被安装在了c:\intepub\wwwroot\_ScriptLibrary 目录下,主要由三个文件组成(Rs.htm,Rs.asp, rsproxy.class) 使用RS 有以下两步:

1. 客户端配置

客户端配置是在要与服务器端发生交互的页面上进行,比如用户注册注册时候填写的个人资料的页面register.htm

a. 建立一个javascript程序块,引用rs.htm文件:

<SCRIPT LANGUAGE="JavaScript" src="RS.HTM">
//注意rs.htm文件的路径
b.建立一个建立一个javascript程序块,调用rs.htm里面的函数RSEnableScripting():

<SCRIPT LANGUAGE="JavaScript">
RSEnableRemoteScripting(“.”);
//一定要和rs.htm的路径对应,例如:rs.htm文件和当前程序在同一目录,就
//用 RSEnableRemoteScripting(“.”),
//在上一级目录用 RSEnableRemoteScripting(“..”) 如果在当前程序的子//目录下,经过我的试验没有成功,不知道为什么 ;-(
</script>

基本配置到此结束,在完成服务器端配置后还要根据实际要求在客户机写上另外一些定制代码,

2. 服务器端配置

服务器端配置是在你要调用的asp文件中进行的,比如说用户注册的时候是提交到register.asp,那么下面这些配置就是在register.asp中进行.

a. 包含rs.asp文件:

<!--#INCLUDE FILE="RS.ASP"-->
b. 调用rs.asp文件中的方法 RSDispatch()
<% RSDispatch %>
c. 声明方法,还是用户注册的例子,假如register.asp中的register函数用来执行实际的注册过程,那么就必须将这个方法声明才能够被register.htm所调用.
<SCRIPT LANGUAGE="JavaScript">
var public_description = new constructor(); //构造方法
function constructor()
{
this.methodName = functionName;//functionName是服务器端asp文件中的函数
//methodName是把asp文件模拟成对象的方法名
//functionName必须在asp中实际存在,
//methodName可以自定义,在客户端文件中就是用//这个名字来调用上面asp程序中的函数
}
function functionName()
{
//some code.
}
</script>

3. 示例:
下面用实际的例子来说明rs技术的实际用法,这个例子就是一个普通的用户注册,用户在register.htm文件中输入用户名和密码,register.asp负责将用户名和密码插入数据库,如果成功返回一个”用户成功注册”的信息.因为是示例,所以没有写的很完善,只是演示如何使用RS技术.
注意:必须要把rs.asp,rs.htm,rsproxy.class这三个文件放在和register.htm,register.asp同一个目录下

<html>

<body bgcolor="#FFFFFF" text="#000000">

<script language="JavaScript" src="rs.htm"></script>

<script language="JavaScript">RSEnableRemoteScripting(".");</script>

<!--引用rs.htm文件,使客户端能够调用服务器上的asp程序-->

<script language=javascript>

var serverURL="register.asp"; //定义服务器上asp程序路径

var obj;

var username;

var password;

function register()

{

username=document.form1.username.value; //得到用户输入的用户名,密码

password=document.form1.password.value;

obj=RSGetASPObject(serverURL); //将服务器上asp程序所在路径模拟成为一//个对象,obj就成为这个模拟对象的实例

obj.register(username,password,callback,"obj");

//服务器上asp程序中的函数就被作为这个//模拟对象的方法,可以被客户端调用了!其//中username,password都是方法的参数,可//以传递任意多个参数,callback是服务器//返回值在客户端的处理程序,本例中使简单//的用alert显示

}

function callback(co) //callback中的co参数是包含服务器返回值 //的一个对象,他不仅有return_value //这个属性,还有status, message, context等诸多属//性,具体请参考rs的文档

{

alert(co.return_value);//显示服务器返回值,也就是 该用户成功注册的信息

}

</script>

<form name="form1" method="post">

用户注册<br>

<input type="text" name="username">

<br>

<input type="text" name="password">

<br>

<input type="button" value="注册" onclick="register()">

</form>

</body>

⑵ 怎么获取跳转页的源码

第一种:给segue标记个Identifier再用代码触发,要点:segue开始的那边都连在View界面上,不上连上button上,要不点到就会跳转,如下:再用代码这样触发这个跳转的segue,如:[:@"SegueName"sender:self];第二种:能过取得storyboard文件里的viewController再用常规方法跳转,先设置storyboard里viewController的标志StoryboardID,如下:再用代码这样跳转://UIStoryboard*board=[:@"MainStoryboard"bundle:nil];UIViewController*next=[[selfstoryboard]:@"IconView"];[:nextanimated:NO];注解的代码等同于[selfstoryboard],不过[selfstoryboard]是官方写好的sdk,如果你的Storyboard文件名字修改过就用上面的代码自己加载.

⑶ 求一个ASP+ACCESS跳转页代码

<!--#include file="top.asp"-->
<script language="JavaScript">
function Listbox1_HuLiguo1(Listbox1_url){
location=Listbox1_url;
for(var i=0;i<document.Listbox1.elements.length;i++){
document.Listbox1.elements[i].options[0].selected=true
}
}
//-->
</script>

<%
ServerName = Request.ServerVariables("SERVER_NAME")
Typeid = Request.QueryString("typeid")

If Typeid = "成人专辑" Then
If ServerName = "192.168.1.251" then
Response.Write ("<script>alert(' 建设中……');javascript:history.go(-1);</script>")
Response.end
If Hour(time) > 6 and Hour(time) < 22 Then
Response.Write ("<script>alert(' 错误!\n\n未经授权的访问。');javascript:history.go(-1);</script>")
Response.end
End if
Else
If Request.Cookies("UserName")="" or Request.Cookies("UserName")=null Then
Response.Write ("<script>alert(' 错误!\n\n您还没有登陆或登陆超时,请先登陆。');javascript:history.go(-1);</script>")
Response.end
End if
End if
End if
%>
<TABLE cellPadding="0" width="100%" border="0" ID="Table14" bgcolor="#FFFFFF">
<TR>
<TD vAlign="top" width="10%">
<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0" ID="Table4">
<tr><td vAlign="top"><!--#include file="login.asp" --></td></tr>
</table>
<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0" ID="Table5">
<tr><td vAlign="top"><!--#include file="updating.asp" --></td></tr>
</table>
<table cellSpacing="0" cellPadding="0" width="100%" align="center" border="0" ID="Table5">
<tr><td vAlign="top"><!--#include file="recommand.asp" --></td></tr>
</table>
</TD>
<TD vAlign="top" width="1" bgColor="#cccccc"><IMG height="1" src="images/spacer.gif" width="1"></TD>
<TD width="90%" vAlign="top">
<TABLE border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<TR>
<TD><IMG height="35" src="images/<%=typeid%>.jpg" width="262"></TD>
</TR>
<TR>
<TD Height="2"></TD>
</TR>
<TR>
<TD bgColor="#cccccc" colSpan="2"><IMG height="1" src="images/spacer.gif" width="1"></TD>
</TR>
<TR>
<%
MaxPerPage=10
dim totalPut
dim CurrentPage
dim TotalPages

if not isempty(request("page")) then
currentPage=cint(request("page"))
else
currentPage=1
end if
dim sql
dim rs
sql="select * from movie where typeid='"&typeid&"' and lockmovie=False order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
if rs.eof and rs.bof then
response.write "<TR><TD align='center'><FONT color='#ff4800' size='3'><B> 该栏目没有任何电影</B></FONT></TD></TR></TABLE>"
else
totalPut=rs.recordcount
totalPut=rs.recordcount
if currentpage<1 then
currentpage=1
end if
if (currentpage-1)*MaxPerPage>totalput then
if (totalPut mod MaxPerPage)=0 then
currentpage= totalPut \ MaxPerPage
else
currentpage= totalPut \ MaxPerPage + 1
end if
end if
if currentPage=1 then
showpage totalput,MaxPerPage,""
showtitle
showpage1 totalput,MaxPerPage,""
else
if (currentPage-1)*MaxPerPage<totalPut then
rs.move (currentPage-1)*MaxPerPage
dim bookmark
bookmark=rs.bookmark
showpage totalput,MaxPerPage,""
showtitle
showpage1 totalput,MaxPerPage,""
else
currentPage=1
showpage totalput,MaxPerPage,""
showtitle
showpage1 totalput,MaxPerPage,""
end if
end if
end if
sub showtitle%> <tr>
<td width="100%"></td>
</tr>
<tr>
<td width="100%"><table border="0" cellpadding="0" cellspacing="1" style="border-collapse: collapse" width="99%" id="AutoNumber1" bordercolor="#6D6D6D">
<%
b=0
dim row_count
row_count=1
%>
<tr>
<%
do while not rs.eof
b=b+1%> <td width="50%" valign="top"><table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
<tr><td width="50%" colspan="2" height="8"></td></tr>
<tr>
<td width="25%"><table border="0" cellspacing="1" style="border-collapse: collapse" width="100%" id="AutoNumber1" bordercolor="#D8D8D8">
<tr>
<TD class=lightedge width=125><A href="Movie.asp?id=<%=rs("id")%>" target=_blank><img class=blackedge height=175 src=<%=rs("Pic")%> width=125 border=0></A></TD>
<TD vAlign=top>
<TABLE cellSpacing=0 cellPadding=1 width="100%" border=0>
<TR><TD class=dottedline colSpan=2><A href="Movie.asp?id=<%=rs("id")%>" title=<%=rs("Name")%> target=_blank><FONT color=#ff4800 size=3><B><%=rs("Name")%></B></FONT></A></TD></TR>
<TR><TD class=dottedline vAlign=top align=right width="19%"><FONT class=font_darkyellow>领衔主演:</FONT></TD>
<TD class=dottedline width="81%"><FONT class=font_gray><%=left(rs("Title"),14)%></FONT></TD></TR>
<TR><TD class=dottedline vAlign=top align=right><FONT class=font_darkgreen>导演</FONT>:</TD>
<TD class=dottedline width="81%"><FONT class=font_gray>梦幻空间</FONT></TD></TR>
<TR><TD class=dottedline vAlign=top align=right><FONT class=font_pink>语言对白</FONT>:</TD>
<TD class=dottedline width="81%"><FONT class=font_gray>中文字幕</FONT></TD></TR>
<TR><TD class=dottedline vAlign=top align=right><FONT class=font_darkgreen>影片格式</FONT>:</TD>
<TD class=dottedline width="81%"><FONT class=font_gray>Rmvb 视频节目</FONT></TD></TR>
<TR><TD class=dottedline vAlign=top align=right><FONT class=font_pink>发布地区</FONT>:</TD>
<TD class=dottedline width="81%"><FONT class=font_gray><%=rs("Typeid")%></FONT></TD></TR>
<TR><TD class=dottedline vAlign=top align=right><FONT class=font_darkgreen>发布日期</FONT>:</TD>
<TD class=dottedline width="81%"><FONT class=font_gray><%=rs("Date")%></FONT></TD>
<TR><TD class=dottedline vAlign=top align=right><FONT class=font_darkyellow>观看次数</FONT>:</TD>
<TD class=dottedline width="81%"><FONT class=font_gray><%=rs("Hits")%></FONT></TD>
</TR>
</TABLE>
</TD>
</tr>
</table>
</td>
</tr>
<tr><td width="50%" colspan="2" height="8"></td></tr>
<TR><TD bgColor=#999999><IMG height=4 src="images/spacer.gif" width=1></TD></TR>
</tr>
</table>
</td>
<% if row_count mod 2 =0 then%></tr>
<tr>
<%end if%> <%row_count=row_count+1
if b=10 then exit do
rs.movenext
loop
rs.close
set rs=nothing

%> </tr>
</table>
</td>
</tr>
<tr>
<td width="100%" bordercolor="#00BF00">
<div align="center">
<table cellSpacing="0" cellPadding="0" width="100%" border="0">
<tr>
<td height="20" align="left"><table border="0" cellPadding="0" cellSpacing="0" width="99%" style="border-collapse: collapse" bordercolor="#111111" bgcolor="#D8D8D8">
<tr>
<span lang="zh-cn"><td width="71%" height="18">
<%
end sub

function showpage(totalnumber,maxperpage,filename)
dim n
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
end function

function showpage1(totalnumber,maxperpage,filename)
if totalnumber mod maxperpage=0 then
n= totalnumber \ maxperpage
else
n= totalnumber \ maxperpage+1
end if
Response.Write "共有影片:<font face=""arial"" color=""red"">"&totalnumber&"</font>部 当前页:<font face=""arial"" color=""red"">"&CurrentPage&"</font>共<font face=""arial"" color=""red"">"&n&"</font>页"
if CurrentPage<2 then
response.write "<font color='999966'>首页 上一页</font>"
else
response.write "<a href="&filename&"?typeid="&typeid&"&page=1&>首页</a>"
response.write "<a href="&filename&"?typeid="&typeid&"&page="&CurrentPage-1&">上一页</a>"
end if
if n-currentpage<1 then
response.write "<font color='999966'>下一页 尾页</font>"
else
response.write "<a href="&filename&"?typeid="&typeid&"&page="&(CurrentPage+1)
response.write ">下一页</a> <a href="&filename&"?typeid="&typeid&"&page="&n&">尾页</a>"
end if
response.write "</td>"
response.write "<form name=""Listbox1"">"
response.write "<td width=""12%"" height=""18"">"
dim n
%></TD><TD class="ChangePageClass1" align="right">选择页数</TD>
<TD class="ChangePageClass2" vAlign="bottom" align="right">
<select name="Menu_HuLiguo2" size="1" onchange="Listbox1_HuLiguo1(document.Listbox1.Menu_HuLiguo2.options[document.Listbox1.Menu_HuLiguo2.selectedIndex].value)">
<option>第<%=CurrentPage%>页</option>
<%for j=1 to n%>
<option value="?typeid=<%=typeid%>&page=<%=j%>">第<%=j%>页</option>
<%next%></select>
<%end function%></td>
</form>
</span></tr>
</table>
</td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!--#include file="end.asp"-->

你不只是一般的蠢,要源代码研究,这个复制过去就可以测试了自己学着写.懒人一个

⑷ 如何取超文本浏览框跳转后的网页源码

延迟(3000)下面加个
网页操作1.初始化(
超文本
浏览框1.取
窗口句柄
())
试试

⑸ 求JS加载页跳转代码

我刚好写了这么一个js效果。

css部分:

.cdiv1{
position:absolute;
left:0px;
top:0px;
z-index:15000;
overflow:hidden;
z-index:9990;
background:rgba(000,000,000,0.3);
}


.cdiv2{
height:60px;
width:150px;
/*border:1pxsolidblue;*/
position:fixed;
top:45%;
left:50%;
z-index:9999;
margin-left:-75px;
-webkit-border-radius:10px;
text-align:center;
line-height:60px;
font-size:15px;
font-family:微软雅黑;
}
.cdiv2div{
clear:none;
height:15px;
}

.show_div{
display:block;
width:100%;
min-height:50px;
height:auto;
background:rgba(255,255,255,1);
line-height:50px;
text-align:center;
border-radius:5px;
border:1pxsolid#ccc;
position:absolute;
z-index:1800;

}


js部分:

var_cdiv="",ktime;
functioncreatDiv(){
var_height=$(document.body).height();
var_width=$(document.body).width();
_cdiv+="<divclass='cdiv1'>";
_cdiv+="</div>";
_cdiv+="<divclass='cdiv2'>";
_cdiv+="<divid='showimgs'><imgsrc='../App_Themes/images/wait.gif'width='45px;'height='45px;'/></div>";
//_cdiv+="<div>加载中...</div>";
_cdiv+="</div>";
$(document.body).append(_cdiv);
$(".cdiv1").css("height",_height+"px").css("width",_width+"px");
}

functionshowDiv(){
if($(".cdiv1").attr("class")!=undefined){
$("#showimgs").html("<imgsrc='../App_Themes/images/wait.gif'width='45px;'height='45px;'/>");
$("#showimgs").removeClass("show_div");
$(".cdiv1").fadeIn(50);
$(".cdiv2").fadeIn(5);
}else{
creatDiv();
}
}
functionappendText(){
if($(".cdiv1")){
$("#showimgs").html("网络异常,请检查网络");
$("#showimgs").addClass("show_div");
setTimeout(function(){hideDiv();},2000);
}
}
functionhideDiv(){
window.clearInterval(ktime);
$(".cdiv1").hide();
$(".cdiv2").hide();
}
functionstartDiv(){
ktime=setTimeout(function(){appendText();},15*1000);
showDiv();
}

调用方法:

startDiv();

加载完成后停止调用:

hideDiv();

效果图:

//使用jq的延迟调用方法:jQuery.when。或者使用jq插件deferred(deferred.then),
deferred.then(state1).then(state2);//最后调用的是state2方法,那就在state2方法里面停止效果

⑹ html跳转代码

这个就是了,测试了好多种的,这个是5秒之后跳转的代码,时间可以自己改
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>5秒后跳转到另一个页面</title>
</head>
<script>
var t = 5;
var s = '.';
timeID=setInterval("countDown()",1000);
function countDown(){
time.innerHTML= t +"秒后跳转"+s;
t--;
s+='.';
if (t==0) {
location.href="http://www.51zuoyi.com/"; //【这边是要跳转的目标地址】
clearInterval(timeID);
}
}
</script>
<body>

<div><font ID="time" face="impact" color="#272822" size="7">即将跳转</font>
</div>
</body>
</html>
把目标网址改为自己的就可以实现跳转了,效果可以参考一下下面

⑺ 怎样查看一个跳转页面的源代码

在这个页的前一个链接上点右键->目标另存为……
要是没有链接,就直接把地址复制到迅雷或快车里下载下来,然后在本地就能看源代码啦!
或者,动作快一点,在跳转之前按一下浏览器上的“停止”按扭,也许就停在跳转前的页面了。

⑻ 一些页面在pc端被跳转了,怎么看原来页面的源代码

在浏览器上看不了,跳转之后加载的是跳转之后的页面的代码。只能在项目里面找跳转之前的页面源码

⑼ 求一个php+smarty带页面跳转的源码demo

51CTO下载-PHP新闻发布系统源码.rar

php制作,Smarty分离,mysql数据库,带后台管理。在wamp上亲测可用。


阅读全文

与跳转页源码下载相关的资料

热点内容
怎么把钉钉文件夹保存到手机里 浏览:69
兵法pdf 浏览:643
app格式化下载不起怎么办 浏览:34
信捷加密文件是干嘛用的 浏览:952
su模型下载怎么解压不了 浏览:182
国际体验服如何把服务器改为亚服 浏览:880
手机怎么关闭视频加密 浏览:462
单片机编程存表法 浏览:719
富士康服务器是什么 浏览:452
编译是二进制吗 浏览:262
小程序账号登录源码 浏览:876
云南社保局app叫什么 浏览:697
美女程序员吃大餐 浏览:210
项目二级文件夹建立规则 浏览:560
dns使用加密措施吗 浏览:174
php独立运行 浏览:535
手机sh执行命令 浏览:731
云服务器的角色 浏览:737
单片机频率比例 浏览:845
我的世界服务器如何关闭正版验证 浏览:508