nade93 Posted May 19, 2010 Share Posted May 19, 2010 Hi All I am wanting to create a ull page zoom effect and not surewhich language would be best to develop this. Basically want to create a <a href> which will replicate the ctrl + or Ctrl - effect in all browsers. Can any one help me please? Thanks Quote Link to comment Share on other sites More sharing options...
ignace Posted May 19, 2010 Share Posted May 19, 2010 JavaScript: function changeFontSize(size) { document.body.style.fontSize = size + 'px'; } Something like this should do the trick: <a href="#" onClick="changeFontSize(16);">Normal</a> <a href="#" onClick="changeFontSize(20);">Medium</a><!-- 125% --> <a href="#" onClick="changeFontSize(24);">Large</a><!-- 150% --> Quote Link to comment Share on other sites More sharing options...
nade93 Posted May 20, 2010 Author Share Posted May 20, 2010 hey thanks but this only changes the font, want to zoom in page as a whole. is there a way of doing this? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.