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..
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..
document.style.cursor = "cursorTypeName";
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.)
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.
thanks a lot dude.. Your idea helped me..
please mark as solved.
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
:)
mark the damn as solved.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.