| Technology | DHTML |
JavaScript |
Java Applets |
| Description | A combination of technologies, including HTML style sheets, Document Object Model, JavaScript, and Java, used to create dynamic and interactive Web page |
A scripting language developed
by Netscape to enable Web authors to design dynamic and interactive sites |
Java programs that run in a browser
to make web pages dynamic and interactive |
| Reference | DHTML
Tutorial DHTML DOM Reference DHTML DOM Examples |
JavaScript
Kit Free JavaScripts JavaScript Tutorials (scroll to index) JavaScript Objects |
|
| The difference between JavaScript and Java | |||
| Example | Skeleton
Game (from Jeff
Rule's DHTML Demos) View the source and look at the layer tags as well as the JavaScript. |
Rainbow Roller Coaster (original text effect from JavaScript Kit altered by Jane Abel) | Beam-Illuminated Text (in Heading) copyrighted by vertig01 |
| Educational Purpose |
To stimulate student interest by providing the capability of making web pages dynamic and interactive | To stimulate student interest by providing the capability of making web pages dynamic and interactive | To stimulate student interest by
providing the capability of making web pages dynamic and interactive |
| Educational Value |
Students are challenged to learn the power of objects in the DOM (Document Object Model) supported by DHTML, to use CSS to achieve continuity in appearance throughout a site, and to use JavaScript to reach beyond the capabilities of HTML. | At progressive levels, students can use downloaded JavaScripts in their web pages, learn to alter those scripts to better meet their needs, and eventually learn to write their own JavaScript. The object oriented nature of JavaScript provides a powerful apllication programming interface, and the language structures are reasonably simple for students who are strongly motivated | Since applets can be downloaded,
their use is not limited to students who have learned Java, but Java provides
the natural connection between computer programming and web authoring.. |
| Educational Limitations |
Because a knowledge of objects is required for dynamic HTML. The learning curve is increased significantly, placing this beyond the reach of students with only a casual interest in web authoring or with very limited experience. However when their interest is caught, many students will rise to the challenge. | While using downloaded JavaScript can be a simple process if the documentation is good, some learning is required to use parameters required by many of the scripts. Altering JavaScript requires study of the programming concepts involved, and writing your own JavaScript requires extensive programming knowledge. | The source code for Java applets running
on the web cannot be viewed like JavaScript since it is compiled, so the
opportunity to learn by downloading existing applets and modifying them
is not available. While free compilers are readily available for Java,
installing one is an added step before a student can begin learning the
Java language. The language is complex, requiring formal classroom study
for most students. |
Web Tools |
There can be multiple objects of the same type, perhaps String, and both have the same set of methods and properties available, but each has its own data. One String object may have a red fontcolor, while the other has blue. The fontsizes of the two could be the same or different. One could be italicized while the other is not. An object calls a method to act on its own properties, not the properties of another object. Specifying the object name before the dot, in effect, specifies whose properties to change. Note that in Javascript a single character is regarded as a String object.
Keep in mind that all of the technologies in this presentation
are object oriented, so there will be significant carryover to DHTML and
Java from the knowledge you gain in Javascript. |
The statements that we have discussed are controlled by a for loop that
executes repeatedly until the String "Life is like a roller coaster
ride. Hang on tight! " appears 4 times. |
Version 2: rainbowText
|
|
Additional objects can be defined by a programmer. |
JavaScript code for function definitions can be placed in the HEAD or the BODY of an HTML document. However the function calls must be placed in the BODY. All JavaScript code must be within the paired SCRIPT tags, and no other HTML tags are permitted within the paired SCRIPT tags. Multiple pairs of SCRIPT tags are permitted in the HEAD or the BODY or both. Web Tools
. . . How To |