javascript»ñÈ¡·Ö±æÂÊ,ÍøÒ³´°¿Ú´óСµÈÖµ
<html>19Â¥¿Õ¼ä,`(uqj3~9?!F
<body>
Ob*p#?L;DL0<scrīpt LANGUAGE="Javascrīpt">
+t:{z]tbs0var s = "";19Â¥¿Õ¼äe kA3HoT1H
s += "ÍøÒ³¿É¼ûÇøÓò¿í£º" + document.body.clientWidth;19Â¥¿Õ¼äcy2if}:H/SE@
s += "<br>ÍøÒ³¿É¼ûÇøÓò¸ß£º"+ document.body.clientHeight;19Â¥¿Õ¼ä/\U`xI` s w(Zs
s += "<br>ÍøÒ³¿É¼ûÇøÓò¿í£º"+ document.body.offsetWidth +" (°üÀ¨±ßÏߺ͹ö¶¯Ìõ)";19Â¥¿Õ¼ä@t S)W7X+]g4T
s += "<br>ÍøÒ³¿É¼ûÇøÓò¸ß£º"+ document.body.offsetHeight +" (°üÀ¨±ßÏß)";19Â¥¿Õ¼ämLcc4D+@
s += "<br>ÍøÒ³ÕýÎÄÈ«ÎÄ¿í£º"+ document.body.scrollWidth;
d5}L8R P0s += "<br>ÍøÒ³ÕýÎIJ¿·ÖÉÏ£º"+ window.screenTop;
m dk-c eF0s += "<br>ÍøÒ³ÕýÎIJ¿·Ö×ó£º"+ window.screenLeft;
P'`J5@5E1J0s += "<br>ÆÁÄ»·Ö±æÂʵĸߣº"+ window.screen.height;19Â¥¿Õ¼ä n0\0VM hB3X
s += "<br>ÆÁÄ»·Ö±æÂÊµÄ¿í£º"+ window.screen.width;
N~]yM|F|/Z `d(n~0s += "<br>ÆÁÄ»¿ÉÓù¤×÷Çø¸ß¶È£º"+ window.screen.availHeight;
S(l jVHW6UM0s += "<br>ÆÁÄ»¿ÉÓù¤×÷Çø¿í¶È£º"+ window.screen.availWidth;19Â¥¿Õ¼ä.G0Q|jjwL Bf
s += "<br>ÄãµÄÆÁÄ»ÉèÖÃÊÇ "+ window.screen.colorDepth +" λ²ÊÉ«";19Â¥¿Õ¼ä(iG:WM s?
s += "<br>ÄãµÄÆÁÄ»ÉèÖà "+ window.screen.deviceXDPI +" ÏñËØ/Ó¢´ç";19Â¥¿Õ¼ä2j!e3T#zi |
s += "<br>ÍøÒ³Õæʵ¿í£º" + document.documentElement.scrollWidth;
"oW|6t0s,Z!j0s += "<br>ÍøÒ³Õæʵ¸ß£º"+ document.documentElement.scrollHeight;19Â¥¿Õ¼äs%y+Fl,d
document.write(s);19Â¥¿Õ¼äKP fp/m
</scrīpt>19Â¥¿Õ¼ä1d0z1{;?J.{Rjw6_
</body>
E `#R oi7D0SH0</html>
Ïà¹ØÎĵµ£º
ʼþÔ´¶ÔÏó
event.srcElement.tagName
event.srcElement.type
²¶»ñÊÍ·Å
event.srcElement.setCapture();
event.srcElement.releaseCapture();
ʼþ°´¼ü
event.keyCode
event.shiftKey
event.altKey
event.ctrlKey
ʼþ·µ»ØÖµ
event.returnValue
Êó±êλÖÃ
event.x
event.y
´°Ìå»î¶¯ÔªËØ
d ......
¼¸ºõËùÓеĸ» Web Ó¦Óö¼»ùÓÚÒ»¸ö»ò¶à¸ö Web UI ¿â»ò¿ò¼Ü£¬ÕâЩ UI
¿âÓë¿ò¼Ü¼«´óµØ¼ò»¯ÁË¿ª·¢½ø³Ì£¬²¢´øÀ´Ò»Ö£¬¿É¿¿£¬ÒÔ¼°¸ß¶È½»»¥ÐÔµÄÓû§½çÃæ¡£±¾ÎĽéÉÜÁË 15 ¸ö·Ç³£Ç¿´óµÄ JavaScript Web UI
¿â£¬·Ç³£Êʺϸ÷ÖÖ¸÷ÖÖ¹æÄ£µÄ¸» Web Ó¦ÓõĿª·¢¡£
LivePipe
LivePipe
UI
»ùÓÚ Prototype Javascript ¿ò¼Ü
£¬°üº ......
function $id(s) {
return document.getElementById(s);
}
//ÅжÏСÊý
function IsFloat(s) {
if (!/^[+\-]?\d+(.\d+)?$/.test(s))
return false;
else
return ......