我想在网页中点击图片或文字时跳出一个框来显示相关的内容,怎么做呀
谢谢
<img alt="提示" src="/image/15.jpg" width="139" height="110">
<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
window.open(theURL,winName,features);
}
//-->
<a href="#" onClick="MM_openBrWindow(input2.aspx,煤炭出售,width=420,height=430)"><font color=FBFBE7>发布出售煤炭信息</a>
在层里:
<div title="提示" id="Layer1" style="position:absolute; left:-9px; top:96px; width:136px; height:90px; z-index:1〉文本 </div>
也可以加热点:
<area shape="rect" coords="12,11,128,97" href="#" alt="题是">
<a href="#" OnClick="window.ope(yourPage.aspx)"><img src="你要的图位置"></a>