You should be able to just install both scripts on the page. Put the text sizer script first on the page (above the screen res detector), so that its functions will be available to the screen res detector. Then modify the screen res detector substituting:
Code:
onload=function(){ts('body',1)}
or:
Code:
onload=function(){ts('body',-1)}
or:
for the statements like this one:
Code:
window.location.replace("http://www.netscape.com")
The first one makes text larger, the second makes it small. Using 'return;', won't do anything at all except exit the script but, might be just the ticket for certain resolutions. Also, if you need things to get even bigger use:
Code:
onload=function(){ts('body',2)}
I think you can see that using -2 will then make things even smaller than -1. There are limits to how large/small a number you can use but 3 and -3 should be OK too, if you need them. Beyond that, the change in text size would probably be too great for any practical use.
One other thing, the text sizer script can be touchy. Install it alone on the page first to see if it is compatible with your markup.
Bookmarks