|
Three-State Buttons in JavaScript JavaScript is a simple programming language, a scripting language, for managing actions or events on Web pages. JavaScript allows a Web developer to employ advanced features on Web pages that cannot be accomplished using straight HTML. These navigation buttons display highlights when the mouse moves over them, and a different color when a button is selected. Each button is composed of three separate images: When the document is loaded, one button is selected. All of the other buttons toggle from their unlit state to their lit state when the mouse moves over them. When the user clicks on a button, a new document is loaded with a different button selected. View the document source code to see how this works.
Technology Instruction | Publishing Information on the Web | Other Resources |