[an error occurred while processing this directive]
トップページ イベント>オンマウス >オンマウスで文字(説明文等)を表示
 
オンマウスで文字(説明文等)を表示
▼サンプル

サンプルを表示(新しいWindowを開きます)

▼ソース

<HEAD>
<SCRIPT type="text/javascript" language="JavaScript">
<!--
var mes=new Array();
mes[0]='デフォルト文字(空文字でもOK)';
mes[1]='1を表示';
mes[2]='2を表示';
mes[3]='3を表示';
function onmes(num) {
var message=mes[num];
if (document.all){
info.innerHTML=message;
}
if (document.getElementById){
document.getElementById('info').innerHTML=message;
}
if (document.layers) {
var com=document.layers['com'].layers['info'];
com.document.open();
com.document.write(message);
com.document.close();
}
}
//-->
</SCRIPT>

</HEAD>

<BODY>
<A href="" onmouseover="onmes(1)" onmouseout="onmes(0)">1を表示</A>
<A href="" onmouseover="onmes(2)" onmouseout="onmes(0)">2を表示</A>
<A href="" onmouseover="onmes(3)" onmouseout="onmes(0)">3を表示</A>
<p><SPAN ID="info"><ILAYER NAME="com" WIDTH="180" height="120">
<LAYER NAME="info"></LAYER></ILAYER></SPAN>

</BODY>


 
このエントリーのトラックバックURL :  
 
 
コメント&トラックバック
 
コメントする(※は入力必須です。)









あなたのお名前を登録しますか?