| |
| |
Acknowledgments | |
| |
| |
Introduction | |
| |
| |
| |
HTML Basics | |
| |
| |
Downloading and Installing the Personal Web Server | |
| |
| |
Managing the Personal Web Server and Publishing Your Web Pages | |
| |
| |
Describing Web Page Contents with a Title | |
| |
| |
Identifying Web Documents Using the Document Type Definition | |
| |
| |
Inserting Comments into a Web Document | |
| |
| |
Specifying the Typeface for Web Page Text | |
| |
| |
Controlling the Flow of Text with Paragraph and Line Break Tags | |
| |
| |
Changing the Size of Text Using Heading Level Tags and the Font Tag size Attribute | |
| |
| |
Changing the Color of Text in an HTML Document | |
| |
| |
Adding Graphics to a Web Page Using a Basic [left angle bracket]img[right angle bracket] Tag | |
| |
| |
Changing the Alignment of Text and Graphics | |
| |
| |
Adding a Hypertext Link to a Web Page | |
| |
| |
Enhancing Individual Letters and Words Using Character Formatting Tags | |
| |
| |
Using Symbols and Special Characters in an HTML Document | |
| |
| |
Using Horizontal Rules to Organize Web Content | |
| |
| |
Using Blockquote Tags to Control Left and Right Text Margins | |
| |
| |
Creating Ordered and Unordered Lists | |
| |
| |
Creating Nested Lists | |
| |
| |
Creating Definition Listings | |
| |
| |
Using Preformatted Text Tags to Control the Display of Web Content | |
| |
| |
Displaying a Navigation Menu Within a Web Page Frame | |
| |
| |
Displaying Multiple Web Pages Onscreen at the Same Time | |
| |
| |
| |
HTML Tables | |
| |
| |
Creating a Table with Cells that Span Multiple Columns or Multiple Rows | |
| |
| |
Working with Table and Cell Border Widths | |
| |
| |
Working with Table and Cell Border Colors | |
| |
| |
Working with Background Images and Colors | |
| |
| |
Determining a Color Attribute's Value | |
| |
| |
Working with Cell Padding and Cell Spacing | |
| |
| |
Setting Table Dimensions Using Relative or Absolute Values | |
| |
| |
Setting Cell Dimensions Using Relative or Absolute Values | |
| |
| |
Aligning Cell Content Horizontally and Vertically | |
| |
| |
Aligning a Table on a Web Page | |
| |
| |
Controlling the Width and Height of a Cell by Inserting a Transparent GIF | |
| |
| |
Wrapping Text Around an Image | |
| |
| |
Displaying a Gallery of Thumbnails Within a Table | |
| |
| |
Creating Bullets and Lists with Tables and Graphics | |
| |
| |
Creating a Navigation Sidebar Using a Table | |
| |
| |
Adding Images and Links to Table Cells | |
| |
| |
Nesting Tables to Control Borders on a Web Page | |
| |
| |
Approximating an Image Map by Placing Pieces of an Image Within a Table | |
| |
| |
Slicing a Graphic Image into Table Cells to Create a Quick-Loading Web Graphic | |
| |
| |
Reducing the Amount of Time a Web Browser Spends Drawing a Table | |
| |
| |
Simulating Web Page Frames Using a Table | |
| |
| |
Focusing the Viewer's Attention with Cell Background Colors | |
| |
| |
Aligning Web Page Content Visually with Visible Table Borders | |
| |
| |
Controlling Gutter Size and Margin Width of Text on a Web Page | |
| |
| |
| |
HTML Forms | |
| |
| |
Creating a Single-Line Input Field on a Form | |
| |
| |
Creating a Multiline Input Field on a Form | |
| |
| |
Validating Text Element Data Prior to Submitting Form Results | |
| |
| |
Placing Check Boxes on a Form | |
| |
| |
Placing Radio Buttons on a Form | |
| |
| |
Validating Radio Button Group Selections Prior to Submitting Form Results | |
| |
| |
Placing a Drop-Down List (Selection Menu) on a Form | |
| |
| |
Verifying the Visitor Has Made a Selection List Choice Prior to Submitting Form Results | |
| |
| |
Changing the Items Available on a Selection List Based on Visitor Supplied Information | |
| |
| |
Sending All Selection List Values to the Web Server Through a Hidden Field | |
| |
| |
Adding a Reset Button to a Form | |
| |
| |
Preventing a Visitor from Clearing Form Elements Accidentally | |
| |
| |
Adding a Submit Button to a Form | |
| |
| |
Replacing the Standard Submit and Reset Buttons on a Form with Other Graphics Images | |
| |
| |
Sending Form Results by E-Mail Without a CGI Script | |
| |
| |
Controlling the Layout of Form Elements and Text with HTML Tables | |
| |
| |
Creating a Shortcut Key for Form Navigation with a [left angle bracket]label[right angle bracket] Tag | |
| |
| |
Instructing the Web Browser to Execute a Form Validation Function with the onClick Attribute | |
| |
| |
Passing Values to the Web Server Through Hidden Fields | |
| |
| |
Hiding Visitor Input from View Within a Password Element | |
| |
| |
Adding a Generic Button Object to a Form | |
| |
| |
Enabling and Disabling Form Elements on-the-Fly | |
| |
| |
| |
Cascading Style Sheets (CSS) | |
| |
| |
Applying Multiple CSS Rules to a Single Selector | |
| |
| |
Selecting a Typeface with the font-family Property | |
| |
| |
Specifying the Size of Text with the font-size Property | |
| |
| |
Creating Overlapping Text | |
| |
| |
Aligning Web Page Text | |
| |
| |
Controlling Margins and Line Height | |
| |
| |
Displaying Text Within Columns | |
| |
| |
Working with Borders | |
| |
| |
Indenting Paragraphs and Controlling Letter, Word, and Line Spacing | |
| |
| |
Offsetting Text with Initial Caps | |
| |
| |
Customizing the Appearance of Hyperlinks | |
| |
| |
Creating a Drop-Shadow Effect | |
| |
| |
Applying a Border Graphic | |
| |
| |
Positioning Background Images and Watermarks | |
| |
| |
Floating Images and Text | |
| |
| |
Customizing the Appearance of Lists | |
| |
| |
Creating Text and Image Effects with Filters | |
| |
| |
Aligning Labels with Form Elements and Adding Color to Forms | |
| |
| |
Displaying a Gallery of Thumbnails with Captions | |
| |
| |
Controlling the Cursor | |
| |
| |
Layering Web Page Elements | |
| |
| |
Sending Your Style Sheet Through a Validator | |
| |
| |
| |
XHTML and Emerging Trends | |
| |
| |
Converting HTML to XHTML Using HTML Tidy | |
| |
| |
Selecting the Correct DOCTYPE for Your Web Page | |
| |
| |
Validating Your Web Page with an XHTML Validator | |
| |
| |
Setting the Text Size on an XHTML Web Page with Keywords | |
| |
| |
Grouping an XHTML Form's Selection List Items with the [left angle bracket]optgroup[right angle bracket] Tag | |
| |
| |
Adding Color to XHTML Tables with Cascading Style Sheet Rules | |
| |
| |
Embedding Fonts Within an XHTML Web Page with CSS Rules | |
| |
| |
Inserting on XHTML Page Within Another with an Inline Frame | |
| |
| |
Updating Multiple XHTML Page Inline Frames at Once | |
| |
| |
Changing XHTML Page Appearance Based on Media Type | |
| |
| |
Controlling the Way the Web Browser Prints an XHTML Web Page | |
| |
| |
| |
Graphics | |
| |
| |
Working with Cross-Platform Issues When Creating Graphics Images for the Web | |
| |
| |
Specifying Image Dimensions Within an Image Tag | |
| |
| |
Working with the alt Attribute and Text-Only Viewers | |
| |
| |
Creating a Tool Tip by Inserting a title Attribute in an Image Tag | |
| |
| |
Compressing Photographs into a JPEG File | |
| |
| |
Saving Clip Art and Text to a GIF-Formatted File | |
| |
| |
Making Images Appear to Load Faster | |
| |
| |
Working with the PNG-8 and PNG-24 File Formats | |
| |
| |
Converting Graphics into Web Images with Image-Editing Programs | |
| |
| |
Creating Web-Friendly Graphics Images on Your Scanner | |
| |
| |
Creating Colorful Horizontal Rules | |
| |
| |
Retrieving a Fast-Loading "Teaser" Image with the lowsrc Attribute | |
| |
| |
Ensuring Accurate Color Presentation with the Web-Safe Color Palette | |
| |
| |
Creating Graphical Hyperlink Anchors | |
| |
| |
Creating Tiled Backgrounds from Graphics Images | |
| |
| |
Creating Transparency in a GIF Image | |
| |
| |
Retrieving Full-Size Images after Clicking on Thumbnails | |
| |
| |
Preloading and Caching Images Behind the Scenes | |
| |
| |
Expanding the Web-Safe Color Palette with Dithering Techniques | |
| |
| |
Smoothing the Edges of Text Converted into a Graphic Through Anti-Aliasing | |
| |
| |
| |
Animation, Sound, and Video | |
| |
| |
Creating a GIF Animation from Scratch | |
| |
| |
Controlling GIF Animation Th. ough Internal Settings | |
| |
| |
Creating a Banner Ad Using GIF Animation | |
| |
| |
Creating Smooth Transitions Between GIF Animation Frames Using Tweening | |
| |
| |
Incorporating a Completed Flash Splash Screen into a Web Site | |
| |
| |
Creating a Flash Movie from Scratch | |
| |
| |
Building Text-Based Animations Using FlaX | |
| |
| |
Broadcasting Streaming Audio and Video | |
| |
| |
Creating Your Own Streaming Media | |
| |
| |
Creating a Page that Features a Web Cam | |
| |
| |
Integrating Video and Audio into a Web Site Using SMIL (Smile) | |
| |
| |
| |
JavaScript | |
| |
| |
Handling Older Browsers that Do Not Support Scripts | |
| |
| |
Storing Multiple Values in One Variable by Using JavaScript Arrays | |
| |
| |
Letting a Script Make Decisions and Process Accordingly | |
| |
| |
Making Decisions Based on Two or More Conditions | |
| |
| |
Executing Code When a Condition Is Not True | |
| |
| |
Repeating Statements a Specific Number of Times | |
| |
| |
Repeating Statements While a Condition Is True | |
| |
| |
Responding to JavaScript Events | |
| |
| |
Executing JavaScript Statements Within the Body of a Web Page | |
| |
| |
Calling a User-Defined JavaScript Function | |
| |
| |
Calling JavaScript Functions Within an Event Handler | |
| |
| |
Looking Closer at JavaScript Event Handlers | |
| |
| |
Creating an Interactive Navigation Bar with a Mouseover Effect | |
| |
| |
Taking Advantage of the Scripting Object Model Arrays | |
| |
| |
Referring to Web Page Objects by Name Instead of Position Number | |
| |
| |
Leveraging the Contents of the Document Object | |
| |
| |
Taking Advantage of the JavaScript Images Array | |
| |
| |
Exploiting the JavaScript Links Array | |
| |
| |
Changing Web Page Colors Using JavaScript | |
| |
| |
Storing a Cookie on the Visitor's Hard Drive | |
| |
| |
Formatting Cookie Data Using JavaScript | |
| |
| |
Retrieving a Cookie Value from the Cookie File | |
| |
| |
Removing a Cookie from the Cookie File | |
| |
| |
Saving Time and Programming by Using Prewritten (External) Scripts | |
| |
| |
Creating an Animation Using the onLoad Event | |
| |
| |
Displaying Self-Changing Banners Using JavaScript | |
| |
| |
Pointing Hyperlinks to New Files On-the-Fly | |
| |
| |
Pre-caching Pictures to Reduce Image Display Time | |
| |
| |
Creating a Scrolling Marquee Using JavaScript | |
| |
| |
| |
Java Applets and ActiveX Objects | |
| |
| |
Using an Applet to Create a Pop-Up Navigation Menu | |
| |
| |
Using an Applet to Animate a Text String | |
| |
| |
Using an Applet to Display and Print a Calendar for Any Year | |
| |
| |
Using an Applet to Display a Passage at Random from a Text File | |
| |
| |
Using an Applet to Create a Navigation Menu that Runs in Its Own Window | |
| |
| |
Using an Applet to Scroll the Contents of a File Vertically Within a Rectangular Box Onscreen | |
| |
| |
Using an Applet to Animate an Image Along a Sine Wave | |
| |
| |
Editing Java Source Code to Build a Custom Applet | |
| |
| |
Using the Microsoft Chat ActiveX Control to Add Internet Chat to a Web Page | |
| |
| |
Using Only ActiveX Objects with Internet Explorer | |
| |
| |
| |
PHP4 | |
| |
| |
Sending Data from an HTML Form to a PHP Script | |
| |
| |
Using PHP to Parse and Extract Form Results | |
| |
| |
Using PHP to Send an E-Mail Message | |
| |
| |
Determining Whether a Visitor's Web Browser Accepts Cookies | |
| |
| |
Using PHP and a Disk File to Set Up Username/Password Access to a Web Site | |
| |
| |
Preventing Visitors from Linking Directly to Pages on Your Site | |
| |
| |
Using a PHP Session to Establish a Persistent Connection Between a Site Visitor and the Web Server | |
| |
| |
Creating a MySQL Database and Tables | |
| |
| |
Displaying SQL Query Results in an HTML Table on a Web Page | |
| |
| |
Using PHP to Generate a Random Password | |
| |
| |
Using PHP and MySQL to Set Up Username/Password Access to a Web Site | |
| |
| |
Preventing Visitors from Changing Variable Values with URL Arguments | |
| |
| |
Using PHP and MySQL to Track Where Visitors Go on Your Web Site | |
| |
| |
Determining the Visitor's IP Address for Web Page Requests Sent Through a Proxy Server | |
| |
| |
Preventing One Visitor from Assuming Another Visitor's PHP Session Identity | |
| |
| |
Using PHP Functions to Create Web Page Templates | |
| |
| |
Using PHP to Add File Upload Functionality to a Web Page | |
| |
| |
| |
Active Server Pages (ASP) | |
| |
| |
Controlling the Flow of Content from Web Server to Web Browser Through the HTML Output Stream | |
| |
| |
Preventing the Web Browser from Displaying Stale Active Server Pages | |
| |
| |
Redirecting the Web Browser to Another Web Page | |
| |
| |
Maintaining Variable Values Between HTTP Requests with the Cookies Collection | |
| |
| |
Retrieving Form Results from the ASP Form Collection | |
| |
| |
Retrieving Form Results from the ASP QueryString Collection | |
| |
| |
Retrieving Information from the Server Variables Collection | |
| |
| |
Connecting to a MySQL DBMS Through the MyODBC Driver | |
| |
| |
Setting Up Username/Password Access to a Web Site | |
| |
| |
Starting a Session and Working with Session Variables | |
| |
| |
Executing SQL Queries and Displaying Query Results Sets Within an HTML Table | |
| |
| |
Displaying Banner Ads with the Microsoft Banner Ad Rotator | |
| |
| |
Tracking Microsoft Banner Ad Rotator Impressions and Click-Throughs | |
| |
| |
Handling "Status: 404 Not Found" Errors | |
| |
| |
| |
Security and Performance | |
| |
| |
Downloading and Installing a Public Key, Digital Signature, and Server ID | |
| |
| |
Creating a Secure Web Page Under IIS | |
| |
| |
Installing a Software-Based Firewall | |
| |
| |
Fine-Tuning a Firewall's Port Assignments | |
| |
| |
Reducing Your Site's Exposure to Viruses | |
| |
| |
Improving Performance and Security by Disabling Printer and File Sharing | |
| |
| |
Using Client Certificates to Restrict User Access | |
| |
| |
Auditing System Events to Detect Intruders | |
| |
| |
Exploiting the NTFS File System | |
| |
| |
Disabling Remote Services | |
| |
| |
Analyzing Your System's Vulnerability | |
| |
| |
Processing Credit Card Data | |
| |
| |
Taking a Close Look at a Web Site's Performance Chain | |
| |
| |
Creating a Web Farm | |
| |
| |
Monitoring Server Performance | |
| |
| |
Index | |