Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : javascript

javascript±Ê¼Ç

¶¨Òå±äÁ¿
var test=10;
ʹÓöÔÏóÊôÐÔ
¿ÉÒÔʹÓà . ²Ù×÷·û»ñµÃÊôÐÔ,Ò²¿ÉÒÔʹÓÃÊý×éϱê»ñµÃ,±ÈÈç
for(var prop in document)
document.write(document[prop]+"<br>");
With ÉùÃ÷¶ÔÏó,Ö®ºóÔÙÓõ½¶ÔÏó¾Í²»±ØÉùÃ÷ÁË
with(document){
write("Hello World<br>±êÌâ: ");
write(title);
}
³£ÓöÔÏó
×Ö·û´®¶ÔÏó
big                 ´ó×ÖÌåÏÔʾ
italics             бÌåÏÔʾ
bold               ´ÖÌåÏÔʾ
small              С×ÖÌåÏÔʾ
blink               ÉÁ˸ÏÔʾ
fixed               ´ò×Ö»ú×ÖÌåÏÔʾ
fontsize(size)   ¿ØÖÆ×ÖÌå´óС
ËãÊõº¯Êýmath¶ÔÏó
ʱ¼äÈÕÆÚ¶ÔÏó ......

¡¾ÍƼö¡¿Ê®¸ö¿ªÔ´µÄJavascript¿ò¼Ü


 
ÏÂÃæÊÇÊ®¸ö×îÅ£µÄÒ²ÊÇ×îÁ÷ÐеÄJavascript¿ò¼Ü¡£ËüÃÇÍêÈ«¿ÉÒÔµ£ÈÎĿǰÊÀ½çÉϼ¸ºõËùÓÐһЩºÍAjax¼¼ÊõÏà¹ØµÄºÍͼÐνçÃæÏà¹ØµÄÒ»Çй¦ÄÜ¡£
jQuery
http://jquery.com/
Èç¹û½ñÌìÄ㻹²»ÖªµÀjQueryµÄ»°£¬ÄÇô×÷Ϊһ¸ö³ÌÐòÔ±Äã¿ÉÄÜÕæµÄÊÇ´Ó»ðÐÇÀ´µÄÁË¡£Õâ¿ÖÅÂÊÇAjaxÖÐÓ¦ÓÃ×î¹ãµÄ¿ò¼Ü¡£°üÀ¨ÁËÐí¶àºÜ²»´íµÄUI×é¼þ£¬×ö³öÍøÒ³µÄЧ¹ûÒ²ÊÇÁîÈ˳ƵÀµÄ¡£²»¹ý£¬Ëû×îÅ£µÄÊÇËüµÄÎļþ´óС£¬Ö»ÓÐÇøÇø18K£¬ÊµÔÚÊǾӼÒÂÃÐУ¬ÍøÕ¾¿ª·¢Ö®Ê×Ñ¡¡£
 ÏÂÃæÊÇÒ»¸öÈÕÀú¿Ø¼þ£¬ºÜ²»´í°É¡£
 
 
Prototype
http://prototypejs.org/
 
Ò»¸öÃæÏò¶ÔÏóµÄjavascriptÀà¿â£¬°üº¯Á˺ܶàºÜ¶àºÜʵÓõŦÄÜ£¬ºÜ¶àÆäËüµÄ¿ò¼Ü¶¼Ê¹ÓÃÁËËû×÷Ϊ»ù´¡Àà¿â¡£´óС128K£¬Óеã´ó£¬»¹ºÃ¡£ÏÂÃæÒ»ÆäÒ»¸öUIµÄʾÀý¡£
script.aculo.us
http://script.aculo.us/
 
Õâ¸ö¿ò¼ÜÊÇ»ù´¡ÉÏÃæÄǸö¿ò¼Ü£¨Prototype £©ÉÏ¿ª·¢µÄ£¬Ëü±»°üº¬ÔÚRuby on Rails¿ò¼ÜÖУ¨http://rubyonrails.org/£©¡£
MooTools
http://mootools.net/
 
ÕâÊÇÒ»¸ö½ô´ÕµÄ£¬Ä£¿é»¯µÄ£¬ÃæÏò¶ÔÏó·ç¸ñµÄjavascript¿ò¼Ü£¬Õâ²¢²»ÊÇÒ»¸öÄÜÖ±½ÓÓÃÉϵÄJavascript£¬ËûÖ÷Òª¸ø³ÌÐòÔ±ÃÇ·½±ãµØ½øÐпª·¢¸ü¸ß¼¶µÄ×é¼þ£¬ÒòΪÕâ¸ö¿ò¼ÜÖ÷ÒªÊÇÃæ¶ ......

CSS+JavaScriptʵÏֲ㼶ÏÔʾÒþ²Ø

/***************************by
garcon1986********************************/
¸ÐлCSDNµÄshan1119 °ïÎÒ½â¾öJavascript²¿·ÖµÄ´íÎó¡£
<mce:script language="JavaScript"><!--
function toggle(id,id2,id3) {
var state = document.getElementById(id).style.display;
if (state == 'block') {
document.getElementById(id).style.display = 'none';
if (id2 != undefined)document.getElementById(id2).style.display = 'none';
if (id3 != undefined)document.getElementById(id3).style.display = 'none';
} else {
document.getElementById(id).style.display = 'block';
}
}
// --></mce:script> 
<mce:style type="text/css"><!--
#main{
position:relative;
top:20px;
left:20px;
width:200px;
background: lightblue;
}
#hidden {
position:relative;
top:0px;
left:280px;
width:200px;
background: lightgrey;
display: none;
}
#hidden2 {
position:relative;
top:-20px;
left:580px;
width:200px;
background: lightgreen;
display: none;
}
#hidden3 {
position: ......

CSS+JavaScriptʵÏֲ㼶ÏÔʾÒþ²Ø

/***************************by
garcon1986********************************/
¸ÐлCSDNµÄshan1119 °ïÎÒ½â¾öJavascript²¿·ÖµÄ´íÎó¡£
<mce:script language="JavaScript"><!--
function toggle(id,id2,id3) {
var state = document.getElementById(id).style.display;
if (state == 'block') {
document.getElementById(id).style.display = 'none';
if (id2 != undefined)document.getElementById(id2).style.display = 'none';
if (id3 != undefined)document.getElementById(id3).style.display = 'none';
} else {
document.getElementById(id).style.display = 'block';
}
}
// --></mce:script> 
<mce:style type="text/css"><!--
#main{
position:relative;
top:20px;
left:20px;
width:200px;
background: lightblue;
}
#hidden {
position:relative;
top:0px;
left:280px;
width:200px;
background: lightgrey;
display: none;
}
#hidden2 {
position:relative;
top:-20px;
left:580px;
width:200px;
background: lightgreen;
display: none;
}
#hidden3 {
position: ......

ѧϰjavascriptÍÆ¼öÍøÕ¾

/***************************by
garcon1986********************************/
 
Java is to
JavaScript what Car is to Carpet
ÂÛ̳½»Á÷£º´óÐ͵Äweb¿ª·¢ÉçÇø
http://www.webdeveloper.com/forum/index.php
W3CschoolsÖÐÎÄÕ¾£º¿ª·¢ÕßµÄʵÓÃ+Ñ§Ï°ÍøÕ¾
http://www.w3school.com.cn/js/index.asp
javascript³£ÓÃÎÊÌâ´ðÒÉ£º
http://jibbering.com/faq/
Mozilla javascriptÉçÇø£º
https://developer.mozilla.org/en/JavaScript
Developer¸öÈËÍøÕ¾£º
javascript ´´Ê¼ÈËÖ®Ò» John resig
£ºhttp://ejohn.org/
http://www.javascript.crockford.com          ==
            http://www.crockford.com/
http://adactio.com/journal/
http://simonwillison.net/
http://www.webstandards.org/action/dstf/
http://www.kryogenix.org/days/category/software/web/javascript-and-the-dom
http://robertnyman.com/
http://snook.ca/ ......

Javascript³£ÓÃÆÁ±Î

1 >ÆÁ±Î¹¦ÄÜÀà
1.1 ÆÁ±Î¼üÅÌËùÓмü
<script. language="javascript">
<!--
function document.onkeydown(){
  event.keyCode = 0;
  event.returnvalue = false;
}
-->
</script>
1.2 ÆÁ±ÎÊó±êÓÒ¼ü
ÔÚbody±êÇ©Àï¼ÓÉÏoncontextmenu=self.event.returnvalue=false
»òÕß
<script. language="javascript">
<!--
function document.oncontextmenu() 

  return false; 

-->
</script>
function nocontextmenu()

  if(document.all) {
  event.cancelBubble=true;
  event.returnvalue=false; 
  return false; 
  }
}
»òÕß
<body nmousedown="rclick()" ncontextmenu= "nocontextmenu()">
<script. language="javascript">
<!--
function rclick()
{
  if(document.all) {
  if (event.button == 2){
  event.returnvalue=false;
  }
  }
}
-->
</script>
1.3 ÆÁ±Î Ctrl+N¡¢Shift+F10¡¢F5ˢС¢Í˸ñ¼ü
<script. language="javascript">
<!- ......

javascript ¼¼ÇÉ

//×Ô´øµÄ´òÓ¡Ô¤ÀÀ WebBrowser.ExecWB(1,1) ´ò¿ª  
Web.ExecWB(2,1) ¹Ø±ÕÏÖÔÚËùÓеÄIE´°¿Ú£¬²¢´ò¿ªÒ»¸öд°¿Ú  
Web.ExecWB(4,1) ±£´æÍøÒ³  
Web.ExecWB(6,1) ´òÓ¡  
Web.ExecWB(7,1) ´òÓ¡Ô¤ÀÀ  
Web.ExecWB(8,1) ´òÓ¡Ò³ÃæÉèÖà 
Web.ExecWB(10,1) ²é¿´Ò³ÃæÊôÐÔ  
Web.ExecWB(15,1) ºÃÏñÊdz·Ïú£¬ÓдýÈ·ÈÏ  
Web.ExecWB(17,1) ȫѡ  
Web.ExecWB(22,1) ˢР 
Web.ExecWB(45,1) ¹Ø±Õ´°ÌåÎÞÌáʾ  
<style media=print>  
.Noprint{display:none;}<!--Óñ¾ÑùʽÔÚ´òӡʱÒþ²Ø·Ç´òÓ¡ÏîÄ¿-->  
.PageNext{page-break-after: always;}<!--¿ØÖÆ·ÖÒ³-->  
</style>  
<object  id="WebBrowser"  width=0  height=0  classid="CLSID:8856F961-340A-11D0-A96B-00C04FD705A2">    
</object>    
  
<center class="Noprint" >
<input type=button value=´òÓ¡ o ......
×ܼǼÊý:2244; ×ÜÒ³Êý:374; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [159] [160] [161] [162] 163 [164] [165] [166] [167] [168]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ