鼠標(biāo)指向圖片鏈接時(shí)在文本框中出現(xiàn)注釋文字

2006-07-21 10901 0

要完成此效果需要兩個(gè)步驟


第一步:把如下代碼加入到<head>區(qū)域中
<SCRIPT LANGUAGE="javascript">
<!-- Begin
function showMsg(text) {
document.picform.message.value = text;
}
//  End -->
</script>

第二步:把如下代碼加入到<body>區(qū)域中
<center>
<ul>
<li>
<a href="link.htm"
onmouseover="showMsg('圖片一說明....');"
onmouseout="showMsg('');">
<img name="button1" src="/skin/gaoya/images/lazy.gif" class="lazy" original="/Article/UploadFiles/200407/20040716085538624.jpg"></a>
</li>
<li>
<a href="link.htm"
onmouseover="showMsg('圖片二說明....');"
onmouseout="showMsg('');">
<img name="button2" src="/skin/gaoya/images/lazy.gif" class="lazy" original="/Article/UploadFiles/200407/20040716085538169.jpg"></a>
</li>
<li>
<a href="link.htm"
onmouseover="showMsg('圖片三說明....');"
onmouseout="showMsg('');">
<img name="button3" src="/skin/gaoya/images/lazy.gif" class="lazy" original="/Article/UploadFiles/200407/20040716085538624.jpg"></a>
</li>
<form name="picform">
<textarea name=message rows=2 cols=40 wrap=virtual>這里是說明文字


120
評(píng)論區(qū)(0)
正在加載評(píng)論...