MeMoo_07 مدير المنتدى
عدد المساهمات : 363 نقاط : 6192 العمر : 33
| موضوع: كود يضهر للزائر درجة وضوح الشاشة لديه @@@ 2009-05-08, 4:14 am | |
| - الكود:
-
<FONT face="Tahoma" size="2" color="#0000FF"> <script LANGUAGE="Javascript"> // Visit our site at http://www.star28.com/ for more code <!-- if (self.screen) { // for NN4 and IE4 width = screen.width height = screen.height // Testing this first prevents firing the slow Java of NN4 } else if (self.java) { // for NN3 with enabled Java var jkit = java.awt.Toolkit.getDefaultToolkit(); var scrsize = jkit.getScreenSize(); width = scrsize.width; height = scrsize.height; } else{ width = height = '?' // N2, E3, N3 w/Java off, probably Opera and WebTV
} document.write("درجة وضوح الشاشة لديك : "); document.write(width +"×"+ height) //or whatever based on the above results
//--></script></FONT> | |
|