0

I need a java script code tat changes the mouse pointer to an image of my choice when a button or an image is clicked ..
Please help me out

regards jai..

4
Contributors
7
Replies
8
Views
7 Years
Discussion Span
Last Post by serkan sendur
-1

You can also do this via css and ajax. I do it this way, so i can create a few simple classes for my cursors, and then just use addClass or removeClass whenever an event occurs that I need to change the cursor (click, hover, alert, etc.)

0

dont worry most users with one posts are of "post and run" type. he will probably never come back, and when he wants to come back, he will create another user as he already forgot his credentials.

0

give id for the image in html page,
in script get the id of the image as

var cus= document.getElementById("id_name");
cus.style.cursor="arrow";
cus.style.cursor="hand";

e.t.c use can u any of style which u want

that id_name is nothing but id of the image in html

:)

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.