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

JavaScript ÅжÏÎļþÊÇ·ñ´æÔÚ

1. ¿Í»§¶Ë //Ö÷ÒªÕë¶Ô±¾µØIEä¯ÀÀÆ÷·ÃÎÊ
<script
language="javascript">
function FileExist()
{
     var sfso=new
ActiveXObject("Scripting.FileSystemObject");
     var fPath="[The path of the
file]";
     if(sfso.FileExists(fPath))
     {
         
alert("Exist");
     }
     else
     {
          alert("Doesn't
exist");
     }
}
</script>
2.
·þÎñÆ÷¶Ë//Ô¶³Ìä¯ÀÀÆ÷·ÃÎʺͱ¾µØFirefox·ÃÎÊ
<script
language="javascript">
function FileExist()
{
     var xmlhttp=new
ActiveXObject("Microsoft.XMLHTTP");
     xmlhttp.open("GET",FileURL,false);
     xmlhttp.send();
     if(xmlhttp.readyState==4)
     {   
          if(xmlhttp.status==200)
alert("Exist");   
          else if(xmlhttp.status==404) alert("Doesn't
exist");
          else alert("Don't know");  
     }
}
</script>
»òÕß
<script language="JavaScript">
function fileExists(file)
{
if(window.XMLHttpRequest)
{
   xmlhttp=new XMLHttpRequest();
     if(xmlhttp.overrideMimeType) 
     {
     xmlhttp.overrideMimeType('text/xml');
     }
   }
   else if(window.ActiveXObject)
   {
   try
   {
     xmlhttp=new ActiveXObject("Msxml2.XMLHTTP");
     }
     catch (e)
  


Ïà¹ØÎĵµ£º

Íæ͸javascriptµ¯³ö´°¿Ú

Íæ͸javascriptµ¯³ö´°¿Ú
--------------------------------------------------------------------------------


¡¡¡¡¾­³£ÉÏÍøµÄÅóÓÑ¿ÉÄܻᵽ¹ýÕâÑùһЩÍøÕ¾£¬Ò»½øÈëÊ×Ò³Á¢¿Ì»áµ¯³öÒ»¸ö´°¿Ú£¬»òÕß°´Ò»¸öÁ¬½Ó»ò°´Å¥µ¯³ö£¬Í¨³£ÔÚÕâ¸ö´°¿ÚÀï»áÏÔʾһЩעÒâÊÂÏî¡¢°æȨÐÅÏ¢¡¢¾¯¸æ¡¢»¶Ó­¹â¹ËÖ®ÀàµÄ»°»òÕß×÷ÕßÏëÒªÌرðÌáʾµ ......

»ùÓÚJavaScriptºÍCSSµÄWebͼ±í¿ò¼ÜºáÏò¶Ô±È

jQuery, MooTools, Prototype µÈÓÅÐãµÄ JavaScript ¿ò¼ÜÓµÓи÷ÖÖÇ¿´óµÄ¹¦ÄÜ£¬°üÀ¨»æÖÆ Web ͼ±í£¬Ê¹ÓÃÕâЩ¿ò¼ÜÒÔ¼°ÏàÓ¦²å¼þ£¬ÎÒÃÇ¿ÉÒԷdz£ÇáËɵØʵÏÖÇúÏßͼ£¬Ô²±ýͼ£¬Öù״ͼµÈ Web ͼ±íµÄ»æÖÆ£¬¶ø²»±ØÏóÒÔÍùÄÇÑùͨ¹ý¸´Ô Flash ¼¼ÊõʵÏÖ¡£±¾ÎĽéÉÜÁË9¸öÓÅÐãµÄ»ùÓÚ JavaScript Óë CSS µÄ Web ͼ±í¿ò¼Ü¡£ 1. Flot Flot ......

javaScript¼ò½é


ÔÚÊý°ÙÍòÕÅÒ³ÃæÖУ¬JavaScript ±»ÓÃÀ´¸Ä½øÉè¼Æ¡¢ÑéÖ¤±íµ¥¡¢¼ì²âä¯ÀÀÆ÷¡¢´´½¨cookies£¬µÈµÈµÈµÈ¡£
JavaScript ÊÇÒòÌØÍøÉÏ×îÁ÷ÐеĽű¾ÓïÑÔ£¬²¢ÇÒ¿ÉÔÚËùÓÐÖ÷ÒªµÄä¯ÀÀÆ÷ÖÐÔËÐУ¬±È·½Ëµ Internet
Explorer¡¢ Mozilla¡¢Firefox¡¢Netscape¡¢ºÍ Opera¡£
            ......

JavaScriptµ÷ÊÔ¼¼ÇÉÖ®£º¶Ïµãµ÷ÊÔ(1)


Èç¹ûÄú»¹Ã»ÓÐÔĶÁ¡¶JavaScriptµ÷ÊÔ¼¼ÇÉÖ®£º¿ìËÙ¶¨Î»¡·£¬½¨ÒéÏÈ¿´¿´ÄÇƪ¡£Ëµ²»¶¨£¬ÓÿìËÙ¶¨Î»¾ÍÄܽâ¾öÎÊÌâÁË£¬ºÇºÇ¡£Õâ´ÎÎÒ»á×ܽá¼Ç¼һ϶ϵãµ÷ÊԵıʼǣ¬Ï£ÍûÒ²¶Ô´ó¼ÒÓÐÓ㬻¶Ó­²¹³ä½»Á÷£¡
Ê×ÏÈ£¬ÔÚ¸÷¸öä¯ÀÀÆ÷ÖУ¬¶Ïµãµ÷ÊÔÖ§³ÖµÄ×îºÃµÄµ±È»ÊÇFirefox£¬Firefox²»½ö¿ÉÒÔʹÓÃFirebugµ÷ÊÔÒ³Ãæjs½Å±¾£¬»¹¿ÉÒÔÓø߼¶µ÷ÊÔ¹¤¾ßÀ ......

javaScript¹Ø±Õä¯ÀÀÆ÷ (²»µ¯³öÌáʾ¿ò)

Ò»¶ÎJavaScript½Å±¾³ÌÐò£¬¸ºÔð¹Ø±Õ´°¿Ú£¬Èç¹ûÍøÒ³²»ÊÇͨ¹ý½Å±¾³ÌÐò´ò¿ªµÄ£¨window.open()£©£¬µ÷ÓÃwindow.close()½Å±¾¹Ø±Õ´°¿ÚÇ°£¬±ØÐëÏȽ«window.opener¶ÔÏóÖÃΪnull£¬·ñÔòä¯ÀÀÆ÷£¨IE7¡¢IE8£©»áµ¯³öÒ»¸öÈ·¶¨¹Ø±ÕµÄ¶Ô»°¿ò¡£
£¼script language="javaScript"£¾
function closeWindow()
{
¡¡window.opener = null;
¡¡w ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ