【代替案:その2】
- フレームを使用したトップページ index.html にて、「フレームソース」と「アクセス解析」 のタグを
JavaScriptで記述する。
- フレームはアクセス解析のIMGタグ用に1つ増やす。
■変更前
------ index.html ----------------------------------------------
<html>
<head>
<title>トップページ</title>
</head>
<frameset cols="140,*">
<frame src="A.html">
<frame src="B.html">
<norfames>
フレームが利用できない方は<a href="B.html">ここ</a>をクリックして下さい
</noframes>
</frameset>
</html>
----------------------------------------------------------------
■変更後
------ index.html ----------------------------------------------
<html>
<head>
<title>トップページ</title>
</head>
<SCRIPT Language="JavaScript">
<!--
document.write("<frameset cols='140,*,1'>");
document.write("<frame src='A.html'>");
document.write("<frame src='B.html'>");
document.write("<frame src='http://www.eiwa-up.com/cgi-bin/reports/report.cgi/ID?");
document.write(document.referrer);
document.write("' width=1 height=1>");
document.write("<noframes>");
document.write("フレーム利用できない方は<a href='B.html'>ここ</a>をクリック");
document.write("</noframes>");
document.write("</frameset>");
// -->
</SCRIPT>
</html>
----------------------------------------------------------------
- 注:
- document.write("〜");
の中に記述する「タグ」は、「ダブルクオーテーション」→「シングルクオーテーション」に変更する。
- フレーム枠の定義を「アクセス解析」タグ用に1つ追加する。
- (<frameset cols="140,*"> → <frameset cols='140,*,1'> )
|