zoukankan      html  css  js  c++  java
  • JS判断显示器分辨率

    <script   LANGUAGE="VBScript">  
      function   myscreen  
      If   screen.width="800"   and   screen.height="600"   Then  
        alert   "你的显示器的分辨率是:"&screen.width&"*"&screen.height  
      ElseIf   screen.width="1024"   and   screen.height="768"   Then  
        alert   "你的显示器的分辨率是:"&screen.width&"*"&screen.height  
      Else   alert   "你的显示器的分辨率是:"&screen.width&"*"&screen.height  
      End   If  
      end   function  
      </script>  
      <input   type=button   onclick="myscreen()"   value="Check">回复4:如何判断当前显示器的分辨率是1024*768还是800*600的嗄!!
    <script   languale="javascript">  
      if   (screen.width==1024)  
      {  
        alert("你的显示器的分辨率是1024*768");  
      }  
      if   (screen.width==800)  
      {  
        alert("你的显示器的分辨率是800*600");  
      }  
      </script>
  • 相关阅读:
    标准函数头部注释
    排序
    #define _INTSIZEOF(n)
    并发编程资料
    memory model
    Ubuntu搜狗输入法的使用
    gprof
    xml_editor
    创建本地Ubuntu镜像
    设计模式9:建造者模式
  • 原文地址:https://www.cnblogs.com/cosiray/p/1551940.html
Copyright © 2011-2022 走看看