ホーム へ サンプルページ コンテキストメニュー 8 context_menu8.htm
右クリックで、リンクテーブルを出現。 DHTML。 ハイパーリンクなどのカスタマイズはテキストエディターなどで可。 all 対応。 コピー、編集し、簡単にWebで応用できまっ、(^ ^)。
デモは、右クリックで。
< ご使用方法 >
・ ローカル(=PC)への保存は、context_menu8.htm を右クリック、[対象をファイルに保存] - 【ファイルのダウンロード】、【ファイル名を付けて保存】 - <保存する場所>: ……、などで。 ※: 【Internet Explorer】 - [ファイル] - [名前を付けて保存]−[ファイルの種類] ”Webページ、完全” ……、などで変わってしまったファイル名や、*.html 中のパスは要修正。
・ このDHTMLの実装方法は、context_menu8.htm をテキストエディターで開き、ホームページ作成ソフトなどのHTML挿入/編集メニューなどを使って、新しいページ
1 や hogehoge.html(=任意の挿入先ファイル名) の、<head> 〜</head>の任意の行間に (*1)
を、さらに<body> 〜</body>の任意の行間に (*2) をペーストします。
・ 編集方法は、hogehoge.html を
WordPad や SmipleTextなどのテキストエディター、あるいは ”FrontPage Express” などのホームページ制作ソフトのHTMLタグ挿入/編集メニュー で開き編集します。 下記の(例) (*1) と、(*2) を参考に太字部分の編集を任意に行います。 ※: テキストエディターによる編集は、HP制作ソフトとの互換性の問題を生じません(HP制作ソフト間は少し生じる)。
・ 作動テストは、ローカル(PC)に保存し、 Internet Explorer 6.x〜 などで開いて。 更新の確認は、ie、Netscapeやサーバーからのキャッシュデーター更新を、目的のページを表示し ieで [F5]キー
を押し最新データ読み込みで行います(≠再アクセス)。 Netscapeは、Ctrl+Rキーで。
・ アップロードや作動テストは、hogehoge.html と同じ階層〔ホルダー/ディレクトリー〕に、使用する画像なども転送/配置し実施。 ※:別ディレクトリーに配置時は、*.html 中のパスは要修正。 FTPなどで変わったファイル名は要修正。 スクリプト構文中への改行混入は非作動原因。
・ 関連情報 :
色記号6、2、スタイルシートリファレンス、ホームページ開設入門が便利!。 Web Development、Web開発、MSDN
IE8 HTMLとCSS。
(*1)
: context_menu8.htm (例) 挿入先の <head> 〜 </head>の、〜部分にペーストします。
|
HTMLの編集方法 |
(*1) をテキストエディターで開き、下記↓のHTMLを挿入先ファイルにペースト、太字部分を編集し使用。 |
|
〔この列ペースト不要〕
シフトJIS使用(削除不可)
ieなどに表示するアイコンファイル名(削除可)
<style type 〜</style>は(削除可)
ハイパーリンク文字色 背景色 下線
表示済みの〃
マウスオーバー時の〃
クリック中の〃
リンクを新しいWinで開くを標準(削除可)※:target= いろいろ
同じフレーム target="_self"
ページ全体 target="_top"
親フレーム target="_parent"
お気に入り、タスクバーに表示するページ名(≠ファイル名)
|
<meta http-equiv="Content-Type" content="text/html; charset=x-sjis">
<link REL="SHORTCUT ICON" href="favicon.ico">
<style type="text/css"><!--
a:link { color:#55006C; background-color:#FAFAFC;
text-decoration:none; }
a:visited { color:#3E0010; background-color:#F3F2F4; text-decoration:none; }
a:hover { color:#8000e2; background-color:#E8E5E9;
text-decoration:underline; }
a:active { color:#E700A4; background-color:#E1DDE9;
text-decoration:underline; }
-->
</style>
<base target="_blank">
<title>サンプルページ コンテキストメニュー 8</title>
<!-- ☆ ---------- ↓ この間をコピー、編集、ペーストします。
---------- -->
<script type="text/javascript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Original script at: http://elouai.com/scripts.php -->
<!--
var ie = document.all
var ns6 = document.getElementById&&!document.all
var isMenu = false ;
var menuSelObj = null ;
var overpopupmenu = false;
function mouseSelect(e)
==== この間、説明を省略。 ====
document.onmousedown = mouseSelect;
document.oncontextmenu = ItemSelMenu;
//-->
</script>
<!-- ☆ ---------- ↑ この間をコピー、編集、ペーストします。 ---------- -->
|
(*2)
: context_menu8.htm (例) 挿入先の <body> 〜
</body> の、〜
部分にペーストします。
|
HTMLの編集方法 |
(*2)をテキストエディターで開き、下記↓のHTMLを挿入先ファイルにペースト、太字部分を編集し使用。 |
|
〔この列ペースト不要〕
※:<body> 部の編集 背景 リンク 表示済みリンクンク アクティブリンクの各色(任意値)
テーブル幅
ハイパーリンク URL サイト名
以下、同様。 |
<body bgcolor="#F8F5F5" link="#54006C" vlink="#62000D" alink="#00FFFF">
<!-- ★ ---------- ↓ この間をコピー、編集、ペーストします。
---------- -->
<div id="menudiv" style="position:absolute; display:none; top:0px;
left:0px;z-index:10000;" onmouseover="javascript:overpopupmenu=true;"
nmouseout="javascript:overpopupmenu=false;">
<table width=100 cellspacing=1 cellpadding=0 bgcolor=#CBC8DD>
<tr><td>
<table width=100 cellspacing=0 cellpadding=0>
<tr>
<td id="item1" bgcolor="#FFFFFF" background="wttec.gif" width="100"
height="16" onMouseOver="this.style.backgroundColor='#EFEFEF'"
onMouseOut="this.style.backgroundColor='#FFFFFF'">
<a href="http://xml-xsl.sakura.ne.jp/sound1.asx" title="♪ Sound - Jazz・Pops 連続演奏- WindowsMediaPlayerパネル制御"
target="_self">♪ - Jazz・Pops</a></td>
</tr>
<tr>
<td id="item2" bgcolor="#FFFFFF" background="wttec.gif" width="100"
height="16" onMouseOver="this.style.backgroundColor='#EFEFEF'"
onMouseOut="this.style.backgroundColor='#FFFFFF'"> <a
href="http://xml-xsl.sakura.ne.jp/sound1a.asx" title="□ Movie -
Jazz・Pops 連続演奏 - WindowsMediaPlayerパネル制御" target="_self">□ -
Jazz・Pops1</a></td>
</tr>
<tr>
<td id="item3" bgcolor="#FFFFFF" background="wttec.gif" width="100"
height="16" onMouseOver="this.style.backgroundColor='#EFEFEF'"
onMouseOut="this.style.backgroundColor='#FFFFFF'"> <a
href="http://xml-xsl.sakura.ne.jp/sound2.asx" title="□ Movie -
Jazz・Pops 連続演奏 - WindowsMediaPlayerパネル制御" target="_self">□ -
Jazz・Pops2</a></td>
</tr>
<tr>
<td id="item4" bgcolor="#ffffff" background="wttec.gif" width="100"
height="16" onMouseOver="this.style.backgroundColor='#EFEFEF'"
onMouseOut="this.style.backgroundColor='#FFFFFF'"> <a
href="http://xml-xsl.sakura.ne.jp/station1w.htm" title="♪ Web Radio
3個の縦列プルダウンメニュー - Cloassics、Rock、World、Blues、Jazz選択、ストリーミング。">Radio
Station</a></td>
</tr>
<tr>
<td id="item5" bgcolor="#ffffff" background="wttec.gif" width="100"
height="16" onMouseOver="this.style.backgroundColor='#EFEFEF'"
onMouseOut="this.style.backgroundColor='#FFFFFF'"> <a
href="sound_player2a.htm" title="♪ MP3-
Classics、Jazz、FreeJazz、連続演奏">Sound Player2a</a></td>
</tr>
<tr>
<td id="item6" bgcolor="#ffffff" background="wttec.gif" width="100"
height="16" onMouseOver="this.style.backgroundColor='#EFEFEF'"
onMouseOut="this.style.backgroundColor='#FFFFFF'"> <a
href="real_play.htm" title="♪ ram-
Jazz">RealPlay</a></td>
</tr>
</table>
</td></tr>
</table>
</div>
<!-- ★ ---------- ↑ この間をコピー、編集、ペーストします。 ---------- -->
|
< 補足 > 適時参照あれ!。
・ Wordpad によるHTMLソース(タグ)を見ながらの直接編集方法。