How can I use scalable HTML-files on non-MicroBrowser browsers?

FAQ #101305

While it is well known how to generate scalable HTML-files with the S-Web Editor and how to use them with the different MicroBrowser resolutions. But it is not well known that it is also possible to use different HTML start-files for different "non MicroBrowsers".

 

Replace your per default generated start HTML-file by a HTML-file containing this small java-script code in the body-part.




if (screen.width==640||screen.height==480) //if 640x480 VGA
window.location.replace("Start.htm")

else if (screen.width==1024||screen.height==768) //if 1024x768 XVGA
window.location.replace("XVGAStart.html")

else //if all else
window.location.replace("Start.htm")




This code is browsing to the respective HTML-file corresponding to the resolution of your Web-Browser.

 

Categories

Web Editor5

Last update: 27.05.2015 20:45

First release: 07.10.2009 07:17

Views: 2046

The requested software / document is no longer marketed by Saia-Burgess Controls AG and without technical support. It is an older software version which can be operated only on certain now no longer commercially available products.

Download