I wanted to do something like the following:
START
browser = detectbrowser();
resolution = detectresolution();
if(resolution != 1024x768)
printf("This site was designed for a 1028x768 resolution. Your screen resolution is different from the one that is required to view this site properly. You may experience problems unless you change your screen resolution"); //Should be displayed at the top of the page in RED
if(browser == IE)
printf("This site can be ideally accessed from Firefox and Opera."); //Again this has to be in RED on the top of the page.
END
I want to be able to put this in a detect.js and include this in my page. Can someone please help me code this?



Reply With Quote



Bookmarks