catchGame.html. Try to click
on the "Click me!" text (it immediately starts recording the current position
of the text). The text will move away from you. This game uses
events and CSS positioning.
Example of dynamically changing the values of an html element in both
Firefox and other browsers.
You have to use the textContent property in Firefox instead of the innerText
properaty.
Another example of dynamically changing the values of an html element.
Includes several different approaches to changes values that only work
in Internet Explorer.
Another example of dynamically changing the values of an html element.
Includes several different approaches to changes values that work
in any W3C complient browser.
An example of dynamically adding tags to an HTML page in IE. Turns out that
IE defines the DOM heirarchy slightly different that other complient browsers.
An example of pop-up menus in a menu bar on the left of the page. Note that
I had to add a "hidden" div tag to the right of the menu bar so that I
wouldn't get a mouseOut message when I went from item to item in the pop-up
boxes.
Another example of pop-up menus in a menu bar on the left of the page. This
version using an onmouseover event in each item in the pop-out menu to ensure
that the menu doesn't go away when you leave an item. Otherwise, when you
leave an item, the item sends an onmouseout event to its enclosing tag (the
div) and the menu disappears.
An example of slide-down menus in a menu bar at the top of the page. Uses
CSS to position div elements on the page dynamically. Only designed to work in
standards complient browsers like FireFox.