私はこの 3 つのファイルを持っています。File#1 : "Links.html"には、外部ドメイン URL への礼儀リンクがあります。
<html>
<title>File#1 - Directory of Links of Externals Domains_URL - Links.html<title>
<body>
<div>
Visit this Web Encyclopedia to expand your knowledge:
<a href="Free.org/good-bye.html?link=en.wikipedia.org">wikipedia</a>
<br>
Visit the <a href=
"Free.org/good-bye.html?link=http:/www.WebMasters.StackExChange.com">
StackExChange</a>to get right people for right answers !
</div>
</body>
</html>
ファイル#2 : 「good-bye.html」は、(2) 2 つの JavaScript を使用した「さよならページ Come Back Soon」です。. .
スクリプト#1は、遅延して 15 秒待つのではなく、作成された外部 URL リンクをそのリンクをクリックするオプションとしてユーザーに表示します。script#2からリダイレクトされるタイムアウトへ。. . 最後のwindow.location へ externalURL OutBound Domain
<html>
<title>File#2 - Open and External URL link - good-bye.html</title>
<body>
<div>Good Bye ! - ComeBack Soon !</div>
<script language="Javascript">
<!--
var loc=document.location.toString();
if (loc) {
var pos=loc.indexOf('link=');
if (pos>0) {
document.write('Click the link to visit the External URL location! <a href="'+loc.substring(pos+5)+'" > '+loc.substring(pos+5)+' </a> ');
} else
document.write('(no location defined)');
}
// -->
</script>
<div style="display:none;">
~~ The Second Script is a timmed 15-25secs. Automated Re-direction by JS Re-Director ~~~
</div>
<script language="Javascript">
<!--
var targetURL=" @@ What is the variable that should be HERE? instead of this TEXT has to be Replaced with VariableURL window.location.href or something I don't Know ! This is the script2 Please Help me to Insert the correct variable from script1 @@ "
var currentsecond=15; // waiting time to help visitor to decide to comeback to Free.org
function countredirect(){
if (currentsecond!=1){
currentsecond-=1
document.getElementById('timer').value=currentsecond;
}
else{
window.location=targetURL;
return
}
setTimeout("countredirect()",1000)
}
countredirect();
}
//-->
</script>
</body>
</html>
- 1 * (?) script#1で言及されているVariableURLとは何ですか。これはscript#2に「フィード」する予定ですが、今のところ空の行があります。. . var targetURL= " "
Q#1: var targetURL=" @@ HERE に移動する必要がある変数は何ですか? ~~ この TEXT の代わりに、VariableURL window.location.hrefまたは何かわからないものに置き換える必要があります! これはスクリプトです# 2 script#1から正しい変数を挿入するのを手伝ってください @@ "
- 2 * (?) File#3の iFrame 内に variableURL を挿入していただけますか? ~~ 15 秒の時間がなくなると、ファイル #3の「come-back-Top-navBar.html」が、iFrame 内の外部ドメイン URL で開かれます ~~ そのファイルに iFrame が必要です#3は、外部ドメインへの外部リンク、en.wikipedia.org、stackexchange.com、またはファイル #1 (外部 URL のディレクトリ) からの任意のリンクを示します。
Q#2: フィードに送られる変数がわかっている場合。入力、script#2行var targetURL=" " ? script#1 で言及されている変数は何ですか? File#3 のオープンを遅らせるタイマーを設定したい。訪問者は少し遅れてリダイレクトされます。私のファイル #3は [div][/div] と [iFrame][/iFrame] です
Q#3: File#3の iFrame に同じ variable=External-Link-Outbound-URL を挿入する方法を教えてください。. . (そのため、訪問者には iFrame 内に External-Link-Outbound-URL が表示されます)。
File#2のScript#2を修正する js Codes を知りたい
File#3に挿入する必要があるiframe コードを知る必要があります
お待ちいただいてありがとうございます !!
以下は私のFile # 3です。これは Dereferer サイクルを完了する変数 (link-OutboundURL) がわからないため、不完全です。File#3の iFrame
<html>
<body>
<tile>File#3 Visit other's URL but comeback to us! comeback-Top-navBar.html</title>
<div height=20>Comeback to Free.org <a href=http://www.Free.org>click here</a></div>
<br>
<iframe id="external-url-iframed" width="100%" scrolling="no"
frameborder="0" class="external-url-iframedt_iframe" height="80%"> @@ this TEXT
has to be Replaced with a JavaScript or variableURL-links
~~ so the user can enjoy my recommended external domains sites under
an small TopnavBar Banner @@ </iframe>
</body>
</html>
- 3 * (?) 他の解決策を教えてもらえますか? フォーラムやチュートリアルへのリンク? 本当にありがとうございました !
- 4 * (?) File#1からFile#3に渡されるvariableString-Windows-Location-ExternalURLは何ですか?
テストしました... var targetURL=" link= " 。. . また 。. . var targetURL=" document.location.toString(); "しかし、うまくいきませんでした!
これまでは、待ちたくない人が File#2 をクリックすると、 script#1によってhttp://free.org/comeback-Top-navBar.htmlとして呼び出されたFile#3に直接移動します。 #external-url-iframed ですが、これは表示されず、 Destination-external-Link-OutboundURL-Domainand に 到達しません
一方、訪問者が決定または待機したい場合。. . &script#2* タイマーが切れますが、どこにも行きません!