5ちゃんねる ★スマホ版★ ■掲示板に戻る■ 全部 1- 最新50  

■ このスレッドは過去ログ倉庫に格納されています

解読できるかたお願いします(魔女板にて)

1 :名無しさん:2000/08/02(水) 19:19
<script>
function Homepage(){

// in real bits@` urls get returned to our script like this:
// res://shdocvw.dll/http_404.htm#http://www.DocURL.com/bar.htm

//For testing use DocURL = "res://shdocvw.dll/http_404.htm#https://www.microsoft.com/bar.htm"
DocURL=document.location.href;

//this is where the http or https will be@` as found by searching for :// but skipping the res://
protocolIndex=DocURL.indexOf("://"@`4);

//this finds the ending slash for the domain server
serverIndex=DocURL.indexOf("/"@`protocolIndex + 3);

//for the href@` we need a valid URL to the domain. We search for the # symbol to find the begining
//of the true URL@` and add 1 to skip it - this is the BeginURL value. We use serverIndex as the end marker.
//urlresult=DocURL.substring(protocolIndex - 4@`serverIndex);
BeginURL=DocURL.indexOf("#"@`1) + 1;
urlresult=DocURL.substring(BeginURL@`serverIndex);
if (protocolIndex - BeginURL > 7)
urlresult=""

//for display@` we need to skip after http://@` and go to the next slash
displayresult=DocURL.substring(protocolIndex + 3 @`serverIndex);

// Security precaution: must filter out "urlResult" and "displayresult"
forbiddenChars = new RegExp("[<>\'\"]"@` "g"); // Global search/replace
urlresult = urlresult.replace(forbiddenChars@` "");
displayresult = displayresult.replace(forbiddenChars@` "");

document.write('<A target=_top HREF="' + urlresult + '">' + displayresult + "</a>");
}

</script>

2 :かっぱ64:2000/08/03(木) 01:51
何が言いたいんだ?オマエは。
403のソースなんか出しても
何も出ねーよ。

2 KB
■ このスレッドは過去ログ倉庫に格納されています

★スマホ版★ 掲示板に戻る 全部 前100 次100 最新50

read.cgi ver 05.04.00 2017/10/04 Walang Kapalit ★
FOX ★ DSO(Dynamic Shared Object)