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
https://forums.phpfreaks.com/topic/119940-zoom-page/
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
https://forums.phpfreaks.com/topic/119940-zoom-page/#findComment-618394
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.