1. Trang chủ
  2. » Công Nghệ Thông Tin

JavaScript in 10 Simple Steps or Less 2007 phần 10 doc

62 319 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 62
Dung lượng 726,37 KB

Nội dung

concat - = _ + ] { } join - = _ + ] { } pop _ + ] { } push _ + ] { } reverse - = _ + ] { } shift _ + ] { } slice - = _ + ] { } sort - = _ + ] { } slice - = _ + ] { } toLocaleString - = _ + toSource ] { } toString - = _ + ] { } unshift _ + ] { } valueOf - = _ + ] { } Boolean Object - = _ + ] { } constructor - = _ + ] { } prototype - = _ + ] { } toSource ] { } toString - = _ + ] { } valueOf - = _ + ] { } Button Object - = _ + ] { } form - = _ + ] { } name - = _ + ] { } type - = _ + ] { } value - = _ + ] { } blur - = _ + ] { } click - = _ + ] { } focus - = _ + ] { } handleEvent ] JavaScript Quick Reference 561 13 542419 AppA.qxd 11/19/03 10:24 AM Page 561 Checkbox Object - = _ + ] { } checked - = _ + ] { } defaultChecked - = _ + ] { } form - = _ + ] { } name - = _ + ] { } type - = _ + ] { } value - = _ + ] { } blur - = _ + ] { } click - = _ + ] { } focus - = _ + ] { } handleEvent ] cssRule Object { } cssText { } parentStyleSheet { } selectorText { } style { } Debug Object - = _ + write = _ + writeln = _ + Date Object - = _ + ] { } constructor - = _ + ] { } prototype - = _ + ] { } getDate - = _ + ] { } getDay - = _ + ] { } getFullYear - = _ + ] { } getHours - = _ + ] { } getMilliseconds - = _ + ] { } getMinutes - = _ + ] { } getMonth - = _ + ] { } getSeconds - = _ + ] { } 562 Appendix A 13 542419 AppA.qxd 11/19/03 10:24 AM Page 562 getTime - = _ + ] { } getTimezoneOffset - = _ + ] { } getUTCDate - = _ + ] { } getUTCDay - = _ + ] { } getUTCFullYear - = _ + ] { } getUTCHours - = _ + ] { } getUTCMilliseconds - = _ + ] { } getUTCMinutes - = _ + ] { } getUTCMonth - = _ + ] { } getUTCSeconds - = _ + ] { } getVarDate - = _ + getYear - = _ + ] { } parse - = _ + ] { } setDate - = _ + ] { } setFullYear - = _ + ] { } setHours - = _ + ] { } setMilliseconds - = _ + ] { } setMinutes - = _ + ] { } setMonth - = _ + ] { } setSeconds - = _ + ] { } setTime - = _ + ] { } setUTCDate - = _ + ] { } setUTCFullYear - = _ + ] { } setUTCHours - = _ + ] { } setUTCMilliseconds - = _ + ] { } setUTCMinutes - = _ + ] { } setUTCMonth - = _ + ] { } setUTCSeconds - = _ + ] { } setYear - = _ + ] { } toDateString _ + toGMTString - = _ + ] { } toLocaleDateString - = _ + { } JavaScript Quick Reference 563 13 542419 AppA.qxd 11/19/03 10:24 AM Page 563 toLocaleString - = _ + ] { } toLocaleTimeString - = _ + { } toSource ] { } toString - = _ + ] { } toTimeString _ + toUTCString - = _ + ] { } UTC - = _ + ] { } valueOf - = _ + ] { } document Object - = _ + ] { } activeElement - = _ + attributes = _ + { } alinkColor - = _ + ] { } all - = _ + anchors - = _ + ] { } applets - = _ + ] { } areas - = _ + bgColor - = _ + ] { } body - = _ + { } charset - = _ + characterSet { } childNodes = _ + { } children - = _ + compatMode { } classes ] cookie - = _ + ] { } contentWindow { } defaultCharset - = _ + documentElement = _ + { } doctype { } domain - = _ + ] { } embeds - = _ + ] { } 564 Appendix A 13 542419 AppA.qxd 11/19/03 10:24 AM Page 564 expando - = _ + fgColor - = _ + ] { } firstChild = _ + { } forms - = _ + ] { } height ] { } ids ] images - = _ + ] { } implementation { } lastChild = _ + { } lastModified - = _ + ] { } layers ] linkColor - = _ + ] { } links - = _ + ] { } location - = _ + ] { } namespaceURI = _ + { } nextSibling = _ + { } nodeName = _ + { } nodeType = _ + { } nodeValue { } ownerDocument { } parentNode = _ + { } plugins - = _ + ] { } previousSibling = _ + { } referrer - = _ + ] { } scripts - = _ + stylesheets - = _ + { } tags ] title - = _ + ] { } URL - = _ + ] { } vlinkColor - = _ + ] { } width - = _ + ] { } clear - = _ + ] { } JavaScript Quick Reference 565 13 542419 AppA.qxd 11/19/03 10:24 AM Page 565 close - = _ + ] { } createAttribute { } createDocumentFragment { } createElement - = _ + { } createStylesheet - = _ + createTextNode = _ + { } captureEvents ] contextual ] elementFromPoint - = _ + focus - = _ + { } getElementById = _ + { } getElementsByName = _ + { } getElementsByTagName = _ + { } getSelection ] handleEvent ] open - = _ + ] { } releaseEvents ] routeEvent ] write - = _ + ] { } writeln - = _ + ] { } Enumerator Object - = _ + attends - = _ + item - = _ + moveFirst - = _ + moveNext - = _ + Error Object = _ + description = _ + message = _ + name _ + number = _ + 566 Appendix A 13 542419 AppA.qxd 11/19/03 10:24 AM Page 566 event Object ] { } altKey { } bubbles { } cancelBubble { } cancelable { } charCode { } clientX { } clientY { } ctrlKey { } currentTarget { } data ] detail { } eventPhase { } height ] isChar { } keyCode { } layerX ] { } layerY ] { } metaKey { } modifiers ] pageX ] { } pageY ] { } relatedTarget { } screenX ] { } screenY ] { } shiftKey { } target ] { } timeStamp { } type ] { } view { } width ] which ] JavaScript Quick Reference 567 13 542419 AppA.qxd 11/19/03 10:24 AM Page 567 x ] y ] initEvent { } initMouseEvent { } initUIEvent { } preventDefault { } stopPropagation { } FileUpload Object - = _ + ] { } form - = _ + ] { } name - = _ + ] { } type - = _ + ] { } value - = _ + ] { } blur - = _ + ] { } focus - = _ + ] { } handleEvent ] select - = _ + ] { } Form Object - = _ + ] { } action - = _ + ] { } acceptCharset { } elements - = _ + ] { } encoding - = _ + ] { } enctype - = _ + { } length - = _ + ] { } method - = _ + ] { } name - = _ + ] { } target - = _ + ] { } handleEvent ] reset - = _ + ] { } submit - = _ + ] { } 568 Appendix A 13 542419 AppA.qxd 11/19/03 10:24 AM Page 568 FrameSet Object { } cols { } rows { } Frame Object { } contentDocument { } contentWindow { } frameBorder { } longDesc { } marginHeight { } marginWidth { } name ] { } noResize { } scrolling { } src { } Function Object - = _ + ] { } arguments - = _ + ] { } arguments.callee ] { } arguments.caller ] { } arguments.length ] { } callee _ + caller - = _ + arity ] { } constructor - = _ + ] { } length - = _ + ] { } prototype - = _ + ] { } apply _ + ] { } call _ + ] { } toSource ] { } toString - = _ + ] { } valueOf - = _ + ] { } JavaScript Quick Reference 569 13 542419 AppA.qxd 11/19/03 10:24 AM Page 569 Global Object = _ + Infinity = _ + NaN = _ + undefined _ + decodeURI _ + decodeURIComponent _ + encodeURI _ + encodeURIComponent _ + escape = _ + eval = _ + isFinite = _ + isNaN = _ + parseFloat = _ + parseInt = _ + unescape = _ + Hidden Object - _ + ] { } form - = _ + ] { } maxLength = _ + { } name - = _ + ] { } readOnly = _ + { } size = _ + { } type - = _ + ] { } value - = _ + ] { } History Object - = _ + ] { } current ] length - = _ + ] { } next ] previous ] back - = _ + ] { } forward - = _ + ] { } 570 Appendix A 13 542419 AppA.qxd 11/19/03 10:24 AM Page 570 [...]... { { { { { } } } } } } } JavaScript Quick Reference marginLeft marginRight marginTop markerOffset marks maxHeight maxWidth media minHeight minWidth MozBinding MozOpacity orphans outline outlineColor outlineStyle outlineWidth overflow padding paddingBottom paddingLeft paddingRight paddingTop page pageBreakAfter pageBreakBefore pageBreakInside parentRule pause pauseAfter pauseBefore pitch 585 { { { { {... borderBottomColor borderBottomStyle borderBottomWidth borderCollapse borderColor borderLeft borderLeftColor borderLeftStyle borderLeftWidth borderRight borderRightColor borderRightStyle borderRightWidth borderSpacing borderStyle borderTop borderTopColor borderTopStyle borderTopWidth borderWidth bottom captionSide clear clip color 583 { { = { - = _ = _ = _ = _ = _ = _ = _ = _ = _ = _ } = _ = _ = _ = _ = _ = _... { } indexOf align background backgroundAttachment backgroundColor { { { { } } } } { { { { { { { { { { { } } } } } } } } } } } { } { } { } { } - = _ + { } - = _ + { } - = _ + { } JavaScript Quick Reference backgroundImage backgroundPosition backgroundPositionX backgroundPositionY backgroundRepeat border borderBottom borderBottomColor borderBottomStyle borderBottomWidth borderCollapse borderColor borderLeft... + { } 586 pitchRange playDuring pixelHeight pixelLeft pixelTop pixelWidth posHeight position posLeft posTop posWidth quotes richness right size speak speakHeader speakNumeral speakPunctuation speechRate stress styleFloat tableLayout textAlign textDecoration textDecorationBlink textDecorationLineThrough textDecorationNone textDecorationOverline textDecorationUnderline textIndent textShadow Appendix A... following icons are used to indicate browser compatibility: Icon [ ] { } = _ + Browser Netscape 3 Netscape 4 Netscape 6 Netscape 7 and above Microsoft Internet Explorer 4 Microsoft Internet Explorer 5 Microsoft Internet Explorer 5.5 Microsoft Internet Explorer 6 By no means is this a comprehensive reference but instead provides a quick reference to the properties that are most commonly used in CSS... no-repeat - = _ + ] { } border property - = _ + ] { } border-bottom property - = _ + { } border-bottom-width property - = _ + { } medium - = _ + { } thick - = _ + { } thin - = _ + { } border-color property - = _ + ] { } border-left property - = _ + { } border-left-width property - = _ + ] { } medium - = _ + ] { } thick - = _ + ] { } thin - = _ + ] { } border-right property - = _ + { } border-right-width property... toString { } RegExp Object - = _ + ] { } constructor ] { } global ] { } ignoreCase ] { } index - = _ + input - = _ + ] lastIndex - = _ + ] { } lastMatch _ + ] lastParen _ + ] leftContext _ + ] multiline ] { } prototype ] { } rightContext _ + ] source ] { } compile ] exec ] { } test ] { } toSource ] { } toString ] { } valueOf ] Regular Expression Object - = _ + global _ + ignoreCase _ + multiline _.. .JavaScript Quick Reference - = _ + ] { Iframe Object { } align { } contentDocument { } contentWindow { } frameBorder { } longDesc { } marginHeight { } marginWidth { } name ] { } noResize { } scrolling { } src { } Image Object - = _ + align - = _ + { } alt - = _ + { } border - = _ + ] { complete - = _ + height - = _ + ] { href - = _ +... { } platform - = _ + ] { } plugins - = _ + ] { } product { } productSub { } systemLanguage - = _ + userAgent - = _ + ] { } userLanguage - = _ + userProfile - = _ + vendor { } vendorSub { } javaEnabled - = _ + ] { } plugins.refresh ] preference ] savePreferences ] 575 576 - = _ + ] { } Number Object - = _ + ] { } MAX_VALUE - = _ + ] { } MIN_VALUE - = _ + ] { } NaN - = _ + ] { } NEGATIVE_INFINITY - =... background bgColor below ] clip.bottom clip.height clip.left document name pageX pageY siblingAbove siblingBelow top visibility window x y zIndex ] ] ] ] ] handleEvent ] ] ] moveAbove moveBelow moveBy ] ] ] ] ] captureEvents load ] ] ] ] ] ] parentLayer src ] ] clip.width left ] ] ] clip.right clip.top ] ] ] ] ] JavaScript Quick Reference moveTo ] ] releaseEvents ] resizeBy ] resizeTo ] routeEvent ] Link Object . 11/19/03 10: 24 AM Page 568 FrameSet Object { } cols { } rows { } Frame Object { } contentDocument { } contentWindow { } frameBorder { } longDesc { } marginHeight { } marginWidth { } name ] { } noResize. } Iframe Object { } align { } contentDocument { } contentWindow { } frameBorder { } longDesc { } marginHeight { } marginWidth { } name ] { } noResize { } scrolling { } src { } Image Object - = _. } toSource ] { } toString - = _ + ] { } valueOf - = _ + ] { } JavaScript Quick Reference 569 13 542419 AppA.qxd 11/19/03 10: 24 AM Page 569 Global Object = _ + Infinity = _ + NaN = _ + undefined _ + decodeURI

Ngày đăng: 12/08/2014, 19:21