|
Javascript得到客户端分辨率,色深等 |
|
<table border="0">
<tr> <td><form method="POST" name="t"> <table border="0"> <tr> <td valign="top" width="150" bgcolor="#00FFFF"><strong>Your screen's width:</strong></td> <td><input type="text" size="20" name="t1" value="not supported"></td> </tr> <tr> <td valign="top" width="150" bgcolor="#00FFFF"><strong>Your screen's height:</strong></td> <td><input type="text" size="20" name="t2" value="not supported"></td> </tr> <tr> <td valign="top" width="150" bgcolor="#00FFFF"><strong>Your screen's color Depth:</strong></td> <td><input type="text" size="20" name="t3" value="not supported"></td> </tr> <tr> <td valign="top" width="150" bgcolor="#00FFFF"><strong>Your screen's pixel Depth: </strong></td> <td><input type="text" size="20" name="t4" value="not supported"></td> </tr> </table> </form> </td> </tr> </table> <p align="left"> <script> <!-- /* Surfer's Screen Type Detection Script */ function show(){ if (!document.all&&!document.layers) return document.t.t1.value=screen.width document.t.t2.value=screen.height document.t.t3.value=screen.colorDepth document.t.t4.value=screen.pixelDepth } show() //--> </script> |