Why did my cursor change to an up arrow?

How do I make the cursor change to the hand when it's over a picture as if it were over a link in a webpage?

  • I can use javascript or CSS, whatever it takes. The reason I want to do this, is because I'm using an onClick command to change the source on another image on the page, but the cursor remains an arrow pointer, since they are not links. How can I change it to a hand pointer? I've seen the pointers changed on Myspace.

  • Answer:

    It sounds like you do not want it to be a link (anchor tag: <a >) so just put a style on the image: <img src="the_file.jpg" style="cursor:pointer">

Rockstar at Yahoo! Answers Visit the source

Was this solution helpful to you?

Other answers

Can you make the picture a link? If so, that will work.

Yoi_55

In CSS: <style type=text/css> img:hover { cursor:pointer!important; } </style> Sadly stupid IE doesn't support anything but links on hover.... Maybe IE7 willl be up to standards.

J.F.®

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.