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 Link to comment https://forums.phpfreaks.com/topic/202234-full-page-zoom-unsure-of-what-coding/ 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% --> Link to comment https://forums.phpfreaks.com/topic/202234-full-page-zoom-unsure-of-what-coding/#findComment-1060452 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? Link to comment https://forums.phpfreaks.com/topic/202234-full-page-zoom-unsure-of-what-coding/#findComment-1061413 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.