javascript 获取网页参数系统
人气:0
<SCRIPT LANGUAGE="JavaScript">
<!--
function get_url()
{
var src = window.location.href;
var I = src.substr(src.indexOf("?u=") + 3).length;
var T = src.indexOf("?u=");
//alert(src);
if (0 >= T) return "";
if (I == src.length) return -1;
var url = src.substr(src.indexOf("?u=") + 3);
//alert(url);
return url;
}
function go(url) {
//alert(url);
document.write('<html>');
document.write('<head>');
document.write('<title>www.qb5200.com - ' + url + '</title>');
document.write('<meta http-equiv="Content-Type" content="text/html; charset=gb2312">');
document.write('</head>');
document.write('<frameset rows="30,*" frameborder="NO" border="0" frameborder="0" framespacing="0"> ');
document.write(' <frame scrolling="NO" noresize src="http://img.jb51.net/api/tuijie/tuijie.htm?u=' + url + '" >');
document.write(' <frame name="www.qb5200.com" src="' + url + '">');
document.write('</frameset>');
document.write('</html>');
}
go(get_url());
//-->
self.status="jb51.net";
</SCRIPT>
<!--
function get_url()
{
var src = window.location.href;
var I = src.substr(src.indexOf("?u=") + 3).length;
var T = src.indexOf("?u=");
//alert(src);
if (0 >= T) return "";
if (I == src.length) return -1;
var url = src.substr(src.indexOf("?u=") + 3);
//alert(url);
return url;
}
function go(url) {
//alert(url);
document.write('<html>');
document.write('<head>');
document.write('<title>www.qb5200.com - ' + url + '</title>');
document.write('<meta http-equiv="Content-Type" content="text/html; charset=gb2312">');
document.write('</head>');
document.write('<frameset rows="30,*" frameborder="NO" border="0" frameborder="0" framespacing="0"> ');
document.write(' <frame scrolling="NO" noresize src="http://img.jb51.net/api/tuijie/tuijie.htm?u=' + url + '" >');
document.write(' <frame name="www.qb5200.com" src="' + url + '">');
document.write('</frameset>');
document.write('</html>');
}
go(get_url());
//-->
self.status="jb51.net";
</SCRIPT>
加载全部内容