http://esf.sjz.soufun.com/chushou/3_6828248.htm#p=1 这个链接下面的,点那个【我要议价】观察发现,提交数据无页面刷新,显示也无页面刷新。我想做个这样的功能,不知道他们用的什么技术,叫什么请教高人。拜托了给分析下

解决方案 »

  1.   

    ajax  啊   呵呵  你没用过吧       
      

  2.   

    不是ajax, 就是一个弹出div层。
      

  3.   

    就是一个 ajax + JQ弹出层
    你百度 一下  只搜索  "JQ弹出层"就好了
      

  4.   

    是jQuery弹出div
    在div中加载页面
    需要引用jQuery
    然后引用下面js就好了
    // JScript 文件function OpenDivWindow2(url,title,width,height,scrolling,top,left) { 
    var divWindow = document.getElementById("divShowDivWindow");
    divWindow.style.top =top+"px";
    divWindow.style.left =left+"px";
    divWindow.style.visibility="visible";
    divWindow.style.zIndex = 999;
    divWindow.style.width=(width+0)+"px";
    divWindow.style.height=(height+30)+"px";

    var divTitle=document.getElementById("divShowDivWindowTitle");
    divTitle.innerText=title;

    var divIframe=document.getElementById("divShowDivWindowIframe");
    divIframe.src=url;
    divIframe.width=width;
    divIframe.height=height;
    if(scrolling)
    {
        divIframe.scrolling=scrolling;
    }
    }function OpenDivWindow(url,title,width,height,top,left,scrolling)
    {
        var divWindow = document.getElementById("divShowDivWindow");
        
        if(!top) top= document.documentElement.scrollTop + document.body.scrollTop;
        top=top+10;
        
        if(!left) left=document.body.clientWidth/2-divWindow.clientWidth/2; 
        
        if(!width) width==document.documentElement.clientWidth-20;
        if(!height) height=document.documentElement.clientHeight-50;
        
        var scrolling="on";
        
        
        OpenDivWindow2(url,title,width,height,scrolling,top,left);
    }
    function CloseDivWindow()
    {
    var divWindow = document.getElementById("divShowDivWindow");
    divWindow.style.top ="-9999px";
    divWindow.style.visibility="hidden";}