要完成此效果需要兩個(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('圖片一說(shuō)明....');"
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('圖片二說(shuō)明....');"
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('圖片三說(shuō)明....');"
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>這里是說(shuō)明文字