Recent Web site revision, found that the site's ads are direct web site, if a turn, for the site's full-time will be better
Need an HTML page to pass parameters, so use a JS to get the URL parameters of the code, just a Funciton
Reference http://img.jb51.net/url.htm?url=http://www.baidu.com
Copy Code code as follows:
<script language= "javascript" type= "Text/javascript" >
JS gets the function of the URL parameter
function request (paras) {
var url = location.href;
var parastring = url.substring (Url.indexof ("?") +1,url.length). Split ("&");
var paraobj = {}
for (i=0; j=parastring[i]; i++) {
Paraobj[j.substring (0,j.indexof ("=")). toLowerCase ()] = j.substring (j.indexof
("=") +1,j.length);
}
var returnvalue = Paraobj[paras.tolowercase ()];
if (typeof (returnvalue) = = "undefined") {
Return "";
}else{
Return returnvalue;
}
}
var theURL
Theurl=request ("url");
if (theurl!= ') {
Location=theurl
}
</script>