Well all browsers can do the same, except for Firefox. Wired, indeed! However this zoom script works in IE, Firefox,Chrome,Safari.
jQuery(document).ready(function() {
var currFFZoom = 1;
var currIEZoom = 100;
jQuery(".make_greater").click(function(){
var step;
//only firefox sux in this case
if (jQuery.browser.mozilla){
step = 0.05;
currFFZoom += step;
jQuery('.maincontent').css('MozTransform','scale(' + currFFZoom + ','+ currFFZoom + ')');
jQuery('.maincontent').css('transform-origin','0 0');
}
else
{
step = 5;
currIEZoom += step;
jQuery('body').css('zoom', ' ' + currIEZoom + '%');
}
});
jQuery(".make_smaller").click(function(){
var step;
//only firefox sux in this case
if (jQuery.browser.mozilla){
step = 0.05;
currFFZoom -= step;
jQuery('.maincontent').css('MozTransform','scale(' + currFFZoom + ','+ currFFZoom +')');
jQuery('.maincontent').css('transform-origin','0 0');
}
else
{
step = 5;
currIEZoom -= step;
jQuery('body').css('zoom', ' ' + currIEZoom + '%');
}
});
});