Redacted: Javascript Works in Dreamweaver Preview, But Not in Browser

NB: I figured this out, but am not able to delete the thread? Oh dear.

Hello,

I will say right off that this is probably a stupid question. I am just learning JavaScript and made this page as a test for myself. The page works in all browsers when I preview in Dreamweaver, but when loaded on to my server and run publicly it logs a 404:Object Not Found error each times it tries to access one of the photos. The photos have been properly put on the server and work when called to other pages without this silly code I wrote.