fatdotchris
 6 Print Page

 

Chris' JavaScript

The "Slap Sam!" Screenshots script makes use of the location.search thing (I don't quite know all the terminology yet) in JavaScript. Although I don't fully understanding it enough to use it like this: page.html?something=value,somethingelse=anothervalue I know enough to use it like this: page.html?value this allowed me to make a page which, on loading, will get the value of whatever is after the ? in the location and use it for something useful, in this case, loading the right image, and printing the value at the top of the page, minus any occurrences of "_", which are changed to " ". And finally it sets the window title.

The Slap Sam! Screenshots were taken from Slap Sam!, an interactive flash animation available for viewing or downloading at fat.chris productions.

I'm sure you've had enough of my prattling by now, so take a butchers at the screenshots.

Bizarre | Chris' JavaScript