Show Progress bar on Mouse Cursor
<asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="
<
script type="text/javascript" language="javascript">var
IE = document.all?true:false // If NS -- that is, !IE -- then set up for mouse captureif
(!IE) document.captureEvents(Event.// Set-up to use getMouseXY function onMouseMove
document.onmousemove = getMouseXY;
// Temporary variables to hold mouse x-y pos.s
var
tempX = 0var
tempY = 0// Main function to retrieve mouse x-y pos.s
function
getMouseXY(e) { if (IE) { // grab the x-y pos.s if browser is IE //tempX = event.clientX + document.body.scrollLeft //tempY = event.clientY + document.body.scrollToptempX = event.clientX + document.documentElement.
tempY = event.clientY + document.documentElement.
}
else{
// grab the x-y pos.s if browser is NStempX = e.pageX
tempY = e.pageY
}
// catch possible negative values in NS4 if (tempX < 0)tempX = 0;
if (tempY < 0)tempY = 0;
// show the position values in the form named Show // in the text fields named MouseX and MouseY var divToMove = document.getElementById("divToMove.style.left = tempX+10-LeftOffset;
divToMove.style.top = tempY+10-TopOffset;
return true;}
script>
i needed that buddy. Thanx
ReplyDelete