javascript ֪ʶÕûÀí
javascript ֪ʶÕûÀí
1¡¢screen ÆÁÄ»¶ÔÏó
screen ÆÁÄ»¶ÔÏó ·´Ó³Á˵±Ç°Óû§µÄÆÁÄ»ÉèÖá£
width ·µ»ØÆÁÄ»µÄ¿í¶È£¨ÏñËØÊý£©¡£
height ·µ»ØÆÁÄ»µÄ¸ß¶È¡£
availWidth ·µ»ØÆÁÄ»µÄ¿ÉÓÿí¶È£¨³ýÈ¥ÁËһЩ²»×Ô¶¯Òþ²ØµÄÀàËÆÈÎÎñÀ¸µÄ¶«Î÷ËùÕ¼ÓõĿí¶È£©¡£
availHeight ·µ»ØÆÁÄ»µÄ¿ÉÓø߶ȡ£
colorDepth ·µ»Øµ±Ç°ÑÕÉ«ÉèÖÃËùÓõÄλÊý - 1£ººÚ°×£»8£º256É«£»16£ºÔöÇ¿É«£»24/32£ºÕæ²ÊÉ«
Ïà¹ØÎĵµ£º
ÔÚJavaScriptÖÐ×Ö·û´®ÊÇÓÃÒýºÅ“" "”¡¢“' '”°üÆðÀ´µÄÁã¸öÖÁ¶à¸ö×Ö·û¡£ÓÃÄĸöÒýºÅ¿ªÊ¼¾ÍÓÃÄĸö½áÊø£¬¶øÇÒµ¥Ë«ÒýºÅ¿ÉǶÌ×ʹÓ㬲»¹ýJavaScript ÖÐÒýºÅµÄǶÌ×Ö»ÄÜÓÐÒ»²ã¡£Èç¹ûÏëÔÙ¶àǶһЩ£¬ÐèÒªÓÃתÒå×Ö·û£º
תÒå×Ö·û ÓÉÓÚһЩ×Ö·ûÔÚÆÁÄ»Éϲ»ÄÜÏÔʾ£¬»òÕß JavaScript Óï·¨ÉÏÒѾÓÐÁËÌØÊâÓÃ;£¬ ......
/**
* CSSClass.js
*/
var CSSClass = {}; //Create our namespace object
//Return tru if element e is a member of the class c;false otherwise
CSSClass.is = fucntion(e, c)
{
if(typeof e == "string")
e = document.getElementById(e);
//Before doing a regexp search,optimize for couple of co ......
½ñÌì¿´µ½Í¬ÊÂharry_duanдµÄÒ»¸öjsÎļþ£¬¸Ð¾õͦÓÐÒâ˼¡£
Ä¿µØÊÇÔÚjsÎļþÖÐʹÓÃjstlµÄfmt:message
1.ÔÚ×ÊÔ´ÎļþÖж¨ÒåÏûÏ¢ errors.message1=error xxxxxx
2.´´½¨Ò»¸öjsÎļþ£¬ÎªÁËjstlÄÜÓ㬽«jsÎļþÃüÃûΪ myjs.js.jsp (ÒÔjsp½áβ)
js ´úÂë
<%@ page contentType="text/html; charset=utf-8 ......
´óÒ»µãµÄ¿ò¼Ü¶¼ÓÐÕâ¸ö¶«Î÷¡£PrototypeÔÀ´µÄ¼Ì³Ð»úÖƷdz£Èõ£¬ÎªÁËÓëmootools¶Ô¿¹Ò²Ç¿»¯ÁËÕâÒ»·½Ãæ¡£ÂҪÓÃÔÐͼ̳ÐÀ´Ä£·ÂÀà¼Ì³Ð£¬¶¼»ù±¾´æÔÚÒ»¸ö¿Ë¡º¯Êý¡£°Ñ¸¸ÀàµÄÔÐÍÊôÐÔ¸´ÖƵ½×ÓÀàÉÏÈ¥¡£ÀíÄîµÄ¶«Î÷ÔÝʱÕâô¶à£¬¶¯ÊÖʵ¼ùÒ»ÏÂ×îʵ¼Ê¡£ÎÒÃÇÉè¼ÆÒ»¸öÊý×éÀ࣬ӵÓÐÔÉúÊý×éµÄÄÜÁ¦ÓëÐÂÀ©Õ¹µÄÄÜÁ¦¡£
var isNumber ......
ÎÒÃÇÀ´Ä£·ÂÒ»ÏÂ×îOOµÄmootoolsµÄ¼Ì³Ð»úÖÆ¡£ËüµÄÀ඼ÓÐÒ»¸ö½Ð×öinitialize¹¹Ôì·½·¨£¬ÕâÓëJavaµÄÀ඼ÓÐÒ»¸öÓëÀàÃûͬÃûµÄ¹¹Ôì·½·¨Ò»ÑùµÄµÀÀí¡£Ö»²»¹ý£¬ÕâЩ½Ðinitialize»òinit¶¼Êǽè¼ø×ÔPrototype£¬¶øPrototypeÄÇ°ïÈËÊÇRuby³öÉí¡£ÎªÁËÇø±ðmootoolsÄÇÖÖÎÛȾÔÉú·½·¨µÄ×ö·¨£¬ÎÒ°ÑÀàµÄ¹¹ÔìÆ÷ÃüÃûΪvariant£¬²¢ÇÒ½ûÖ¹²é¿´¹¹Ô ......