Released: 12/27/2004
Question:
I have a page http://tmh.netdbs.com/tradewindsaviation/plane-sales.asp When a user mouses over the images, I have it set to put a border on the image, it works great, but now I want it to change the cursor to a hand? How do I do that please?


Here is my func -

function mouseIn(x,y) {
var image = event.srcElement;
image.border= '3';
image.style.borderColor = '#fff';
image.style.top = y;
image.style.left = x;
}
Answer:
Code:
image.style.cursor="pointer";

Using "cursor: pointer" works in both IE and Netscape.
Top of Page

Valid HTML 4.01!

Views: 286

Valid CSS!