javascript 獲取網(wǎng)頁參數(shù)系統(tǒng)
更新時間:2008年07月19日 13:19:11 作者:
用處比較多,適合在當前網(wǎng)頁打開別的網(wǎng)站的內(nèi)容
<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.dbjr.com.cn - ' + 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.dbjr.com.cn" 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.dbjr.com.cn - ' + 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.dbjr.com.cn" src="' + url + '">');
document.write('</frameset>');
document.write('</html>');
}
go(get_url());
//-->
self.status="jb51.net";
</SCRIPT>
相關文章
微信小程序ajax實現(xiàn)請求服務器數(shù)據(jù)及模版遍歷數(shù)據(jù)功能示例
這篇文章主要介紹了微信小程序ajax實現(xiàn)請求服務器數(shù)據(jù)及模版遍歷數(shù)據(jù)功能,結合實例形式分析了微信小程序ajax調(diào)用及模板wx:for循環(huán)列表渲染相關操作技巧,需要的朋友可以參考下2017-12-12使用JavaScript實現(xiàn)頁面局部更新的方法總結
在JavaScript中,Ajax(Asynchronous JavaScript and XML)是一種用于在后臺與服務器進行異步通信的技術,本文給大家介紹了使用JavaScript實現(xiàn)頁面局部更新的三種方法,文中通過代碼示例給大家介紹的非常詳細,需要的朋友可以參考下2023-12-12JavaScript遍歷json對象數(shù)據(jù)的方法
這篇文章介紹了JavaScript遍歷json對象數(shù)據(jù)的方法,文中通過示例代碼介紹的非常詳細。對大家的學習或工作具有一定的參考借鑒價值,需要的朋友可以參考下2022-04-04JavaScript實現(xiàn)文本目標字符替換和一鍵全部替換
這篇文章主要介紹了JavaScript實現(xiàn)文本目標字符替換和一鍵全部替換,文章圍繞主題展開詳細的內(nèi)容介紹,具有一定的參考價值,需要的小伙伴可以參考一下2022-06-06