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

³£ÓÃHTMLÒªÇó JavaScript½Å±¾

ÌØÊâJavaScript½Å±¾£º
1.½ûÓÃ(»Ö¸´)href³¬¼¶Á´½Ó£®
2.javascriptÖе÷ÓÃvbs¶Ô»°¿òʵÏÖConfirm,¿ÉÒÔÏÔʾYes,No,»¹Óи÷ÖÖͼ±ê£¬½öIEÏÂÓÐЧ£®
3.ÏÞÖÆÉÏ´«ÎļþÀàÐÍΪjpg.
4.ÏÞÖÆÀ뿪µ±Ç°Ò³Ã棬ÔÚÀ뿪ʱÌáʾ£®½öÏÞÖÆ´°¿Ú¹Ø±Õ»òͨ¹ýij¸öhref³¬¼¶Á´½ÓÀ뿪£®(Ò³ÃæË¢Ðº͵ØÖ·À¸¸Ä±äʱ²»Ìáʾ£©
demo.htmlÈçÏ£º
<html>
 <header>
   <title>Demo for Javascript</title>
  <script>
  
  //½ûÓ󬼶Á¬½Ó
  function EnabledLink(flag)
  {
   var btlink=document.getElementById('linkconfirm');
   if(btlink!=null)
   {
        btlink.disabled = !flag;
        btlink.onclick = function() { return flag; };
        btlink.style.cursor = flag ? "hand" : "text";
        btlink.style.textDecoration = flag ? "" : "none";
        btlink.title= flag ? "open other page" : "disabled";
    }
  }              
  
  //ÏÞÖÆÎļþÀàÐÍ
  function checktype(uploadfile)
  {
      var filepath = uploadfile.value
      //ÎļþÀàÐÍ´íÎó±ê¼Ç£¬·ÀÖ¹ÖØ¸´µ÷ÓÃ
      var hd = document.getElementById('hdfileerror');
      if (hd.value.length==0 && filepath.length > 0)
      {
          filepath = filepath.substring(filepath.lastIndexOf('.') + 1, filepath.length)
          if (filepath != 'jpg' && filepath != 'jpeg')
          {
           


Ïà¹ØÎĵµ£º

javaScript(&jQuery)¹¤¾ß¼°ÏàÓ¦ÍøÕ¾×ÊÁÏ

1.Dean Edwards±àдµÄPacker£¨http://dean.edwards.name/packer/£©£¬ÓÃÓÚѹËõJavaScript
2.»ñÈ¡JQuery£ºhttp:/jquery.com 
                     http://docs.jquery.com/Downloading_jQuery   ÏÂÔØ¸÷¸ö°æ±¾¼°ÏàÓ¦°ïÖúÎ ......

JavaScriptµÄ±Õ°ü


   ±Õ°ü£º
    ECMAScriptÖ§³Ö±Õ°ü¡£Ëùν±Õ°ü£¬¾ÍÊǺ¯ÊýÄÜʹÓú¯ÊýÍⶨÒåµÄ±äÁ¿¡£
    var iBaseNum = 10;
    function addNumbers(iNum1, iNum2)
    {
        function doAddition()
   ......

JavascriptÌø×ª´óÈ«

°´Å¥Ê½£º
<INPUT name="pclog" type="button" value="/GO" onClick="location.href='http://game.unimagic.cn'">
Á´½Óʽ£º
<a href="javascript:history.go(-1)">·µ»ØÉÏÒ»²½</a>
<a href="<%=Request.ServerVariables("HTTP_REFERER")%>">·µ»ØÉÏÒ»²½</a>
Ö±½ÓÌø×ªÊ½£º
<scrip ......

javascript ʵÏÖÊý¾Ý±í¸ñÏÔʾµÄÕ¹¿ªÓëÕÛµþ

<script   language="javascript">  
  function   ShowTableRow(id)
 
  { 
  var _Row = document.getElementById(id)   <!-- »ñÈ¡IDΪTableRowID µÄ¶ÔÏó -->
  var _Img = document.getElementById("Img"+id)
 
&nb ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ