- 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>
-
奥博瑞德互动设计2006-2008©版权所有 保留所有权利