Javascript ÅжÏä¯ÀÀÆ÷
var Sys = {};
var ua = navigator.userAgent.toLowerCase();
if (window.ActiveXObject)//IE
Sys.ie = ua.match(/msie ([\d.]+)/)[1]
else if (document.getBoxObjectFor)//Firefox
Sys.firefox = ua.match(/firefox\/([\d.]+)/)[1]
else if (window.MessageEvent && !document.getBoxObjectFor)//Chrome
Sys.chrome = ua.match(/chrome\/([\d.]+)/)[1]
else if (window.opera)//Opera
Sys.opera = ua.match(/opera.([\d.]+)/)[1]
else if (window.openDatabase)//Safari
Sys.safari = ua.match(/version\/([\d.]+)/)[1];
//ÒÔϽøÐвâÊÔ
if (Sys.ie) alert('IE: ' + Sys.ie);//Sys.ieÊÇ°æ±¾ºÅ
&
Ïà¹ØÎĵµ£º
תÔØ×Ô£ºhttp://www.ruanyifeng.com/blog/2009/09/find_element_s_position_using_javascript.html
Áíһƪ£ºhttp://blog.csdn.net/ivan820819/archive/2009/09/03/4515122.aspx
ÖÆ
×÷
ÍøÒ³µÄ¹ý³ÌÖУ¬ÄãÓÐʱºòÐèÒªÖªµÀij¸öÔªËØÔÚÍøÒ³ÉϵÄÈ·ÇÐλÖá£
ÏÂÃæµÄ½Ì³Ì×ܽáÁËJavascriptÔÚÍøÒ³¶¨Î»·½ÃæµÄÏà¹ØÖª
ʶ¡£
Ò»¡¢ÍøÒ³µ ......
javascriptʵÏÖµ¯³ö´ø͸Ã÷Ч¹ûµÄ¿ÉÍ϶¯Í¼²ã
×î¾ÒòΪÐèÒªÒ»¸öµ¯³öͼ²ãЧ¹û£¬µ¯³öͼ²ãµ¹ÊÇÈÝÒ×ʵÏÖ£¬µ«¾ßÓÐÍ϶¯Ð§¹ûÈ´²»ÖªÔõôȥʵÏÖ£¬ÔÚÍøÉÏ×îÖÕÕÒµ½ÁËÒ»¸öÐèÒªµÄЧ¹û£¬´úÂëÒ²²»¶à£¬Ò»¿´´úÂëµÄ¾«Á¶£¬ÖªµÀÔ×÷ÕßÓ¦¸ÃÊÇjavascript¸ßÊÖ¼¶±ðµÄÈË£¬ÏÖÔÚ¾ö¶¨½èÀ´Ò»Óã¬ÎÒ°ÑËüÂÔ¼ÓÃÀ» ......
±¾Êé·âÃæÉϵĶ¯ÎïÊǺÓÂí£¨hippopotamus£©¡£ºÓÂíÔ²úÓÚ·ÇÖÞµÄijЩµØÇø£¬ÆÜÏ¢ÔÚºÓÖлòºÓ±ßµÄ²ÝµØÉÏ¡£ºÓÂíÃû×ÖµÄÔÎÄhippopotamus¾ÍÊÇÏ£À°ÎÄ¡°ºÓÂí¡±¡£ËüÃÇÓÐÅÓ´ó±¿ÖصÄÉíÇû£¬ÕûÈÕÀïÓÅÑŵØÔÚË®ÖÐ×ßÀ´×ßÈ¥¡£Ò¹ÀïºÓÂíÀ뿪ˮ±ßÈ¥ÃÙʳ¡£ËüÃǵÄʳÎïÖ÷ÒªÊDzݣ¬Ã¿Ìì150°õ£¬»¹ÓÐһЩˮÉúÖ²ÎïºÍÂä¹û¡£ºÓÂíûÓÐÊ²Ã´Ì ......
function Search(){
//Èç¹ûÇ°Ò»¸ö¿Ø¼þµÄÖµ´óÓÚºóÒ»¸ö¿Ø¼þµÄÖµ(Ç°ÌáÊǺóÒ»¸ö¿Ø¼þ²»ÊÇ¿Õ,¿ÕµÄÇé¿öϲ»×öÈκδ¦Àí)
if(document.forms[0].koteifrom.value > document.forms[0].koteiTo.value && document.forms[0].koteiTo.value != ""){
alert('messageÄÚÈÝ');
var koteifrom ......