ホームへ       サンプルページ  ポップメニュー 15 pop_menu15.htm

ボタン、アイコンのクリックでポップアプWin起動、ハイパーリンクなど表示。      DHTML。      ハイパーリンクなどのカスタマイズはテキストエディターなどで可。    all 対応。     コピー、編集し、簡単にWebで応用できまっ、(^ ^)。

デモは、ボタン、アイコンのクリック、WebRadioなど表示で。

 

< ご使用方法 >

・ ローカル(=PC)への保存は、pop_menu15.htmwm_music.gif を右クリック、[対象をファイルに保存] - 【ファイルのダウンロード】、【ファイル名を付けて保存】 - <保存する場所>: ……、などで。    ※: 【Internet Explorer】 - [ファイル] - [名前を付けて保存]−[ファイルの種類] ”Webページ、完全” ……、などで変わってしまったファイル名や、*.html 中のパスは要修正。

・ このDHTMLの実装方法は、pop_menu15.htm をテキストエディターで開き、ホームページ作成ソフトなどのHTML挿入/編集メニューなどを使って、新しいページ 1 や hogehoge.html(=任意の挿入先ファイル名) の、<head> 〜</head>の任意の行間に (*1) を、さらに<body> 〜</body>の任意の行間に (*2) をペーストします。

・ 編集方法は、hogehoge.html を WordPadや SmipleTextなどのテキストエディター、あるいはホームページ制作ソフトのHTMLタグ挿入/編集メニュー で開き編集します。    下記の(例) (*1) と、(*2) を参考に太字部分の編集を任意に行います。   アイコン画像などの変更は準備した画像ファイル名を、hogehoge.html などの該当部分に記述。   パラメーターの変更は該当部分で。    ※: テキストエディターによる編集は、HP制作ソフトとの互換性の問題を生じません(HP制作ソフト間は少し生じる)。

・ 作動テストは、ローカル(PC)に保存し、 Internet Explorer 6.x〜 などで開いて。    更新の確認は、ie、Netscapeやサーバーからのキャッシュデーター更新を、目的のページを表示し ieで [F5]キー を押し最新データ読み込みで行います(≠再アクセス)。   Netscapeは、Ctrl+Rキーで。

・ アップロードや作動テストは、hogehoge.html と同じ階層〔ホルダー/ディレクトリー〕に、使用する画像 なども転送/配置し実施。  ※:別ディレクトリーに配置時は、*.html 中のパスは要修正。   FTPなどで変わったファイル名は要修正。    スクリプト構文中への改行混入は非作動原因。

 ・ 関連情報 : 色記号62スタイルシートリファレンスホームページ開設入門が便利!。   Web DevelopmentWeb開発MSDN IE8 HTMLとCSS

 

(*1) pop_menu15.htm (例)        挿入先の  <head> 〜 </head>の、部分にペーストします。

HTMLの編集方法   (*1) をテキストエディターで開き、下記↓のHTMLを挿入先ファイルにペースト、太字部分を編集し使用。
〔この列ペースト不要〕

シフトJIS使用(削除不可)

ieなどに表示するアイコンファイル名(削除可)
<style type 〜</style>は(削除可)
マウスオーバー時のテキスト  背景色 下線非表示
非マウスオーバー時の下線表示(逆も可)

リンクを新しいWinで開くを標準(削除可)※:target= いろいろ
同じフレーム target="_self"
ページ全体  target="_top"
親フレーム  target="_parent"
お気に入り、タスクバーに表示するページ名(≠ファイル名)

ポップアップWin位置

フォント サイズ 色
ハイパーリンク サイト名

 

<meta http-equiv="Content-Type" content="text/html; charset=x-sjis">

<link REL="SHORTCUT ICON" href="favicon.ico">
<style type="text/css"><!-- A:hover {
COLOR: #8000e2; BACKGROUND-COLOR: #f3edee; TEXT-DECORATION: none
}
A {
TEXT-DECORATION: underline
}
-->
</style>
<base target="_blank">
<title>サンプルページ  ポップメニュー 15</title>

 

<!-- ☆ ---------- ↓ この間をコピー、編集、ペーストします。 ---------- -->
<SCRIPT LANGUAGE="JavaScript">
<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->
<!-- Copyright 2001, Sandeep Gangadharan (sandeep@sivamdesign.com) -->
<!-- Begin
var X = 200; // change the # at the left for a fixed X co-ordinate to accommodate browsers other than IE or NS
var Y = 200; // change the # at the left for a fixed Y co-ordinate to accommodate browsers other than IE or NS
if (navigator.appName.indexOf("Netscape")!=-1) {
document.captureEvents(Event.MOUSEMOVE)
function getcoords(e) {
X = parseInt(e.screenX) - -20; // change the # at the left to further adjust the left-margin depending on the size of the window
Y = parseInt(e.screenY) - 10; // change the # at the left to further adjust the top-margin depending on the size of the window
return true;}
document.onmousemove = getcoords;
function openWin() {
if (navigator.appName.indexOf("Microsoft")!=-1) {
X = parseInt(event.screenX) - -20; // change the # at the left to further adjust the left-margin depending on the size of the window
Y = parseInt(event.screenY) - 10; } // change the # at the left to further adjust the top-margin depending on the size of the window
display=window.open('','NewWin','menubar=0,location=no,status=no,directories=no,toolbar=no,scrollbars=yes,height=110,width=220')
message="<font face=' tahoma,verdana, arial, helvetica, san-serif' size='2' color='#372F4C'><form>";
message+="<input type='checkbox' onClick=window.open('http://xml-xsl.sakura.ne.jp/station1w.htm','') onBlur='window.close();' />♪ - Radio Station<br />";
message+="<input type='checkbox' onClick=window.open('http://xml-xsl.sakura.ne.jp/sound1.asx','') onBlur='window.close();' />Pops - WinMedia<br />";

====  この間、説明を省略。  ====

message+="<input type='checkbox' onClick=window.open('http://www.di.fm/mp3/salsastream96k.pls','') onBlur='window.close();' />salsa - mp3 stream di.fm<br />";
message+="</form></font>";
display.moveTo(X,Y);
display.document.write(message); }
}
// End -->
</script>
<!-- ☆ ---------- ↑ この間をコピー、編集、ペーストします。 ---------- -->
 

 

(*2) pop_menu15.htm (例)        挿入先の  <body> 〜 </body> の、 部分にペーストします。

HTMLの編集方法   (*2)をテキストエディターで開き、下記↓のHTMLを挿入先ファイルにペースト、太字部分を編集し使用。
〔この列ペースト不要〕

※:<body> 部の編集 背景 リンク 表示済みリンクンク アクティブリンクの各色(任意値)

ボタン文字 〃背景色 〃文字色 吹き出し

アイコン画像

 

<body bgcolor="#F8F5F5" link="#54006C" vlink="#62000D" alink="#00FFFF">

<!-- ★ ---------- ↓ この間をコピー、編集、ペーストします。 ---------- -->
<form>
<input type=button value="Web Radio - mp3" style="background:#4D4A55; color:#DAC2F0; cursor:hand" onClick="openWin()" title="Digitally Imported - Web Radio">
</form>
<p><img style="background:#F7F7F8; cursor:hand" border="0" src="./wm_music.gif" width="22" height="22" title="Digitally Imported - Web Radio" onClick="openWin()" /></p>
<!-- ★ ---------- ↑ この間をコピー、編集、ペーストします。 ---------- -->
 

 

< 補足 >    適時参照あれ!。

・ Wordpad によるHTMLソース(タグ)を見ながらの直接編集方法。