1. Trang chủ
  2. » Vật lý

JavaScript Programmer's Reference

7 6 0

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

THÔNG TIN TÀI LIỆU

Thông tin cơ bản

Định dạng
Số trang 7
Dung lượng 589,34 KB

Nội dung

y, Anchor object* y, Anchor.y y, Area object* y, Area.y y, Event object* y, Event.y y, Image object* y, Image.y y, Layer object* y, Layer.y y, Location object* y, Location.y y, Url objec[r]

(1)

Build your Web Development career with Wrox

Programmer’s Reference

P R O G R A M M E R T O P R O G R A M M E R T M

JavaScript

JavaScript Cliff Wootton

(2)

JavaScript Programmer's Reference

Cliff Wootton

(3)

JavaScript Programmer's Reference

© 2001 Wrox Press

All rights reserved No part of this book may be reproduced, stored in a retrieval system or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of

brief quotations embodied in critical articles or reviews

The author and publisher have made every effort in the preparation of this book to ensure the accuracy of the information However, the information contained in this book is sold without warranty, either express or implied Neither the authors, Wrox Press nor its dealers or distributors will be held liable for

any damages caused or alleged to be caused either directly or indirectly by this book

Published by Wrox Press Ltd,

Arden House, 1102 Warwick Road, Acocks Green, Birmingham, B27 6BH, UK

(4)

Trademark Acknowledgements

Wrox has endeavored to provide trademark information about all the companies and products mentioned in this book by the appropriate use of capitals However, Wrox cannot guarantee the accuracy of this information

Credits

Author Technical Reviewers

Cliff Wootton Alex Abacus Jonny Axelsson

Category Manager Chong Chang Dave Galloway Andrew Van Heusen

Martin Honnen

Technical Editors Ron Hornbaker Timothy Briggs Kenneth Lo Howard Davies Jim Macintosh Phillip Jackson Jon Stephens

Amanda Kay Peter Torr

Simon Mackie Chris Ullman Chris Mills Paul Vudmaska Peter Morgan Paul Wilton

Project Manager Figures

Chandima Nethisinghe Shabnam Hussain

Production Coordinator Cover

Tom Bartlett Shelley Frazier

Additional Layout Proofreaders

Simon Hardware Ian Allen

Pippa Wonson Christopher Smith Agnes Wiggers

e-Book Production

Tom Bartlett Index

Andrew Criddle

Production Manager

(5)

About the Author

Cliff Wootton lives in the south of England and works on multimedia systems and content management software for large data driven web sites Currently he is developing interactive TV systems for BBC News Online in London (http://www.bbc.co.uk/news) and previously worked for other commercial broadcasters on their web sites Before that he spent several years developing geophysical software and drawing maps with computers for oil companies

Cliff is married with three daughters and a growing collection of bass guitars

Acknowledgements

It's hard to believe I've actually reached the stage of writing the introductory pages to this book It's been a long process and I don't think I would have reached this point without the help of Tim Briggs at Wrox, who very gently urged me onwards and gave me encouragement when I needed it Tim's contribution to this project was vital to its success because he developed the process which converted my DOCBOOK output into something the Wrox editors could turn into a book Tim also prepared the CD-ROM content from the same XML files; truly amazing!

Thanks also to all the other folks at Wrox who have helped, organised, checked and collated my material to present it in the form you now see it Grateful thanks to my reviewers, who in a very short time provided me with some useful guidance and support; in particular Jon Stephens and Martin Honnen, who also provided some amazingly clever example code fragments for use as examples

There are many other people who contributed without realising it In particular Nick Cohen (formerly of the BBC and now at Turner Broadcasting) who provided some helpful insights into TV set-top-box workings Also Matt Karas and Emyr Tomos (both ex-BBC, now at Talkcast) who threw down the gauntlet of several interesting challenges for me to implement on the BBC News Online web site I also wouldn't be sitting here if it weren't for Bruce Morris at Carlton Online It was through the happy chance of an article I wrote for Bruce's Web Developer's Journal (WDJ) web site that led to Wrox contacting me and the BBC inviting me to some JavaScript work What an amazing thing the web is

(6)

Property

2621

Property (continued)

y, Anchor object* y, Anchor.y y, Area object* y, Area.y y, Event object* y, Event.y y, Image object* y, Image.y y, Layer object* y, Layer.y y, Location object* y, Location.y y, Url object* y, Url.y

zIndex, JSSTag object* zIndex, Layer object* zIndex, Layer.zIndex zIndex, style object (2)* zIndex, style.zIndex zoom, style object (2)* zoom, style.zoom Property attribute DontDelete* DontEnumerate* ReadOnly* Property/internal Array.Class* Boolean.Class* Class* Construct* Date.Class* Function.Class* Image.Class* Number.Class* Object.Class* String.Class* Property/static

$n (Numbered argument) $n, RegExp.$n* input, RegExp.input* lastMatch, RegExp.lastMatch* lastParent, RegExp.lastParent* leftContext, RegExp.leftContext* multiline, RegExp.multiline* rightContext, RegExp.rightContext* RegExp["$'"] RegExp["$*"] RegExp["$`"] RegExp["$+"] Request method about: URL* clsid: URL* file: URL* ftp: URL* http: URL* https: URL*

JavaScript interactive URL* javascript: URL* livescript: URL mailbox: URL* mailto: URL mocha: URL nethelp: URL* news: URL* snews: URL* telnet: URL* view-source: URL* wysiwyg:* Reserved word abstract boolean* byte* char* class* const* debugger double* enum* extends final float* goto* implements int* interface long* native package private protected public short* static super synchronized throws transient volatile* Security privilege UniversalBrowserAccess* UniversalBrowserRead* UniversalBrowserWrite* UniversalFileRead* UniversalPreferencesRead* UniversalPreferencesWrite* UniversalSendMail* Security related AuthentiCode* Cryptoki* Data-tainting* Requesting privileges* Same origin* Signed scripts*

Selector (see also Label)

else if( ) if( ) else * if( ) *

(7)

Web browser 2622 Simulated functionality isAlnum() isAlpha() isCtrl() isDigit() isElementProperty() isGraph() isLower() isObjectEqual() isODigit() isPrint() isPunct() isSpace() isUpper() isXDigit() Math.cosec() Math.cosh() Math.cot() Math.sec() Math.sinh()

Special file (see also File extension)

config.jsc preferences.js prefs.js proxy.pac*

Standard (see also Background, Definition, Overview)

ASCII* ATVEF* CSS level 1* CSS level 2* CSS* CSS-P* DHTML* DOM - Level 0* DOM - Level 1* DOM - Level 2* DOM - Level 3* DOM Events* DOM* DVB-MHP* ECMA*

ECMAScript - edition 2* ECMAScript - edition 3* ECMAScript version* HTML* IEEE 754* ISO 3166* ISO 639 JavaScript version* JScript version* PDF* Unicode*

Universal coordinated time* UTC WAP* WML* WScript* XML* Statement

Block { } break* continue*

Empty statement (;)* export*

finally * import* return* throw*

try catch finally* with *

Time calculation

Date from time Date number Day from year Day number Day within year Days in year In leap year MakeDate() MakeDay() MakeTime() Month from time Month number Time from year Time value Time within day TimeClip() Week day Year from time Year number Type Boolean* null* Number* Object* String* undefined type*

Useful tip (see also Advice, Pitfall)

Determining the object type Image animation

(http://www.bbc.co.uk/news

Ngày đăng: 09/03/2021, 04:52