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

javaScriptʵÏÖ±³¾°ÒôÀÖÓë²¥·ÅÉùÒô

Ñо¿ÁË°ëÌì,²»¹ýòËÆ»¹ÊÇÖ»ÄÜÔÚIEÉÏʵÏÖ,ÆäËûä¯ÀÀÆ÷²»Ö§³ÖEMBED ±êÇ©
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title>ÓÃjavascriptÖÆ×÷³¬Á´½ÓµÄ±³¾°ÒôЧ</title>
<script language="JavaScript" type="text/JavaScript">
<!--
function controlSound(action)

var i; method = "";
 var sndObj = document.getElementById("music");
 if (sndObj != null)
  {
  if (navigator.appName == 'Netscape')
    method = "play";
  else
  {
   if (window.MM_WMP == null)
   {
    window.MM_WMP = false;
    for(i in sndObj)
    {
     if (i == "ActiveMovie")
     {
      window.MM_WMP = true;
      //alert("1");
         break;
     }
    }
   } 
   if (window.MM_WMP)
    method = "play";
   else if (sndObj.FileName)
    method = "run";
  }
 }
 if (method)
 {
  
  if(action=="stop")
   method="stop";
  alert(method);
  eval("document.hidden_player"+"."+method+"()");
 }  
}
//-->
</script>
</head>
 
<body>
<a href="#" onMouseOver="controlSound('play','document.ailisi','2.mp3')"
 onmouseout="controlSound('stop','document.ailisi','2.mp3')"
>±³¾°ÒôÀÖ Êó±êÒÆÈë²¥·Å ÒƳöÍ£
</a> <br>
<button onclick="controlSound('play')">²¥</button>
<button onclick="controlSound('stop')">Í£</button>
<!--srcÊÇÒôƵµÄµØÖ·, hiddenÊôÐÔΪÒþ²Ø-->
<EMBED NAME='hidden_player' SRC='1.wma


Ïà¹ØÎĵµ£º

javascript: ÕýÔò±í´ïʽ

ÕýÔò±í´ïʽ
RegExp(regexp, option)ÀàʵÏÖ,¿ÉÒÔ¼òд³É/regexp/option
option:
g: global, i: ignore case
·½·¨:string.test(regexp),
string.exec(regexp)[·µ»ØËùÓÐÆ¥ÅäµÄµØ·½], string.serch(regexp)[ÕýÔò°æµÄindexOf()],
string.replace(regexp, str|funtion), string.split(regexp)
¼òµ¥Ä£Ê½
Ôª×Ö·û:( [ {
......

Javascript ÀàºÍÃüÃû¿Õ¼äµÄ¶¨Òå

//1.Àà
function Test(id)
{
     this.id=id;
     this.method=function()
         {
            //´úÂë
         };
}
......

Javascript ˢпò¼Ü¼°Ò³ÃæµÄ·½·¨×ܼ¯

ÏÈÀ´¿´Ò»¸ö¼òµ¥µÄÀý×Ó£º
ÏÂÃæÒÔÈý¸öÒ³Ãæ·Ö±ðÃüÃûΪframe.html¡¢top.html¡¢bottom.htmlΪÀýÀ´¾ßÌå˵Ã÷ÈçºÎ×ö¡£
Java´úÂë
frame.html ÓÉÉÏ(top.html)ÏÂ(bottom.html)Á½¸öÒ³Ãæ×é³É£¬´úÂëÈçÏ£º   
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> ......

Javascript¼òÒ×¼ÆʱÆ÷£¨ÓÃÀ´¼ÇËã´úÂëµÄÖ´ÐÐʱ¼ä£©

×Ô¼ºÐ´µÄÒ»¸ö¼òÒ×¼ÆʱÆ÷£¬ÄܼÇËã´úÂëµÄÖ´ÐÐʱ¼ä£¬»¹¿ÉÒÔÄÃÀ´²âÊÔ´úÂëµÄÖ´ÐÐЧÂÊ¡£
function Counter(){
this.start();
}
Counter.prototype.getTime = function(){
var time = new Date();
return time.getSeconds()*1000+time.getMilliseconds();
}
Counter.prototype.start = function(){
this. ......

JavaScript ¿ò¼Ü±È½Ï


JavaScript ¿ò¼Ü±È½Ï
ÏÔÖøÔöÇ¿ JavaScript ¿ª·¢µÄ¿ò¼Ü¸ÅÀÀ
Joe Lennon, Èí¼þ¿ª·¢ÈËÔ±, ×ÔÓÉÖ°ÒµÕß
¼ò½é£º ÏÖ´ú Web Õ¾µãºÍ Web Ó¦ÓóÌÐòÇãÏòÓÚÒÀÀµ´óÁ¿¿Í»§¶Ë JavaScript À´Ìṩ·á¸»µÄ½»»¥¹¦ÄÜ£¬ÓÈÆäÊÇÒì²½ HTTP ÇëÇóµÄ³öÏÖʹµÃ²»Ë¢ÐÂÒ³Ãæ¾Í¿ÉÒÔ´Ó·þÎñÆ÷¶Ë½Å±¾»òÊý¾Ý¿âϵͳ·µ»ØÊý¾Ý»òÏìÓ¦¡£ÔÚ±¾ÎÄÖУ¬Äú½«Á˽âÈçº ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ