numist/jslib — Issue #8: better zoom in/out cursors
Author: numist
Created: 2012-02-17 23:23:33+00:00
State: open
Labels: irsz

WebKit and Gecko both provide their own, using -webkit-zoom-in/out and -moz-zoom-in/out, but you can't set them both in the same css line, so applying them correctly will have to take the form of:

$("#zoom-in").css('cursor', function() {
if (jQuery.browser.mozilla) {
return '-moz-zoom-in';
}
else if (jQuery.browser.webkit) {
return '-webkit-zoom-in';
}
else {
return cursor_zoom_in;
}
});