Monday, March 15, 2010

Using JavaScript to increase browser text size

When I display my wiki on an overhead in class it is useful to increase the text size. At present I have to use page>Text Size> Larger. Using my "friend" Dr. Google (he/she?) who knows much more than me, came up with a solution by David Walsh ( a Sun Developer)  http://davidwalsh.name/change-text-size-onclick-with-javascript. There are lots of very tricky solutions out there including those that restyle every individual tag on the page. Note however the resize is only active on the current page (as its JavaScript) so if you go to another page you will have to resize again, unlike the Browser setting which persists.

Am looking to implement this in http://www.virtualmv.com/wiki soon.

No comments:

Post a Comment