100分求无刷新跳转页面(<iframe>中)
这个页面是index.asp 代码如下,从index.asp到index.asp过程中有闪烁,怎么才能跳转无刷新呢?我已经把index.asp放到一个<iframe>中了。还是闪!!求解!先谢谢了啊!
<%if action="a" then
response.write "<META HTTP-EQUIV='refresh' content='3;URL=index.asp?action=a'>"
end if%>//在这3秒中实现JQuery动画内容!
<%if action="a" then%>
<script type="text/javascript" >
$("#Layer1").animate({left:300,top:300},3000);
</script>
<%end if%><style type="text/css">
<!--
#Layer1010{
position:absolute;
left:0px;
top:0px;
width:40px;
height:40px;
background:green;
}
-->
</style>
这个页面是index.asp 代码如下,从index.asp到index.asp过程中有闪烁,怎么才能跳转无刷新呢?我已经把index.asp放到一个<iframe>中了。还是闪!!求解!先谢谢了啊!
<%if action="a" then
response.write "<META HTTP-EQUIV='refresh' content='3;URL=index.asp?action=a'>"
end if%>//在这3秒中实现JQuery动画内容!
<%if action="a" then%>
<script type="text/javascript" >
$("#Layer1").animate({left:300,top:300},3000);
</script>
<%end if%><style type="text/css">
<!--
#Layer1010{
position:absolute;
left:0px;
top:0px;
width:40px;
height:40px;
background:green;
}
-->
</style>
那为大侠会啊!layer1010 ->layer1<style type="text/css">
<!--
#Layer1{
position:absolute;
left:0px;
top:0px;
width:40px;
height:40px;
background:green;
}
-->
</style>
me too
http://topic.csdn.net/u/20100220/13/19aeeeb6-58c0-4869-b04c-1d133a7aca92.html?35017
response.write now<a href='#' onclick='return Load()'>加载内容</a>
<div id="dvCT"></div>
<script>
function Load(){
var xhr=window.XMLHttpRequest?new XMLHttpRequest():new ActiveXObject("microsoft.xmlhttp");
xhr.onreadystatechange=function(){
if(xhr.readyState==4){
if(xhr.status==200)document.getElementById('dvCT').innerHTML=xhr.responseText;
else document.getElementById('dvCT').innerHTML='发生错误'+xhr.status;
}
}
xhr.open('get','test.asp?_dc='+new Date().getTime(),true);
xhr.send(null);
return false;
}</script>
AJAX的无刷新就是 绕开浏览器的加载 当页面有更新的时候 不是重新加载整个页面 而是同过AJAX来获取更新的内容,并通过JS来更新页面的DOM