home *** CD-ROM | disk | FTP | other *** search
- <ccResource>
- <ccTitle>
- Test Resolution
- </ccTitle>
- <ccCategory>
- Browser
- </ccCategory>
- <ccDescription>
- This javascript gives warning to users that do not use the best resolution for your web page.
- </ccDescription>
- <ccInstructions>
- The code goes only inside the BODY tags. You can change the items below to suit your needs.
- </ccInstructions>
- <ccHeadContent>
-
- </ccHeadContent>
- <ccBodyContent>
- <SCRIPT LANGUAGE="JavaScript1.2">
- var widthsetting = 800;
- var heightsetting = 600;
- if (screen.width != widthsetting || screen.height != heightsetting) {
- msg = "This site was designed using a resolution"
- + "set to " + widthsetting + "x" + heightsetting + ", "
- + "but your screen resolution is " + screen.width + "x"
- + screen.height + ". To best view the site, "
- + "please change your screen resolution, if possible. Thanks!";
- document.write(msg);
- }
- </script>
- </ccBodyContent>
- <ccElementContent>
-
- <ccElementName></ccElementName>
- <ccElementAction></ccElementAction>
-
- </ccElementContent>
- <ccExtraData>
-
- </ccExtraData>
- </ccResource>