CSC 105

Examples of Specific Techniques

 

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

  1. Basic HTML
  2. Style Sheets
  3. More HTML: Tables and Area Maps
  4. JavaScript
  5. JavaScript Objects
  6. JavaScript Loops and Arrays
  7. Dynamic HTML
  8. Document Object Model
  9. PHP
  10. Frames
  11. Forms
  12. Multimedia: Plugins and Embedded Objects
  13. Maintaining State

    Basic HTML

  1. A skeletal HTML document
  2. A more fleshed-out HTML document
  3. Some additions to the example above
  4. Style Sheets

  5. A web page with style and without
  6. The course home page with no style or alternate style
  7. Style for links
  8. Formatting using various methods: divs, tables, frames
  9. Examples of image alignment: old style and using css
  10. An outline using style sheets
  11. Use of style sheets to add a background image
  12. Style-sheet positioning
  13. Z-index control via CSS
  14. Clip rectangle control via CSS
  15. More HTML: Tables and Area Maps

  16. A simple table
  17. A table with cells spanning multiple rows and columns
  18. A hidden table gives two-column text
  19. Use of an area map
  20. A split image arranged in a table
  21. Style sheets for tables
  22. JavaScript

  23. Basic JavaScript examples: #1, #2, #3.
  24. Some simple JavaScript commands
  25. Display the current time using Date()
  26. Use of the if...else construct
  27. Use of the while loop construct
  28. Use of the switch construct
  29. More on variable content: if/else, multiple if/else, switch
  30. Calling an external JavaScript
  31. Logical operators in Javascript
  32. Review of some Javascript statement types
  33. Using functions to organize scripts and avoid unnecessary duplication
  34. Example using functions of increasing flexibility: no arguments, one argument, two arguments.
  35. Example of use of functions
  36. Example of events
  37. Timing events
  38. Example of variable scope
  39. Use of dialog boxes
  40. Using an external JavaScript file to include a header
  41. JavaScript Objects

  42. Examples of some objects
  43. Date object and arrays
  44. Functions and the Image object
  45. Using the Math object
  46. JavaScript Loops and Arrays

  47. A table of sines, using a simple loop
  48. A checkerboard, using a pair of nested loops
  49. An introduction to arrays
  50. Pieces on the checkerboard can be kept track of using a 2D array
  51. Dynamic HTML

  52. Very basic rollovers
  53. A simple rollover via a function
  54. Multiple rollovers via one function
  55. Swapping multiple images on a rollover
  56. Using rollovers to influence behavior
  57. A rollover with preloading of images
  58. Rollover navigation bar
  59. Navigation bar with dynamic motion effects
  60. Drop-down menus: one, two
  61. Other dynamic mouseover effects
  62. Two ways to make page elements appear and disappear
  63. How to annoy the user...
  64. An interactive story, using layers with dynamic visibility changes,
  65. A dynamic color picker
  66. A dynamic index (built from scratch)
  67. Dynamic HTML to produce flying text and image
  68. Flying text that changes, built upon the previous example
  69. Sparkling letters
  70. A complete JavaScript application: tic-tac-toe
  71. Another JavaScript application: Conway's angel
  72. Document Object Model

  73. Automatic last update notice.
  74. Dynamically changing style properties via the DOM: before dynamism; after dynamism.
  75. Using the document object to change colors
  76. Window size (and other useful properties)
  77. Putting window size to use.
  78. Some other uses of the window object
  79. A script that displays object properties
  80. General cross-browser DOM
  81. General cross-browser DOM in an external script file
  82. Sampler of changes via cross-browser DOM
  83. A slide show, using the interval timer
  84. A double slide show using the interval timer
  85. Some uses of the navigator object
  86. Using the window.open method to create a popup window
  87. Dynamic HTML to produce moving text
  88. Dynamic HTML to change the text of a link. Using buttons (easiest); Partial cross-browser version (no Netscape 4.x); Fully cross-browser version
  89. PHP

  90. Using including files via PHP.
  91. Frames

  92. A basic set of frames
  93. The same set of frames, with some JavaScript improvements
  94. Frames/noframes example, with a navbar that appears only in noframes mode.
  95. Seamless frames/noframes transitions.
  96. An example of an internal frame, with JavaScript improvements
  97. A Web "magazine", showing some uses of internal frames
  98. A remote control, using frames
  99. Forms

  100. A form, showing all the basic input types
  101. Another form, whose results are interpreted using JavaScript, including an external script for form processing.
  102. JavaScript with menus and radio buttons
  103. A much more complex use of Javascript for form checking, from Jim O'Donnell
  104. An example of form checking and processing
  105. A quiz
  106. Multimedia: Plugins and Embedded Objects

  107. Check the plugins and mimetypes (Netscape only)
  108. Examples of object embedding
  109. A flash animation, showing the use of Javascript as an interface
  110. Interactive sound, via a hidden frame
  111. Using interactive sound
  112. Maintaining State

  113. Cookies are delicious!
  114. The same cookie example, using external JavaScript file cookie.js
  115. More use of cookies: a page that stores preferences in a cookie, and another page that reads those preferences.
  116. Example of the use of hidden frames