justinede Posted August 16, 2008 Share Posted August 16, 2008 Hello I was making a website for my grandpa and he said he cant see anything so instead of redoing everthing to fit with bigger text i thought i could zoom the whole page in about 200% for old people. So I NEED a script that will zoom the website in about 200% for FF and IE. I saw this but how would i get it to work? var zoom_factor=100; function zoom(how) { var bodyStyle = document.body.style; zoom_factor = (how)?100:110; zoomed = bodyStyle.zoom; if ((zoomed)&&(zoom_factor!=100)) zoom_factor=parseInt(zoomed)*parseInt(zoom_factor) /100; bodyStyle.setAttribute('zoom', parseInt(zoom_factor)+'%'); } Quote Link to comment Share on other sites More sharing options...
RichardRotterdam Posted August 17, 2008 Share Posted August 17, 2008 Most modern browsers have the "ctrl +" (and IE "ctrl + mousescroll" I think ). Firefox 3 resizes most webpages quite nicely without screwing up the layout. wouldnt it be easier to use that? If it the website is specifically for seniors you might want to have the default size to be bigger rather then having a zoom option since its more important for them then the younger generation. 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.