• JS修改地址栏 [返回文章列表]     发表于: 8/28/2007  982人(次)浏览
  • 参考了HBRO的作法,自己另外写了一个.

    <SCRIPT language=javascript>  
    function setPos(id){  
      var hs=document.location.hash  
      if(hs==null || hs=="" ||hs=="#"){  
      document.location.hash=document.location.hash+id  
        
      }else{  
      document.location.hash=document.location.hash+"&"+id  
      }  
    }  
    function delPos(){  
     document.location.hash=""  
    }  
    </SCRIPT>