Change cursor style when hover over image?

  • 8 February 2016
  • 2 replies
  • 2 views

Badge +3

I know that this this can be done by simply adding cursor: pointer; to my CSS, but can it be done in the designer?

I am trying to change the cursor when the image is hovered over. 

 

Thanks, 


2 replies

Badge +9

Hi there


 


If you want to change the pointer from within designer, you will have to use html or javascript embedded in a literal data label. Beyond that, there is no method to change the cursor out of the box.


 


Ian

Userlevel 5
Badge +16

Hi Reece,

 

Adding to K2Ian answer, here is the JS to change the cursor in runtime:

 

 

<script type="text/javascript"> $(document).ready(function()

{

$('img').hover(function()

{

$(this).css('cursor','pointer');

});
});
</script>

 

 

Reply