Jump to content

Zoom Page


justinede

Recommended Posts

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)+'%');
}

Link to comment
Share on other sites

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.

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.