- Shopping Bag ( 0 items )
|Ch. 2||Maths and Numbers||23|
|Ch. 3||Strings and Regular Expressions||69|
|Ch. 4||Arrays and Objects||121|
|Ch. 5||Location and Links||175|
|Ch. 6||Windows and Frames||239|
|Ch. 7||Date and Time||305|
|Ch. 11||Dynamic HTML||531|
|Ch. 14||Fun Stuff||659|
Chapter 2-Maths and Numbers
Chapter 3-Strings and Regular Expressions
This chapter shows how to find and replace strings within other strings, along with a practical demonstration with a copyright boilerplate. It also shows how to create scrolling text links, how to manipulate a contacts list, and how to manipulate strings to apply Gourad shading. This chapter describes how to parse text strings, and finally how to use Regular Expressions to validate form data input.
Chapter 4-Arrays and Objects
This chapter shows how to hold data as objects and how to hold objects within arrays, to show how to visit one of many web sites in an automated tour. It also explores how to search data held in a database, along with a multiple-choice test, and finally how to sort an array of objects.
Chapter 5-Location and Links
Chapter 6-Windows and Frames
This chapter shows how to target the entries in a select form list to various windows in a frame set. It describes how to read the entries in a directory listing and describes a tool to generate your own popup windows. The use of popup windows in a dictionary lookup is also illustrated, along with the use of frames to hold data between page views to provide a family tree application. The chapter addresses how popup windows can be used to debug your own applications, followed by a popup date selector application, and finally code to stop other sites framing your own pages, while at the same time provide a means to ensure your pages are correctly framed within their own frame set.
Chapter 7-Date and Time
This chapter explores how to work with and manipulate the current date and time. It shows how to extract the day of the week for any date, how to validate an input date, and display a different page based on the time of day. It describes how to show a yearly calendar, how to count forwards and backwards to different dates, how to calculate an age in years, months and days, and shows how to work with the zodiac and Chinese calendars. The chapter includes applications to show events, religious celebrations and birthdays associated with a date, and finally shows how to work out the current time anywhere around the world.
This chapter covers the ubiquitous highlighting of images, and a fast implementation of image rollovers, with a variation that fades the images in and out. It demonstrates how to use image maps with applications that show an image slide show, and bar chart generation. It also shows how to count the number of images downloaded, popup windows to hold images, including an image counter, random banner adverts, and an image toolbar.
This chapter addresses general-purpose cookies functions for saving, retrieving and deleting cookies, and shows how to combine cookies with HTML to mark items as new. Intelligent cookies that avoid continual writing of cookies when disabled within the browser are also covered. The chapter's cookie tracker application demonstrates how cookies can be used to track a visitor's movement around a web site, and the personal calendar application shows how cookies can be used to store personalization information.
The second part of the book builds on the first part to generate far more complex applications, and at the same time build a cross-browser code library to support Dynamic HTML techniques in both Netscape Navigator (versions 4 and 6) and Internet Explorer (versions 4 and 5). Chapters in this section include:
Chapter 11-Dynamic HTML
This chapter describes the Document Object Model, including those available in Internet Explorer 5 and Netscape Navigator 6. Builds a crossbrowser compatible library for manipulating the DOM. It demonstrates the use of a cross-browser library to collapse content, dynamically change the cascading style sheet used to display the page, display tool tips that float above the document, handle multi-dialog forms, and toolbar menus with drop-down content. The library is also used to automatically generate a table of contents from the heading tags within a document, to slide tabbed content from the sides of the document, along with a hierarchical menu structure that can be opened and closed to show different leafs within a tree structure. The final application demonstrates a dynamic advert that interacts with the user.
Chapter 14-Fun Stuff
All the example code, including the applications, is included on the accompanying CD-ROM, as denoted by the CD-ROM icon. There should be no need to type in the code by hand. If, however, you decide to do this you should first check the code on the CD-ROM before reporting any problems with your code.
If you do have problems with the code on the CD-ROM then you can report these along with any errors or omissions in the book, or any suggestions for improvements in future editions of the book, to Martin Webb at email@example.com. Any updates or errata found after the book has gone to print will be detailed online at the supporting web page at http://www.irt.org/instant/.