Tips HTML

weixin_30924079發表於2020-04-04

<div id=mytips style="position:absolute;background-color:#ffffff;width:121;height:16;border:1px solid gray;display:none;filter: progid:DXImageTransform.Microsoft.Shadow(color=#999999,direction=135,strength=3); left:0; top:5"></div>
<script>
function seashowtip(tips,flag,iwidth){
var my_tips=document.all.mytips;
if(flag){
    my_tips.innerHTML=tips;
    my_tips.style.display="";
    my_tips.style.width=iwidth;
    my_tips.style.left=event.clientX+10+document.body.scrollLeft;
    my_tips.style.top=event.clientY+10+document.body.scrollTop;
   }
else
  {
   my_tips.style.display="none";
   }
}
</script>
 <input name="textfield3" type="text" class="input3" size="15" tips="&nbsp;&nbsp;&nbsp;&nbsp;申請號欄位檢索支援<B><font color=red>?</font></B>代替單個字元,<B><font color=red>%</font></B>代替多個字元。<BR><BR><B>檢索示例:</B><BR>&nbsp;&nbsp;&nbsp;&nbsp;1、輸入完整申請號,如鍵入:<B><font color=red>02144686.5</font></B><BR>&nbsp;&nbsp;&nbsp;&nbsp;2、已知申請號前五位為02144,應鍵入:<B><font color=red>02144%</font></B><BR>&nbsp;&nbsp;&nbsp;&nbsp;3、已知申請號中間幾位為2144,應鍵入:<B><font color=red>%2144%</font></B><BR>&nbsp;&nbsp;&nbsp;&nbsp;4、已知申請號不連續的幾位為021和468,應鍵入:<B><font color=red>%021%468%</font></B>" οnmοusemοve=seashowtip(this.tips,1,200) οnmοuseοut=seashowtip(this.tips,0,200)></td>

轉載於:https://www.cnblogs.com/liulf/archive/2009/08/20/1550741.html