提示方塊的內容,還可加入隔行語法,顏色及字型大小語法,甚至可加入圖片。

<script language=JavaScript>
function display_popup(FUNC, POP_MSG) {
if(!POP_MSG) {
 document.getElementById("POP_MSG").style.display = "none";
} else {
 if(!FUNC) FUNC = window.event;
 if(!FUNC) return;
 var x = FUNC.clientX;
 var y = FUNC.clientY + document.body.scrollTop;
 document.getElementById("POP_MSG").innerHTML = POP_MSG;
 document.getElementById("POP_MSG").style.left = (x+30)+"px";
 document.getElementById("POP_MSG").style.top = (y+10)+"px";
 document.getElementById("POP_MSG").style.display = "block";
 }
}
</script>
<div id="POP_MSG" style="display:none; padding:5px ;position:absolute; left:0px; top:0px; z-index:1;border:1px solid #888888;background-color:#EEEEEE;"></div>



首先要加入以上必要語法,以上語法最底,可找到設定