34,333
edits
Changes
→Creating Moving Layers
As the left and right buttons are pressed layer2 will move across the brwoser window in increments of 10 pixels:
[[Image:ExampleJavascript movable layers1.jpg]] [[Image:ExampleJavascript movable layers2.jpg]]