
jQuery.getJSON demo
//![CDATA[
function checktype(x,y){
var cache=0;
if(y.indexOf(x)!=-1){
cache=1;
}
if(y.indexOf(x+' ')!=-1){
cache=1;
}
return cache;
}
function cuttype(x,y){
var cache='';
if(checktype(x,y)==1){
cache=y.substring(x.length);
}
return cache
}
function loc(url){
cache=location.hostname;
if(url!=null&url!=''){
cache=url;
}
return cache;
}
function...