View Full Version : how to remove this cursor style
anakintang
08-16-2004, 04:53 PM
I met a problem when I want to set the onmousedrag event of a <img>.The cursor will always turn to "Circle with a line through it" which I don't like, so how to get rid of this cursor style and reset my own?
hmmm.. not sure if you can, but you could try setting the onmouseover event in all of the objects in your document to display a specific cursor if a global variable is set...
( again, i have no idea if this'll work or not but go for it --- also if it worx then it would only work in IE )
<head>
<script type="text/javascript">
function changeAllOnOvers(){
for(i=0;i<document.all.length;i++){
document.all[i].onMouseOver="if window.myGlobalVar==1{this.style.cursor='hand'}"
}
}
</script>
</head>
<body onload="changeAllOnOvers();" ...
<img ondragstart="window.myGlobalVar=1;" ...
of course if this worx then it would change ALL of the onmouseover events in every object on the page visible/hidden/or otherwise... so you'd have to be careful to specify any objects to opmit this for if you have anyobjects that use the onmouseover event...
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.