4-1 }C²

°}¦C (Arrays) ¬O JavaScript ´£¨Ñªº¤º«Øª«¥ó (Built-in Object) ¤§¤@¡A¨ä¥\¯à±j¤j¡A¥i¤j´T«×²¤Æ§Aªºµ{¦¡½X¡C²³æªº»¡¡A°}¦C¬O¤@­ÓÅܼơA¦ý¥¦¥i¥HÀx¦s³\¦h­Ó­È¡]¥i¥H¬O¦r¦ê¡B¼Æ­È¡A©Î¬O¥t¤@­Óª«¥ó¡^¡A§Ú­Ì¥i¥H¨Ï¥Î¯Á¤Þ (Index) ©Î¤U¼Ð¡]Subscript¡^¨Ó¦s¨ú¨C¤@­Ó¤¸¯Àªº­È¡A¯Á¤Þ±q 0 ¶}©l¡A¨Ò¦p°}¦C A ªº²Ä¤@­Ó¤¸¯À¬° A[0]¡A²Ä¤­­Ó¤¸¯À¬° A[4]¡A¨Ì¦¹Ãþ±À¡A³o¬O³Ì±`¥Îªº°}¦C¤¸¯À¦s¨ú¤è¦¡¡C¡]³o³¡¤À©MC»y¨¥¬O¤@­Pªº¡C¡^

­n¨Ï¥Î°}¦CÅܼƮɡA»Ý¥ý«Å§i¡A¦ý¥i¥H¤£¥Î³]©w°}¦Cªº¤¸¯À­Ó¼Æ¡AµM«á¦A§â¤¸¯À¤@­Ó¤@­Ó¥[¶i¥h¡A¨Ò¦p¡G

Example¡]array01.htm¡^¡G

¤W­z½d¨Òªº­ì©lÀɦp¤U¡G

­ì©lÀÉ¡]array01.htm¡^¡G¡]¦Ç¦â°Ï°ì«ö¨â¤U§Y¥i«þ¨©¡^
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=big5">
</head>

<body>
<h2 align=center>°}¦Cªº«Øºc</h2>
<hr>

<script>
myArray = new Array();			// ²£¥Í¤@­ÓªÅªº°}¦C
myArray[0] = "This is a test";		// ¥[¤J²Ä 1 ­Ó¤¸¯À 
myArray[1] = 3.1415926;			// ¥[¤J²Ä 2 ­Ó¤¸¯À 
myArray[2] = "The last element";	// ¥[¤J²Ä 3 ­Ó¤¸¯À 
document.writeln("myArray[0] = " + myArray[0] + "<br>");
document.writeln("myArray[1] = " + myArray[1] + "<br>");
document.writeln("myArray[2] = " + myArray[2] + "<br>");
</script>

<hr>
</body>
</html>

¥ç¥i±N¤¸¯À­È¤@¦¸«ü©w§¹¦¨¡G

myArray = new Array("This is a test", 3.1415926, "The last element");

§ó²³æªº¤èªk¡A«h¬O±N°}¦Cªº¦U­Ó¤¸¯À©ñ¦b¤¤¬A©·¤º¡G

myArray = ["This is a test", 3.1415926, "The last element"];

­Y­n¤@¦¸¦L¥X°}¦Cªº©Ò¦³¤º®e¨Ó¶i¦æÀ˵ø¡A¥i¥Î¤U¦C¨ç¦¡

­ì©lÀÉ¡]listArray.js¡^¡G¡]¦Ç¦â°Ï°ì«ö¨â¤U§Y¥i«þ¨©¡^
// ¦C¦L°}¦C
function listArray(array, arrayName) {
	for (var i=0; i<array.length; i++) {
		document.write(arrayName+"["+i+"] = ");
		document.write("<font color=green>"+array[i]+"</font><br>");
	}
}

¨ä¤¤ array ¥Nªí¶Ç¤J¨ç¼Æªº°}¦C¡AarrayName «h¬O¦¹°}¦Cªº¦WºÙ¡A¦Ó array.length «h¬O°}¦C array ªº¤¸¯À­Ó¼Æ¡C

Hint
¦b¤W­z¨ç¥Ü©w¸q¤¤¡A¬O§_¥i¥H¤£¶Ç¤J arrayName¡A¦Óª½±µ¥Ñ array §ä¨ì°}¦Cªº¦WºÙ¡H§ÚÁÙ¨S¦³§ä¨ì¸Ñªk¡A½ÐŪªÌ©Î¦P¾Ç­ÌÀ°¦£§ä§ä¬Ý¡C

¨Ò¦p¡A±N myArray ¥H¤W­zªº¨ç¦¡¦L¥X¡A¥i±o

Example¡]array02.htm¡^¡G

¤W­z½d¨Òªº­ì©lÀɦp¤U¡G

­ì©lÀÉ¡]array02.htm¡^¡G¡]¦Ç¦â°Ï°ì«ö¨â¤U§Y¥i«þ¨©¡^
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=big5">
</head>

<body>
<h2 align=center>°}¦Cªº¦C¦L</h2>
<hr>

<script src=listArray.js></script>
<script>
myArray = ["This is a test", 3.1415926, "The last element"]; 
listArray(myArray, "myArray");
document.write("myArray = " + myArray);
</script>
<hr>
</body>
</html>

¦b¤W­z½d¨Ò¤¤¡A§Ú­Ì¬O±N listArray() ¨ç¦¡¼g¦b listArray.js Àɮפ§¤¤¡A¨Ã¨Ï¥Î¤U¦C¤è¦¡¨Ó±N¦¹Àɮ׾ɤJ¤W­zºô­¶¡G

<script src="listArray.js"></script> ³oºØ¤è¦¡¡A¥i¥HÅý§Ú­Ì¦b¤£¦Pªººô­¶¾É¤J¬Û¦Pªº¨ç¦¡¡A«D±`¤è«K¡A½Ð¨£«áÄò³¹¸`¦³Ãö©ó¡u¦Û­q¨ç¼Æ¡vªº»¡©ú¡C

²{¦b§Ú­Ì¨Ó¬Ý´X­Ó¤ñ¸û§¹¾ãªººô­¶¡A²Ä¤@­Ó¬O¡u¨C¤é¤@¥y¡v¡A¥i¥H±q 15 ­Ó¦r¦ê¤¤¡A¥H¶Ã¼Æªº¤è¦¡¬D¥X¤@­Ó¨ÓÅã¥Ü¡A¦p¤U¡G

Example¡]randomText.htm¡^¡G

¤W­z½d¨Òªº­ì©lÀɦp¤U¡G

­ì©lÀÉ¡]randomText.htm¡^¡G¡]¦Ç¦â°Ï°ì«ö¨â¤U§Y¥i«þ¨©¡^
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=big5">
</head>

<body>
<h2 align=center>¨C¤é¤@¥y¡]§Q¥Î¶Ã¼ÆÂI¿ï¦r¦ê°}¦Cªº¤¸¯À¡^</h2>
<hr>

<script>
text = new Array();
i = 0;
text[i++]="If you don't set aside time for exercise,<br>you'll set aside time for illness.";
text[i++]="¤£ºÞ§A­Ì¬Û·Rªº®É¶¡¦³¦hªø©Î¦hµu¡A<p>­Y§A­Ì¯à©l²×·Å¬X¦a¬Û«Ý¡A<p>¨º»ò¡A©Ò¦³ªº®É¨è³£±N¬O¤@ºØµL·åªº¬üÄR¡A<p>­Y¤£±o¤£¤ÀÂ÷¡A¤]­n¦n¦nªº»¡Án¦A¨£¡A<p>¤]­n¦b¤ß¸Ì¦sµÛ·PÁ¡A<p>·PÁÂ¥Lµ¹¤F§A¤@¥÷°O¾Ð¡C<br><br>ªø¤j¤F¥H«á¡A§A¤~·|ª¾¹D¡A<p>¦bÅZµM¦^­ºªº«b¨º¡A<p>¨S¦³«è«ëªº«C¬K¤~·|¤FµL¿ò¾Ñ¡A<p>¦p¤s©£¤W¨º½üÀRÀRªºº¡¤ë¡C<br><br>®u¼}»T¡EµL«èªº«C¬K";
text[i++]="¥_¤è¦³¨Î¤H¡A¿ò¥@¦Ó¿W¥ß¡C<p>¤@ÅU¶É¤H«°¡A¦AÅU¶É¤H°ê¡C";
text[i++] = "¡ã¡ã ¡@¤@¦¸ªºÄâ¤â<p> ¡@                             ¡@    ¤@¥Íªº»}¬ù¡@¡ã¡ã";
text[i++] ="§Ú´¿½ñ¤ë¦Ó¥h ¥u¦]§A¦b¤s¤¤<p>¦Ó¦b¤µ©]¶D»¡µÛªº¼ö²\ùØ<br>µS¨£§A·L¯ºªº­±®e<p>ÂO¤s·t·t §ÚµØ¦~¤w³u<p>·QªL¤¤¦¸¦¸¦^¬K ¨ÌµM<p>·|¦³±j°·ªº§A ®¾§Ú¬B¯Å¦Ó¤W<p>¦Ó¤ë¦â¦p¤ô ªÚ¯ó²Y°g";
text[i++] = "Yesterday is history, Tomorrow is mystery, and Today is a gift. That is why we call it present.";
text[i++] = "·Rªº¤Ï­±¤£¬O¤³«ë¡A¦Ó¬Oºz¤£Ãö¤ß¡I";
text[i++] = "¦p¦óÅý§A¹J¨£§Ú  ¦b§Ú³Ì¬üÄRªº®É¨è<p>¬°³o  §Ú¤w¦b¦ò«e ¨D¤F¤­¦Ê¦~ ¨DÍ¢Åý§Ú­Ìµ²¤@¬q¹Ð½t<p>¦ò©ó¬O§â§Ú¤Æ§@¤@´Ê¾ð  ªø¦b§A¥²¸gªº¸ô®Ç <p>¶§¥ú¤U·V­«ªº¶}º¡¤Fªá  ¦·¦·³£¬O§Ú«e¥@ªº¬ß±æ<p>  ·í§A¨«ªñ  ½Ð§A²ÓÅ¥ ¨ºÅ¸§Ýªº¸­¬O§Úµ¥«Ýªº¼ö±¡ <p> ¦Ó·í§A²×©óµLµøªº¨«¹L  ¦b§A¨­«á¸¨¤F¤@¦aªº...<p>ªB¤Í°Ú  ¨º¤£¬Oªáä  ¬O§Ú­ä¹sªº¤ß<br><br>®u¼}»T¡E¤@¸\¶}ªáªº¾ð";
text[i++] = "Draft beers, not people.";
text[i++] = "Of all the things I lost, I miss my mind most.";
text[i++] = "Choose what you love ...<br>Love what you choose.";
text[i++] = "Rules are made to be broken.";
text[i++] = "Waste bandwidth; not trees!";
text[i++] = "Work like you don't need the money.<br>Love like you've never been hurt.<br>Dance like nobody's watching.";
text[i++] = "´¿¸g·É®üÃø¬°¤ô¡A<br>°£«o§Å¤s¤£¬O¶³¡C<br>¨ú¦¸ªáÂOÃi°jÅU¡A<br>¥b½t­×¹D¥b½t§g¡C<br><br>¤¸æÒ¡EÂ÷«ä";
 
index = Math.floor(Math.random()*text.length);		// ¥H¶Ã¼Æ³]©w¥y¤lªº¯Á¤Þ­È
document.write("<CENTER><table border=2 cellpadding=20 bgcolor=white>");
document.write("<tr><td><b><font size=+2 face=\"¼Ð·¢Åé,Helvetical,Arial\" color=#408080>");
document.write(text[index]);
document.write("</font></b></td></tr></table></CENTER>");
</script> 

<hr>
</body>
</html>

¦b¤W­z½d¨Ò¤¤¡A©Ò¦³ªº¤å¦r³£¦s¦b¤@­Ó°}¦C¤§¤¤¡A¨C¦¹­«·s¸ü¤Jºô­¶¡A´N·|¸g¥Ñ¶Ã¼Æ¿ï¨ú¤@­Ó¯Á¤Þ­È¨Ó¬D¥X¥y¤l¡A©Ò¥H´X¥G¨C¦¸©Ò¿ï¥X¨Óªº¥y¤l³£·|¤£¤@¼Ë¡C¦³Ãö©ó¶Ã¼Æªº²£¥Í¡A»¡©ú¦p¤U¡G

¥H¦P¼Ëªº¤è¦¡¡A§Ú­Ì¤]¥i¥H¦b¸ü¤Jºô­¶®É¡A¨C¦¹³£¼½©ñ¤@­º¶Ã¼Æ¿ï¨úªº MIDI ­µ¼ÖÀÉ¡A¨Ò¦p¡G

Example¡]randomMusic.htm¡^¡G

¤W­z½d¨Òªº­ì©lÀɦp¤U¡G

­ì©lÀÉ¡]randomMusic.htm¡^¡G¡]¦Ç¦â°Ï°ì«ö¨â¤U§Y¥i«þ¨©¡^
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=big5">
</head>

<body>
<h2 align=center>¦Û°ÊÂIºq¾÷¡]§Q¥Î¶Ã¼ÆÂI¿ï­I´º MIDI ­µ¼Ö¡^</h2>
<hr>

<script>
midiFile = new Array();
songName = new Array();
singerName = new Array();

i = 0;
midiFile[i] = "music/Å¥®ü.mid";
songName[i] = "Å¥®ü";
singerName[i] = "±i´f©f";
i++;
midiFile[i] = "music/Áx¤p°­.mid";
songName[i] = "Áx¤p°­";
singerName[i] = "±çµúµX";
i++;
midiFile[i] = "music/¦pªG¶³ª¾¹D.mid";
songName[i] = "¦pªG¶³ª¾¹D";
singerName[i] = "³\¯øªå";
i++;
midiFile[i] = "music/­ì¨Ó§A¤°»ò³£¤£­n.mid";
songName[i] = "­ì¨Ó§A¤°»ò³£¤£­n";
singerName[i] = "±i´f©f";
i++;
midiFile[i] = "music/tomorrow.mid";
songName[i] = "©ú¤Ñ§A¬O§_¨ÌµM·R§Ú";
singerName[i] = "µ£¦w®æ";

index = Math.floor(Math.random()*midiFile.length);
pickedMidi = midiFile[index];
pickedSongName = songName[index];
pickedSingerName = singerName[index];
document.writeln("<embed src="+pickedMidi+" hidden=false autostart=true loop=false type='audio/midi'>");
</script>

<p align=center>
<script>
document.write("§A²{¦bÅ¥¨ìªººq¬O<font color=green>¡y"+pickedSingerName+"¡z</font>ªº");
document.write("¡y<font color=red>"+pickedSongName+"</font>¡z");
</script>

<p>
©Ò¦³ªººq¡G
<blockquote>
<script>
for (var i = 0; i < midiFile.length; i++) {
	document.write("<font color=green>"+singerName[i]+"</font>¡G");
	document.write("<font color=red>"+songName[i]+"</font>");
	document.write(" (<a href="+midiFile[i]+">"+midiFile[i]+"</a>)<br>");
}
</script>
</blockquote>

<hr>
</body>
</html>

Hint
¦b¤W­z½d¨Ò¤¤¡A§Ú­Ì¨Ï¥Î¤F¤T­Ó°}¦C¡A¤À§O¥Î¨ÓÀx¦s midi ºô§}¡Bºq¦±¦WºÙ¡Bºq¤â©m¦W¡C§ó¦nªº§@ªk¡A¬O¥Î¤@­Ó°}¦C¨Ó¦s©ñ³o¨Ç¸ê®Æ¡A¨ä¤¤¨C¤@­Ó¤¸¯À¥Nªí¤@­ººq¦±ªº¸ê®Æ¡A¥]§t¤T­ÓÄæ¦ì¡]midi ºô§}¡Bºq¦±¦WºÙ¡Bºq¤â©m¦W¡^¡A³o¼Ëªº¸ê®Æµ²ºc¤ñ¸û¼Ò²Õ¤Æ¡C

§Q¥Î¦P¼Ëªº¤è¦¡¡A§Ú­Ì¥i¥HÀH¾÷²£¥Í¤@±i·Ó¤ù¡A¦P®É¤]¼½©ñÀH¾÷­I´º­µ¼Ö¡A¦p¤U¨Ò¡G

Example¡]randomImage.htm¡^¡G

¤W­z½d¨Òªº­ì©lÀɦp¤U¡G

­ì©lÀÉ¡]randomImage.htm¡^¡G¡]¦Ç¦â°Ï°ì«ö¨â¤U§Y¥i«þ¨©¡^
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=big5">
</head>

<body>
<h2 align=center>¦Û°Ê¬Ûï¥[ÂIºq¾÷¡]§Q¥Î¶Ã¼ÆÂI¿ï¼v¹³¤Î­I´º MIDI ­µ¼Ö¡^</h2>
<hr>

<script>
imageUrl=["image/roger/all.jpg", "image/roger/fall.jpg", "image/roger/grade4.jpg", "image/roger/lake.jpg",
	"image/roger/roger1.gif", "image/roger/roger5.jpg", "image/roger/uniform.jpg", "image/roger/wes.jpg"];
midiUrl=["music/Å¥®ü.mid", "music/Áx¤p°­.mid", "music/¦pªG¶³ª¾¹D.mid", "music/­ì¨Ó§A¤°»ò³£¤£·Q­n.mid", "music/tomorrow.mid"];

pickedImage = imageUrl[Math.floor(Math.random()*imageUrl.length)];
pickedMidi = midiUrl[Math.floor(Math.random()*midiUrl.length)];
document.writeln("<embed src="+pickedMidi+" hidden=true autostart=true loop=false>");
</script>

<table align=center border=2>
<tr><td>
<script>document.write("<img src="+pickedImage+">")</script>
</table>

<hr>
</body>
</html>

§Ú­Ì¤]¥i¥H§Q¥Î¨â¬qÀH¾÷²£¥Íªº¤å¦r¡A¨Ó¦X¦¨¥t¤@¬q¤å¦r¡A¨º»ò¤å¦r§¹¥þ­«½Æªº¾÷²v´N·|¤p«Ü¦h¡A¨Ò¦p

Example¡]punchme.htm¡^¡G

¤W­z½d¨Òªº­ì©lÀɦp¤U¡G

­ì©lÀÉ¡]punchme.htm¡^¡G¡]¦Ç¦â°Ï°ì«ö¨â¤U§Y¥i«þ¨©¡^
<html>
<head>
<meta http-equiv="Refresh" content="3">
</head>

<body>
<h2 align=center>§Q¥Î¶Ã¼Æ¦X¦¨°T®§¡A¨Ã¦Û°Ê§ó·s¡]3 ¬í§ó·s¤@¦¸¡^</h2>
<hr>

<script>
text1 = new Array();
i = 0;
text1[i++] = "Hey you geek, ";
text1[i++] = "Hey buddy, ";
text1[i++] = "See if you dare to ";
text1[i++] = "To reboot the computer, ";
text1[i++] = "To save the world, ";
text1[i++] = "To get the highest score in the class, ";
text1[i++] = "¦P¾Ç­Ì, ";

text2 = new Array();
i = 0;
text2[i++] = "punch me!";
text2[i++] = "press me!";
text2[i++] = "push me!";
text2[i++] = "hit me with your best shot!";
text2[i++] = "«ö§Ú¤@¤U§a!";
text2[i++] = "´~§Ú¤@®±§a!";

document.write("<h3 align=center>");
document.write("<font face='Helvetical,Arial' color='#408080'><I>");
document.write(text1[Math.floor(Math.random()*text1.length)]+text2[Math.floor(Math.random()*text2.length)]);
document.write("</I></font>");
document.write("</h3>");
</script>

<center>
<img src="image/roger/roger4.jpg" onMouseDown="this.src='image/roger/newroger.jpg'"
onMouseUp="this.src='image/roger/roger4.jpg'">
</center>

</body>
</html>

¦b¤W­z½d¨Ò¤¤¡A§Ú­Ì¦b ¥[¤F¤@¦C <meta http-equiv="Refresh" content="3">¡A³o¤@¦C±Ô­z·|ÅýÂsÄý¾¹¨C 3 ¬í´N­«·s¸ü¤Jºô­¶¡A¦]¦¹¤W¤èªº°ÊºA°T®§´N·|¨C 3 ¬íÅܰʤ@¦¸¡C¡]·íµM¡A§Ú­Ì¤]¥Î¤F onMouseOver ©M onMouseUp ªº¨Æ¥ó¡A¥H«K§Y®É§ó´«¼v¹³¡A¹F¨ì½ì¨ý©Êªº®ÄªG¡C¡^

¦pªG§Ú­Ì§Q¥Î°}¦C¨Ó¦s©ñ¼v¹³ª«¥ó¡A´N·|¦³§Ö¨úªº®ÄªG¡A´«¥y¸Ü»¡¡A¤@¥¹ª¾¹D¼v¹³ª«¥óªººô§}¡AJavaScript ·|¥ý±N¼v¹³¸ê®Æ§ì¦^¨Ó¡Aµ¥»Ý­n§e²{¼v¹³®É¡A´N¥i¥Hª½±µ±q«È¤áºÝ¹q¸£ªº°O¾ÐÅ餤§ì¨ú¡A¬Ù«o¤Fª½±µ±qºô¸ô§ì¨úªº®É¶¡¡A´î¤Ö¤F¨Ï¥ÎªÌªºµ¥«Ý®É¶¡¡A¹F¨ì¤F¡u§Ö¨ú¡v¡]Cache¡^ªº®ÄªG¡C¨Ò¦p¡G

Example¡]rotateImage.htm¡^¡G

¤W­z½d¨Òªº­ì©lÀɦp¤U¡G

­ì©lÀÉ¡]rotateImage.htm¡^¡G¡]¦Ç¦â°Ï°ì«ö¨â¤U§Y¥i«þ¨©¡^
<html>
<head>
<meta HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=big5">
</head>

<body>
<h2 align=center>¦³§Ö¨ú®ÄªG¡]Cache¡^ªº JavaScript ºô­¶</h2>
<hr>

<h3 align=center>
ÂI¿ï·Ó¤ù¥H¸õ¨ì¤U¤@±i¡I
</h3>

<script language="JavaScript">
currentIndex = 0;			// ²Ä¤@±i·Ó¤ùªº¯Á¤Þ­È
imageArray = new Array();		// ²£¥Í©ñ¼v¹³ª«¥óªº°}¦C
photoNum = 42;				// ·Ó¤ùªº¼Æ¥Ø
for (i=0; i<photoNum; i++){
	imageArray[i] = new Image();	// ¨C­Ó°}¦C¤¸¯À³£¬O Image ª«¥ó¡A©Ò¥H¦³§Ö¨úªº®ÄªG
	if (i < 10)
		imageArray[i].src = "image/19980425/000"+i+".jpg";
	if ((10 <= i) && (i < 100))
		imageArray[i].src = "image/19980425/00"+i+".jpg";
}

// ¶Ç¦^¤U¤@±i·Ó¤ùªººô§}
function nextImageUrl(){
	currentIndex++;				// ³o¬O¥þ°ìÅܼÆ
	currentIndex=currentIndex % photoNum;	// ¨D¾l¼Æ
	return(imageArray[currentIndex].src);	// ¦^¶Ç·Ó¤ùºô§}
}
</script>

<center>
<img src="image/19980425/0000.jpg" onMouseUp="this.src=nextImageUrl()">
</center>

</body>
</html>

¦b¤W­z½d¨Ò¤¤¡A¦@¥Î¨ì42±i·Ó¤ù¡A¦ý JavaScript ·|¥ß§Y±N¼v¹³¸ê®Æ§ì¦^¨Ó¡A¦Ó¤£·|µ¥¨ì¨Ï¥ÎªÌÂI¿ï®É¡A¤~±qºô¸ô§â¼v¹³¸ê®Æ§ì¦^¨Ó§e²{¡C¡]¤£¹L³o­Ó½d¨Ò­n©ñ¦b»·ºÝªº¦øªA¾¹¤~¯àÅã¥Ü¨ä®ÄªG¡A­Y¥u¬O¦b«È¤áºÝÂI¿ï½d¨Ò¡A«h©Ò¦³¼v¹³¸ê®Æ³£¦bµwºÐ¤¤¡A¤£®e©ö¬Ý¥X§Ö¨úªº®ÄªG¡C¡^

Hint
¦pªG imageArray ¥u¬O¥Î¨Ó¦s©ñ¼v¹³ªººô§}¡A¦Ó¤£¬O¦s©ñ¤@­Ó¼v¹³ª«¥ó¡A¨º´N¤£·|¦³§Ö¨úªº®ÄªG¡C

³Ì«á¤@­Ó½d¨Ò¡A¬O¨Ï¥Îºô­¶¨Ó¹F¨ìÃþ¦ü Powerpoint §ë¼v¤ùªº´`§Ç©ñ¬M®ÄªG¡A½Ð°Ñ¦Ò¤U¦C½d¨Ò¡G

Example¡]slideShow/index.htm¡^¡G

«ÜÅãµMªº¡A­nÀx¦s³o¨Çºô­¶ªº¸ê°T¨Ó¶i¦æ´`§Ç¼½©ñ¡A·íµM¬O¥Î°}¦C³Ì¤è«K¡C¡]¥»½d¨Ò¨ú§÷¦Û²MµØ¤j¾Ç­pºâ¾÷»P³q°T¤¤¤ß¡B©P¤å¥¿¥ý¥Íªº§@«~¡A¯S¦¹­PÁ¡C¡^


JavaScript µ{¦¡³]­p»PÀ³¥Î¡G¥Î©óºô­¶¥Î¤áºÝ