網頁的java 在WIN7中,就顯示undefined
在xp中,鼠標移上去能正常顯示標注,在WIN7中,就顯示undefined,求大神幫忙下
html
head
meta "
title鼠標提示/title
script language="JavaScript"
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
style
body{font-size:12px}
/style
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
/head
body
form name="form1" method="post" action=""
用戶名:
input type="text" name="textfield" tips="*** 輸入用戶名." onmousemove=seashowtip(this.tips,1,150) onmouseout=seashowtip(this.tips,0,150)
br/
密? 碼:
input type="text" name="textfield2" tips="*** 輸入密碼." onmousemove=seashowtip(this.tips,1,150) onmouseout=seashowtip(this.tips,0,150)
br/
驗證碼:
input type="text" name="textfield3" tips="*** 輸入驗證碼." onmousemove=seashowtip(this.tips,1,150) onmouseout=seashowtip(this.tips,0,150)
input type="submit" name="Submit" value="提交"
/body
/html