
Signature
MCP Year 2005, Philippines
> I am confused and still looking why this codes is not working. Can
> anyone
> notice or know why this code is not working? Thanks in advanced.
Do you have more than one element with the id "Img3"? If so, you will get
back a collection of elements.
Also you don't need to find the element again anyway -- you already know
which one it was (it fired the event). Try this instead:
function onMouseOver(obj)
{
obj.style.cursor = 'foo'
}
<img onmouseover="onMouseOver(this)">
Peter

Signature
Peter Torr - http://blogs.msdn.com/ptorr
HD DVD Program Manager
den 2005 - 13 Jul 2006 03:10 GMT
Thanks Peter for info...
Any ideas to simulate a dragging effect while resizing the image control?
I am able to resize the control already but unable to still display the
dragging effect of resizing.
Dennis

Signature
MCP Year 2005, Philippines
> > I am confused and still looking why this codes is not working. Can
> > anyone
[quoted text clipped - 14 lines]
>
> Peter
den 2005 - 13 Jul 2006 09:44 GMT
Problem with dragging effect of resizing is working but having problem with
setting a flag to determine if mouse button is click or not. Is there anyone
knows how to fixed this? I used several ways to do this as shown below, all
telling me the error below. I used IE 6 w/ SP1.
Error message:
Microsoft JScript runtime error: Object doesn't support this property or
method
Approaches used:
1. I even used 'false' & 'true' and 0 & 1.
var mousedown = false;
inside mousedown,
mousedown = true;
inside mousemove,
if (mousedown)
{
....
}
2.
if (window.event.button == 1)
den2005

Signature
MCP Year 2005, Philippines
> Thanks Peter for info...
>
[quoted text clipped - 22 lines]
> >
> > Peter