html动态显示提示

B.js
var moveFlag=false;
var fntSize=9;
var tipBgColor="FFFFEE";
var tipBorderColor="#000000";
var tipTextColor="000000";
function showTip(msg){
    var obj = 'TipBox';
    moveFlag=true;
    IE_MouseMove();
    document.all[obj].innerHTML = msg;
    document.all[obj].style.visibility = 'visible';
}
function hideTip(){
    var obj = 'TipBox';
    moveFlag=false;
    document.all[obj].style.visibility = 'hidden';
}
function IE_MouseMove(){
    if(moveFlag){
        var x = event.x-10;
        var y = event.y+10; 
        var objp = document.all.TipBox.style;
        var xx = (document.body.scrollLeft+x);
        var yy = (document.body.scrollTop+y);
        objp.pixelLeft = xx+30;
        objp.pixelTop = yy;
    }
}
document.write("

");

A.html



New Document







http://www.163.com" onMouseOut="hideTip()" onMouseOver="showTip('CYLIN')"  target=_blank>
abccccccc



bbbbb


http://www.163.com"> src="sh_pai[1].gif" alt="dddddddddddddddd">


你可能感兴趣的:(html,function,generator,javascript,border,ie)