HTML

 

Embed or link this publication

Description

HTML learning book

Popular Pages


p. 1

team ling

[close]

p. 2

javascript demystified

[close]

p. 3

this page intentionally left blank.

[close]

p. 4

javascript demystified jim keogh mcgraw-hill/osborne new york chicago san francisco lisbon london madrid mexico city milan new delhi san juan seoul singapore sydney toronto

[close]

p. 5

copyright © 2005 by the mcgraw-hill companies all rights reserved manufactured in the united states of america except as permitted under the united states copyright act of 1976 no part of this publication may be reproduced or distributed in any form or by any means or stored in a database or retrieval system without the prior written permission of the publisher 0071471391 the material in this ebook also appears in the print version of this title 0-07-226134-x all trademarks are trademarks of their respective owners rather than put a trademark symbol after every occurrence of a trademarked name we use names in an editorial fashion only and to the benefit of the trademark owner with no intention of infringement of the trademark where such designations appear in this book they have been printed with initial caps mcgraw-hill ebooks are available at special quantity discounts to use as premiums and sales promotions or for use in corporate training programs for more information please contact george hoare special sales at george_hoare@mcgraw-hill.com or 212 904-4069 terms of use this is a copyrighted work and the mcgraw-hill companies inc mcgraw-hill and its licensors reserve all rights in and to the work use of this work is subject to these terms except as permitted under the copyright act of 1976 and the right to store and retrieve one copy of the work you may not decompile disassemble reverse engineer reproduce modify create derivative works based upon transmit distribute disseminate sell publish or sublicense the work or any part of it without mcgraw hill s prior consent you may use the work for your own noncommercial and personal use any other use of the work is strictly prohibited your right to use the work may be terminated if you fail to comply with these terms the work is provided as is mcgraw-hill and its licensors make no guarantees or warranties as to the accuracy adequacy or completeness of or results to be obtained from using the work including any information that can be accessed through the work via hyperlink or otherwise and expressly disclaim any warranty express or implied including but not limited to implied warranties of merchantability or fitness for a particular purpose mcgraw-hill and its licensors do not warrant or guarantee that the functions contained in the work will meet your requirements or that its operation will be uninterrupted or error free neither mcgraw-hill nor its licensors shall be liable to you or anyone else for any inaccuracy error or omission regardless of cause in the work or for any damages resulting therefrom mcgraw-hill has no responsibility for the content of any information accessed through the work under no circumstances shall mcgraw-hill and/or its licensors be liable for any indirect incidental special punitive consequential or similar damages that result from the use of or inability to use the work even if any of them has been advised of the possibility of such damages this limitation of liability shall apply to any claim or cause whatsoever whether such claim or cause arises in contract tort or otherwise doi 10.1036/007226134x

[close]

p. 6

this book is dedicated to anne sandy joanne amber-leigh christine and graff without whose help and support this book couldn t have been written.

[close]

p. 7

about the author jim keogh is on the faculty of columbia university and saint peter s college in jersey city new jersey he developed the e-commerce track at columbia university keogh has spent decades developing applications for major wall street corporations and is the author of more than 60 books including j2ee the complete reference java demystified asp.net demystified data structures demystified xml demystified and others in the demystified series.

[close]

p. 8

for more information about this title click here contents introduction chapter 1 an inside look at javascript answers to common questions about javascript javascript a limited-featured programming language getting down to javascript object name property methods the dot syntax the main event writing your first javascript old timers don t like javascript spicing up your javascript looking ahead quiz variables operators and expressions values and variables values variables xv 1 2 3 4 4 5 5 6 6 7 10 11 12 12 15 16 16 17 chapter 2 vii

[close]

p. 9

viii operators and expressions parts of an expression multiple operations types of operators looking ahead quiz chapter 3 condition statements if statement the if statement in action the if else statement the if else if statement other variations of the if statement nested if statement identifying a browser switch case statement loop statement the for loop the for in loop the while loop the do while loop continue looking ahead quiz javascript demystified 24 24 24 25 40 40 43 45 45 46 48 52 53 55 58 62 62 66 68 70 71 72 73 75 75 76 77 78 79 80 82 83 chapter 4 arrays what is an array declaring an array initializing an array defining array elements how many elements are in the array looping the array adding an array element sorting array elements

[close]

p. 10

contents ix making a new array from an existing array combining array elements into a string changing elements of the array looking ahead quiz 84 87 90 91 92 95 96 96 98 99 100 101 102 103 104 108 109 113 114 117 117 118 120 123 125 129 130 131 132 132 133 chapter 5 functions what is a function defining a function writing a function definition adding arguments the scope of variables and arguments calling a function calling a function without an argument calling a function with an argument calling a function from html functions calling another function returning values from a function looking ahead quiz strings why manipulate a string joining strings finding your way around a string dividing text copying a substring converting numbers and strings numbers to strings changing the case of the string strings and unicode looking ahead quiz chapter 6

[close]

p. 11

x chapter 7 forms and event handling building blocks of a form elements and javascript responding to form events form objects and elements time-saving shortcut changing attribute values dynamically changing elements based on a value selected by the user changing an option list dynamically evaluating check box selections manipulating elements before the form is submitted using intrinsic javascript functions changing labels dynamically disabling elements read-only elements looking ahead quiz javascript demystified 135 136 136 137 141 143 144 146 148 151 153 155 156 159 161 162 163 165 166 167 169 171 172 174 176 176 179 180 182 184 chapter 8 cookies cookie basics creating a cookie reading a cookie setting the expiration date deleting a cookie personalizing an experience using a cookie looking ahead quiz browser windows open the window please giving the new window focus placing the window into position on the screen chapter 9

[close]

p. 12

contents xi changing the contents of a window closing the window magically scrolling a web page opening multiple windows at once creating a web page in a new window looking ahead quiz 186 187 190 191 192 195 196 199 200 201 204 205 205 206 206 207 208 209 210 213 214 215 217 218 220 222 223 226 226 228 228 229 chapter 10 regular expressions what is a regular expression the language of a regular expression finding nonmatching characters entering a range of characters matching digits and nondigits matching punctuation and symbols matching words replace text using a regular expression replacing like values return the matched characters the telephone number match regular expression object properties looking ahead quiz javascript and frames you ve been framed invisible borders calling a child window s javascript function changing the content of a child window changing the focus of a child window writing to a child window from a javascript accessing elements of another child window looking ahead quiz chapter 11

[close]

p. 13

xii chapter 12 rollovers setting the stage creating a rollover text rollovers multiple actions for a rollover more efficient rollovers looking ahead quiz javascript demystified 231 232 234 237 239 243 245 245 249 250 250 253 256 268 268 271 273 275 276 279 280 280 283 286 288 288 291 292 294 296 chapter 13 getting your message across the status bar banners and slideshows making magic using the status bar building a static message changing the message using rollovers moving the message along the status bar banner advertisements loading and displaying banner advertisements linking banner advertisements to urls creating a slideshow looking ahead quiz protecting your web page hiding your code disabling the right mouse button hiding your javascript concealing your e-mail address looking ahead quiz menus creating a pull-down menu dynamically changing a menu validating menu selections chapter 14 chapter 15

[close]

p. 14

contents xiii creating dhtml menus floating menu chain select menu tab menu popup menu highlighted menu folding tree menu microsoft outlook bar style menu context menu scrollable menu side bar menu slide-in menu looking ahead quiz 298 299 299 300 300 301 301 302 303 303 304 304 305 306 309 310 310 311 313 313 316 319 319 323 325 325 325 326 327 329 333 349 361 chapter 16 dhtml what is dhtml learning dhtml cascading style sheets using dhtml code generic drag lcd clock all watermark background image tabbed document viewer using iframe daily iframe content cross-browser marquee popup calendar drop-in content box ad box quiz appendix final exam answers to quizzes and final exam index

[close]

p. 15

this page intentionally left blank.

[close]

Comments

no comments yet

YOUBLISHER
About
What Others Say
Sitemap
Impressum

PUBLISHERS
Login
Signup
Tutorials
FAQ
Support

BUSINESS
Overview
Advertising
Support

DEVELOPERS
API

LEGAL
Report a Copyright Violation
Copyright FAQ
Terms of Use
Privacy Policy