cursorcss: 'url(magnify.cur), -moz-zoom-in', //Value for CSS's 'cursor' attribute, added to original image
cursorcss: 'url(magnify.cur), -webkit-zoom-in, -moz-zoom-in', //Value for CSS's 'cursor' attribute, added to original image
<script type="text/javascript">$("img").css('cursor', function() { if (jQuery.browser.mozilla) { return '-moz-zoom-in'; } else if (jQuery.browser.webkit) { return '-webkit-zoom-in'; } else { return 'pointer'; } });</script>
<script type="text/javascript">$("img").css('cursor', function() { if (jQuery.browser.mozilla) { return 'url(magnify.cur), -moz-zoom-in'; } else if (jQuery.browser.webkit) { return 'url(magnify.cur), -webkit-zoom-in'; } else { return 'pointer'; } });</script>
img { cursor:pointer; cursor:-moz-zoom-in; cursor:-webkit-zoom-in; }
which works fine with Firefox, however if I do this, neither of them work.
I can only get one or the other to work, not both at the same time.
I also tried adding this into the html file
but that did not work with either of the browsers.
Can anyone tell me how to get this to work?
Then there is no need for the inline markup.
zoom icon works for both mozilla and webkit. other browsers get the regular pointer icon.