PDA

View Full Version : Page Zoom Help


jackdaniels
04-24-2007, 10:52 AM
how can i use this javascript with web object ??? what i wanna do is a button and when it is clicked it will zoom the page in web object...

<script language="JavaScript">
var i = parseInt(document.body.style.zoom);
if (isNaN(i))
newZoom='125%';
else if (i<0)
newZoom='25%';
else
newZoom=i+25+'%';
document.body.style.zoom=newZoom;
</script>


can someone help please ???

CyberRBT
04-24-2007, 05:02 PM
The user needs to have MSIE 7.x and that javascript needs to be inside the actual HTML of that web page. If you're wanting to do this on someone else's web page, the AMS web object does not support that feature.

However, you might be able to create a 'bookmarklet' that could do it. Google that term for sites that explain and offer them.

TristanD
04-30-2007, 03:19 AM
hi JD, i have the bookmarklets for zoom in and zoom out if u need em