Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

¹ØÓÚjavascriptÅжÏÎļþ´óС

<script type="text/javascript">  
function getFileSize(filePath) {  
   var image=new Image();  
   image.dynsrc=filePath;  
   alert(image.fileSize);  
}  
</script>  
<body>  
<INPUT TYPE="file" NAME="file" SIZE="30" onchange="getFileSize(this.value)">  
</body>


Ïà¹ØÎĵµ£º

javascriptÑéÖ¤Îı¾¿òÄÚÈÝ

ÑéÖ¤Îı¾¿òÄÚÈݲ»ÄÜΪ¿Õ
<input onblur="if(this.value.replace(/^ +| +$/g,'')=='')alert('²»ÄÜΪ¿Õ!')">
Ö»ÄÜÊäÈëÓ¢ÎĺÍÊý×Ö
<input onblur="if(/[^0-9a-zA-Z]/g.test(value))alert('Óдí')">
<input onkeyup="value=value.replace(/[^0-9a-zA-Z]/g,'')"/>
<input type="text" onkeyup="value ......

JavascriptÖÐ×î³£ÓõÄ55¸ö¾­µä¼¼ÇÉ

  JavascriptÖÐ×î³£ÓõÄ55¸ö¾­µä¼¼ÇÉ
1. oncontextmenu="window.event.returnValue=false" ½«³¹µ×ÆÁ±ÎÊó±êÓÒ¼ü
<table border oncontextmenu=return(false)><td>no</table> ¿ÉÓÃÓÚTable
2. <body onselectstart="return false"> È¡Ïûѡȡ¡¢·ÀÖ¹¸´ÖÆ
3. onpaste="return false" ²»×¼Õ³Ìù ......

Javascript¼ì²âMedia Player°æ±¾£¡

      ÔÚweb¿ª·¢¹ý³ÌÖУ¬¾­³£»á³öÏÖÒòΪ¿Í»§¶ËµÄijЩÈí¼þ°æ±¾ÎÊÌ⣬¶øµ¼ÖÂÖÖÖÖÎÊÌâ¡£ÕâÀ´Ìì¾ÍÒòΪMedia Player°æ±¾µÄÎÊÌ⣬Òý·¢ÁËÒ»¸ö²»´ó²»Ð¡µÄÎÊÌâ¡£ÔÚµ÷ÓÃMedia Player²¥·ÅÊÓÆµµÄʱºò£¬Media Player9¾¹È»²¥·Å²»ÁË ...  ...
 
²»¶à˵ÁË£¬»¹ÊÇÌù´úÂë°É£¡
 
<html xmlns="h ......

javascriptÖ®getAttribute()·½·¨

getAttribute()·½·¨
 ¡ñÒ»·ÝÎĵµ¾ÍÊÇÒ»¿Ã½ÚµãÊ÷¡£
  ¡ñ½Úµã·ÖΪ²»Í¬µÄÀàÐÍ£ºÔªËؽڵ㡢ÊôÐÔ½ÚµãºÍÎı¾½ÚµãµÈ¡£
  ¡ñgetElementById()·½·¨½«·µ»ØÒ»¸ö¶ÔÏ󣬸öÔÏó¶ÔÓ¦×ÅÎĵµÀïµÄÒ»¸öÌØ¶¨µÄÔªËØ½Úµã¡£
  ¡ñgetElementsByTagName()·½·¨½«·µ»ØÒ»¸ö¶ÔÏóÊý×飬ËüÃÇ·Ö±ð¶ÔÓ¦×ÅÎĵµÀïµÄÒ»¸ ......

javascript µ¼³öÊý¾Ýµ½Excel£¨´¦ÀítableÖеÄÔªËØ£©

×î½ü×öµÄÏîÄ¿ÖÐÓиöÒªÇó£¬ÐèÒª½«Êý¾Ýµ¼³öµ½ExcelÖУ¬¹ØÓÚÕâ¸ö¾Í²»ÊÇʲôÎÊÌâ£¬ÍøÉϵÄ×ÊÁϺܶࡣ¿Éµ±TableÖÐÓÐInput(text)Ö®ÀàµÄÔªËØÊÇÔõô°ì£¿
×ö·¨£º
       ÐÞ¸ÄInputµÄouterHTML;
¾ßÌåÀý×Ó£º
function resetInput()
    {
      &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ