I’m just beginning the process of learning JavaScript, using Dave Thau’s BOOK OF JAVASCRIPT. It’s my first programming language.
I’m in Chapter 4: “Working with Rollovers.” The exercises in this chapter involve swapping out the image of a sad face (sad_face.gif) for the image of a happy face (happy_face.gif) at the click of a button, the rollover of a mouse, etc.
My problem is that I cannot get the images which are to be used in these programs to display in my browser (which is the latest version of Firefox). They always show up as broken.
When I run the [URL=”http://www.bookofjavascript.com/Chapter04/Fig04-13.html”]‘Figure 13’ example[URL=”http://www.bookofjavascript.com/Chapter04/”]chapter 4
However, when I cut and paste the SAME EXACT CODE — given in the [URL=”http://www.bookofjavascript.com/Chapter04/Fig04-13.txt”]Figure 13 ‘read it’ example
What’s up?