The examples at the bottom of this list may incorporate techniques not yet covered in class. There may be bugs in these examples; please notify me if you find one.
Contents
- Basic HTML
- Style Sheets
- More HTML: Tables and Area Maps
- JavaScript
- JavaScript Objects
- JavaScript Loops and Arrays
- Dynamic HTML
- Document Object Model
- PHP
- Frames
- Forms
- Multimedia: Plugins and Embedded Objects
- Maintaining State
- A skeletal HTML document
- A more fleshed-out HTML document
- Some additions to the example above
- A web page with style and without
- The course home page with no style or alternate style
- Style for links
- Formatting using various methods: divs, tables, frames
- Examples of image alignment: old style and using css
- An outline using style sheets
- Use of style sheets to add a background image
- Style-sheet positioning
- Z-index control via CSS
- Clip rectangle control via CSS
- A simple table
- A table with cells spanning multiple rows and columns
- A hidden table gives two-column text
- Use of an area map
- A split image arranged in a table
- Style sheets for tables
- Basic JavaScript examples: #1, #2, #3.
- Some simple JavaScript commands
- Display the current time using Date()
- Use of the if...else construct
- Use of the while loop construct
- Use of the switch construct
- More on variable content: if/else, multiple if/else, switch
- Calling an external JavaScript
- Logical operators in Javascript
- Review of some Javascript statement types
- Using functions to organize scripts and avoid unnecessary duplication
- Example using functions of increasing flexibility: no arguments, one argument, two arguments.
- Example of use of functions
- Example of events
- Timing events
- Example of variable scope
- Use of dialog boxes
- Using an external JavaScript file to include a header
- Examples of some objects
- Date object and arrays
- Functions and the Image object
- Using the Math object
- A table of sines, using a simple loop
- A checkerboard, using a pair of nested loops
- An introduction to arrays
- Pieces on the checkerboard can be kept track of using a 2D array
- Very basic rollovers
- A simple rollover via a function
- Multiple rollovers via one function
- Swapping multiple images on a rollover
- Using rollovers to influence behavior
- A rollover with preloading of images
- Rollover navigation bar
- Navigation bar with dynamic motion effects
- Drop-down menus: one, two
- Other dynamic mouseover effects
- Two ways to make page elements appear and disappear
- How to annoy the user...
- An interactive story, using layers with dynamic visibility changes,
- A dynamic color picker
- A dynamic index (built from scratch)
- Dynamic HTML to produce flying text and image
- Flying text that changes, built upon the previous example
- Sparkling letters
- A complete JavaScript application: tic-tac-toe
- Another JavaScript application: Conway's angel
- Automatic last update notice.
- Dynamically changing style properties via the DOM: before dynamism; after dynamism.
- Using the document object to change colors
- Window size (and other useful properties)
- Putting window size to use.
- Some other uses of the window object
- A script that displays object properties
- General cross-browser DOM
- General cross-browser DOM in an external script file
- Sampler of changes via cross-browser DOM
- A slide show, using the interval timer
- A double slide show using the interval timer
- Some uses of the navigator object
- Using the window.open method to create a popup window
- Dynamic HTML to produce moving text
- Dynamic HTML to change the text of a link. Using buttons (easiest); Partial cross-browser version (no Netscape 4.x); Fully cross-browser version
- Using including files via PHP.
- A basic set of frames
- The same set of frames, with some JavaScript improvements
- Frames/noframes example, with a navbar that appears only in noframes mode.
- Seamless frames/noframes transitions.
- An example of an internal frame, with JavaScript improvements
- A Web "magazine", showing some uses of internal frames
- A remote control, using frames
- A form, showing all the basic input types
- Another form, whose results are interpreted using JavaScript, including an external script for form processing.
- JavaScript with menus and radio buttons
- A much more complex use of Javascript for form checking, from Jim O'Donnell
- An example of form checking and processing
- A quiz
- Check the plugins and mimetypes (Netscape only)
- Examples of object embedding
- A flash animation, showing the use of Javascript as an interface
- Interactive sound, via a hidden frame
- Using interactive sound
- Cookies are delicious!
- The same cookie example, using external JavaScript file cookie.js
- More use of cookies: a page that stores preferences in a cookie, and another page that reads those preferences.
- Example of the use of hidden frames