Here we have Admiral Fowle's first successful use of javascript:

The text giving the time and date magically appears between a pair of paragraph tags because hidden in the first set of brackets is the instruction "id = "demo".


First Example

In this case JavaScript changes the src (source) attribute of an image.

In this case the instruction is to 'get the the element by ID', the element being within the parentheses, and called 'myImage'.


Second Example
Let's fuck around with that. Let's make the same thing happen, but it's change "my image" to "my bullshit".

In this case JavaScript changes the src (source) attribute of an image.

That's a big fat fucking victory.


Third Example

This time let's change the width — not sure why —

and call for the green and red bippies instead.

In this case JavaScript changes the src (source) attribute of an image.


Wow! That's confusing!
The second example still works.
Upon reload, what comes up is the red "Not Delivered Yet" image.
Clicking on "Turn On the Light" gets you … wait for it …

The red "Not Delivered Yet" image in the Second Example!
What's more, in the Third Example, nothing happens.

Also of note: Hitting the Turn off the light" button flips Example 2 to "Papers Delivered."
Man, that is some confusing shit!

There was something fucked up about the 'img' tag of the Third Example.

The second example sort of works.

The third example does jack shit.