[Javascript] What was last rollover?

tedd tedd at sperling.com
Thu Oct 4 13:07:07 CDT 2007


Hi gang:

I have three images on a web page with a css rollover condition, such as:

img1:hover
{
border: 1px solid red;
}

img2:hover
{
border: 1px solid blue;
}

img3:hover
{
border: 1px solid green;
}

If the user moves his/her cursor over an image, then the border's 
corresponding color changes -- no problems there.

But, how can I determine which image was subject to the *last* rollover?

Is there any way to do this?

TIA.

Cheers,

tedd
-- 
-------
http://sperling.com  http://ancientstones.com  http://earthstones.com



More information about the Javascript mailing list