function getUrlParameter(asName){
var lsURL=window.location.href;
loU = lsURL.split("?");
if (loU.length>1){
var loallPm = loU[1].split("&");
for (var i=0; i<loallPm.length; i++){
var loPm = loallPm[i].split("=");
if (loPm[0]==asName){
if (loPm.length>1){
return loPm[1];
}else{
return "";
}
}
}
}
return null;
}
posted on 2006-11-17 16:44
R.Zeus 阅读(499)
评论(0) 编辑 收藏 所属分类:
HTML