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

µ¥ÒýºÅ,Ë«ÒýºÅ,javascript,HTML,תÒå×Ö·û

ÔÚÒ»¸öÍøÒ³Öеİ´Å¥£¬Ð´onclickʼþµÄ´¦Àí´úÂ룬²»Ð¡ÐÄд³ÉÈçÏ£º
<input value="Test" type="button" onclick="alert(""OK"");" />
IEÌáʾ³ö´íºó£¬ÔÙÂþ²»¾­ÐĵظÄΪ£º
<input value="Test" type="button" onclick="alert(\"OK\");" />
½á¹û»¹Êdzö´í¡£
Õâʱ£¬ÎÒ¾ÍÏ벻ͨÁË£¬ËäÈ»ÎÒÖªµÀ×îÖ±½ÓµÄ½â¾ö·½·¨ÊÇд³ÉÕâÑù£º
<input value="" type="button" onclick="alert('OK');" />
µ«ÎªÊ²Ã´javascriptÖеÄתÒå×Ö·û\ûÓÐЧ¹ûÁËÄØ£¿ ºóÀ´ÕÒµ½Ò»¶ÎÕý³£µÄ´úÂ룺
<input value="Test" type="button" onclick="alert(&quot;OK&quot;);" />
Õâʱ²ÅÀí½â£¬Ô­À´Õâʱ£¬»¹ÊǹéÓÚHTMLµÄ¹ÜϽ·¶Î§£¬ËùÒÔתÒå×Ö·ûÓ¦¸ÃʹÓÃHTMLµÄ£¬¶ø²»ÊÇjavascriptµÄ¡£Á½¸öË«ÒýºÅµÄ×ö·¨ÊÇvbScriptµÄ£¬\"ÕâÖÖ×ö·¨ÔòÊÇjavascriptµÄ£¬¶øHTMLµÄ£¬ÔòÊÇÓÃ&quot;£¬´ËÍ⻹¿ÉÒÔʹÓãº"¡¢'¡£
 
 
HTMLתÒå×Ö·û±í
×Ö·û
Ê®½øÖÆ
תÒå×Ö·û

&#34;
&quot;
&
&#38;
&amp;
<
&#60;
&lt;
>
&#62;
&gt;
²»¶Ï¿ª¿Õ¸ñ(non-breaking space)
&#160;
&nbsp;
×Ö·û
Ê®½øÖÆ
תÒå×Ö·û
×Ö·û
Ê®½øÖÆ
תÒå×Ö·û
×Ö·û
Ê®½øÖÆ
תÒå×Ö·û
?
&#161;
&iexcl;
Á
&#193;
&Aacute;
á
&#225;
&aacute;
¡é
&#162;
&cent;
Â
&#194;
&circ;
â
&#226
&acirc;
¡ê
&#163;
&pound;
Ã
&#195;
&Atilde;
ã
&#227;
&atilde;
¤
&#164;
&curren;
Ä
&#196;
&Auml
ä
&#228;
&auml;
£¤
&#165;
&yen;
Å
&#197;
&ring;
å
&#229;
&aring;
|
&#166;
&brvbar;
Æ
&#198;
&AElig;
æ
&#230;
&aelig;
§
&#167;
&sect;
Ç
&#199;
&Ccedil;
ç
&#231;
&ccedil;
¨
&#168;
&uml;
È
&#200;
&Egrave;
è
&#232;
&egrave;
©
&#169;
&copy;
É
&#201;
&Eacute;
é
&#233;
&eacute;
a
&#170;
&ordf;
Ê
&#202;
&


Ïà¹ØÎĵµ£º

JavaScript ͼƬÎÞ·ì¹ö¶¯

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charse ......

JavaScriptʵÏÖˮƽѡÏЧ¹û

Ê×ÏÈÔÚbodyÖмÓÈëÒÔÏÂHTMLÄÚÈÝ£º
<div id="panel">
 <div id="top">
        <ul id="menu">
            <li id="1">Home</li>
 &nbs ......

javascript¿ª·¢ÏµÁÐ(DOM²Ù×÷)

Ñ¡ÔñÔªËØ£ºdocument.getElementsByTagName£¬document.getElementsById,document.getElementsByName¡£
               firstChild,lastChild,nextSibling£¬previousSibling
´´½¨ÔªËØ£ºdocument.createElement(),appendChild();
ɾ³ýÔªËØ£ºremoveC ......

htmlºÍxhtml

ÎÊÌ⣺htmlÔªËØÈçºÎ¹¹³ÉÎĵµ
½â¾ö·½°¸£ºhtmlÊÇÑϸñµÄÔªËزã´ÎǶÌ׽ṹ£¬ÔªËØ¿ÉÒÔ»¥ÏàǶÌ×£¬µ«ÊDz»ÄÜÖصþ¡£Html½«ÔªËØ»®·ÖΪ3¸öÖ÷ÒªÀࣺ½á¹¹»¯ÔªËØ£¬¿é×´ÔªËØ£¬ÄÚÁªÔªËØ¡£
n         ºËÐĵĽṹ»¯ÔªËØ£º<html><head><body>£¬<head>ÖзŵÄÊǹØÓÚÎĵµµÄÐÅÏ ......

javascript ģʽ¶Ô»°¿òʹÓ㨼Ǽ±¸²é£©

JavascriptÀïÃæ·Öģʽ¶Ô»°¿òºÍ·Çģʽ¶Ô»°¿ò£¬ÆäʵÁ½ÕßÇø±ð¾ÍÊÇÔÚ¶Ô»°¿ò±»¹Ø±Õ֮ǰÓû§ÄÜ·ñÔÚͬһҳÃæµÄÆäËûµØ·½½øÐй¤×÷¡£±ÈÈç“´ò¿ªÎļþ”¶Ô»°¿ò±ãÊǵäÐ͵Äģʽ¶Ô»°¿ò£¬ÔÚÄã¶ÔÕâ¸ö¶Ô»°¿ò×ö³ö¶¯×÷²ÅÄܶԴò¿ª¸Ã¶Ô»°¿òµÄ³ÌÐò½øÐÐÆäËû²Ù×÷£¬¶ø·Çģʽ¶Ô»°¿òÔò²»±Ø¡£
ģʽ¶Ô»°¿ò£ºshowModalDialog
·Çģʽ¶Ô»°¿ò£ºsho ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ