JavaScript½Å±¾ÓïÑÔÃèÊö£ºdocument Îĵ²¶ÔÏóÏê½â
×¢:Ò³ÃæÉÏÔªËØnameÊôÐÔºÍJavaScriptÒýÓõÄÃû³Æ±ØÐëÒ»Ö°üÀ¨´óСд
·ñÔò»áÌáʾÄãÒ»¸ö´íÎóÐÅÏ¢ "ÒýÓõÄÔªËØΪ¿Õ»òÕß²»ÊǶÔÏó"
---------------------------------------------------------------------
¶ÔÏóÊôÐÔ
document.title //ÉèÖÃÎĵµ±êÌâµÈ¼ÛÓÚHTMLµÄ<title>±êÇ©
document.bgColor //ÉèÖÃÒ³Ãæ±³¾°É«
document.fgColor //ÉèÖÃÇ°¾°É«(Îı¾ÑÕÉ«)
document.linkColor //δµã»÷¹ýµÄÁ´½ÓÑÕÉ«
document.alinkColor //¼¤»îÁ´½Ó(½¹µãÔÚ´ËÁ´½ÓÉÏ)µÄÑÕÉ«
document.vlinkColor //Òѵã»÷¹ýµÄÁ´½ÓÑÕÉ«
document.URL //ÉèÖÃURLÊôÐÔ´Ó¶øÔÚͬһ´°¿Ú´ò¿ªÁíÒ»ÍøÒ³
document.fileCreatedDate //Îļþ½¨Á¢ÈÕÆÚ£¬Ö»¶ÁÊôÐÔ
document.fileModifiedDate //ÎļþÐÞ¸ÄÈÕÆÚ£¬Ö»¶ÁÊôÐÔ
document.fileSize //Îļþ´óС£¬Ö»¶ÁÊôÐÔ
document.cookie //ÉèÖúͶÁ³öcookie
document.charset //ÉèÖÃ×Ö·û¼¯ ¼òÌåÖÐÎÄ:gb2312
---------------------------------------------------------------------
¶ÔÏó·½·¨
document.write() //¶¯Ì¬ÏòÒ³ÃæдÈëÄÚÈÝ
document.createElement(Tag) //´´½¨Ò»¸öhtml±êÇ©¶ÔÏó
document.getElementById(ID) //»ñµÃÖ¸¶¨IDÖµµÄ¶ÔÏó
document.getElementsByName(Name) //»ñµÃÖ¸¶¨NameÖµµÄ¶ÔÏó
---------------------------------------------------------------------
images¼¯ºÏ(Ò³ÃæÖеÄͼÏó)
a)ͨ¹ý¼¯ºÏÒýÓÃ
document.images  
Ïà¹ØÎĵµ£º
JavaScript µÄ³É¹¦ÈÃÈ˽ò½òÀÖµÀ£¬Îª Web ÍøÒ³±àд JavaScript ´úÂëÒѾÊÇËùÓÐ Web Éè¼ÆʦµÄ»ù±¾¹¦£¬ÕâÃÅÓÐȤµÄÓïÑÔÔ̲Ø×ÅÐí¶à²»ÎªÈËÊìÖªµÄ¶«Î÷£¬¼´Ê¹¶àÄêµÄ JavaScript ³ÌÐòÔ±£¬Ò²Î´ÄÜÍêÈ«³Ô͸¡£±¾ÎÄ´Ó7¸ö·½Ãæ½²Êö JavaScript ÖÐÄÇЩÄã²»ºÜÊìÖªµ«·Ç³£ÊµÓõļ¼ÇÉ¡£
¼òÂÔÓï¾ä
JavaScript ¿ÉÒÔʹÓüòÂÔÓï¾ä¿ìËÙ´´½¨¶ÔÏóºÍÊý ......
JavaScript µÄ³É¹¦ÈÃÈ˽ò½òÀÖµÀ£¬Îª Web ÍøÒ³±àд JavaScript ´úÂëÒѾÊÇËùÓÐ Web Éè¼ÆʦµÄ»ù±¾¹¦£¬ÕâÃÅÓÐȤµÄÓïÑÔÔ̲Ø×ÅÐí¶à²»ÎªÈËÊìÖªµÄ¶«Î÷£¬¼´Ê¹¶àÄêµÄ JavaScript ³ÌÐòÔ±£¬Ò²Î´ÄÜÍêÈ«³Ô͸¡£±¾ÎÄ´Ó7¸ö·½Ãæ½²Êö JavaScript ÖÐÄÇЩÄã²»ºÜÊìÖªµ«·Ç³£ÊµÓõļ¼ÇÉ¡£
¼òÂÔÓï¾ä
JavaScript ¿ÉÒÔʹÓüòÂÔÓï¾ä¿ìËÙ´´½¨¶ÔÏóºÍÊý× ......
»º´æϵͳÎÒÒÔÇ°ÔÚ²©¿Íд¹ýÁË£¬´ËºóÎÒ¶ÔjavascriptµÄÕÜѧ·¢ÉúºÜ´óµÄ¸Ä±ä¡£ÒÔÇ°ÊǾ¡Á¿±ÜÃâ¶ÔÔÐͽøÐÐÀ©Õ¹µÄ£¬µ«·´¹ýÀ´Ò»Ï룬ÓÐʲô¹Øϵ£¿³ý·ÇÊÇɵ×Ó»òÌرð²ËµÄÈ˲Żá»ìÓöà¸ö¿â£¬ÄÜ»ìÓÿâµÄÈËÒ²Ö»ÓиßÊÖ²ÅÄܱÜÃâÃüÃû³åÍ»µÄÞÏÞΡ£Ê®´óÀà¿âÖУ¬Ç°Ã漸¸ö¶¼ÊǶÔÔÐͽøÐзè¿ñÀ©Õ¹µÄ¡£Ïñmootools£¬´úÂë²»¶à£¬µ«ÄÜʵÔÚ±ÈjQuery¶àÐí¶à ......
function EnhancedImage(src,onLoaded){
var self = this;
this.src = src;
this.width = 0;
this.height = 0;
this.onLoaded = onLoaded;
this.loaded = false;
this.image = null;
this.load = function(){
if(this.loaded)
return;
this. ......