/*
jquery._GET.js 1.0
code by 无名剑(nnsword)
date in 2009-04-22 1:31
QQ:16349023
e-mail:coolmoonf@163.com
技术群:11396543
Tel:15009315375
Homepage:west163.net,xo68.com
base:
jquery1.3
bug:
1.中文参数在IE和FF下有区别
demo:
取url里id的值:$._GET("id")
*/
jQuery._GET = function(o) {
var url = window.location.toString();
var tmp;
if(url && url.indexOf("?")){
var arr = url.split("?");
var parms = arr[1];
if(parms && parms.indexOf("&")){
var parmList = parms.split("&");
jQuery.each(parmList,function(key,val){
if(val && val.indexOf("=")){
var parmarr = val.split("=");
if(o){
if(typeof(o) == "string" && o == parmarr[0]){
tmp = parmarr[1] == null?'':parmarr[1];
}
}
else{
tmp = parms;
}
}
});
}
}
return tmp;
};