Skip to content

Instantly share code, notes, and snippets.

@KirinDave
Created November 1, 2008 01:34
Show Gist options
  • Save KirinDave/21459 to your computer and use it in GitHub Desktop.
Save KirinDave/21459 to your computer and use it in GitHub Desktop.
<html>
<head>
<title>Our Example</title>
<!-- Get mootools in! -->
<script type="text/javascript" charset="utf-8" src="http://ajax.googleapis.com/ajax/libs/mootools/1.11/mootools.js"></script>
<!-- This is where we do our thing -->
<script type="text/javascript" charset="utf-8">
// Run this awesome code *after* the page loads but *before* it displays.
window.addEvent('domready', function () {
var imgs = ["062","063","071","074","075","077","078","079","081","082","084","085"];
imgs.each(function(x) {
$('imageholder').adopt(new Element('img', {src: "/imgs/fma" + x + ".jpg"}))
});
});
</script>
</head>
<body>
<h1>Super Awesome Image Galleria</h1>
<div id="imageholder"><!-- empty at the start now, but not for long! --></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment