This article is a mirror article of machine translation, please click here to jump to the original article.

View: 13135|Reply: 0

[JavaScript] JavaScript gets the resolution of your current computer

[Copy link]
Posted on 11/23/2014 7:21:10 PM | | |
[mw_shl_code=javascript,true]<! DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
   "http://www.w3.org/TR/html4/strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>6-8</title>
        <meta name="author" content="tianjiangtao" />
        <!-- Date: 2014-11-22 -->
</head>
<body>
        <script type="text/javascript">
                var s = 800;
                var c,cv=24;
                if(screen.width !=s)
                {
                        document.write("Your screen resolution is "+screen.width+"×"+screen.height+", not the best resolution, please adjust the resolution to 900*600 browse this page and refresh it for the best effect")
                }
        </script>

</body>
</html>
[/mw_shl_code]




Previous:2013 The 4th Blue Bridge Cup Java Higher Vocational College Group Final
Next:Pony Win7 Ultimate Activation Tool (OEM7F7 Anniversary Edition)
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com