To complete this assignment we are directed to identify elements of script we find from a page on the Web.
These are samples of scripting from the main page of the Website of the Guardian, a British news organization.
Although I copied this on June 25th, 2000, and much of the page changes daily, I noticed that the central elements of the scripting stayed the same, even down to the hidden instructions coming after the hide tags. (These direct the person responsible for updating the page exactly where to go. The third line down is an example of this sort of direction.) To find out what each element of the coding below does click on the section you want to see. If you have Netscape, however, you won't be able to get any DHTML action |
< script> This is an example of a function which, when used in conjunction with a "call" from the main text, will activate an event upon the object it defines. This is a sample of a variable. In this example, the variable is given the name "newUrl" and assigned a value. This is a sample of a conditional. It defines the parameters of possible "events" - in this case, the location of any hypertext reference. } // End of javascript --> < /SCRIPT> |
You can find this code at the Guardian's web site.
|