Javascript image box
— Frank — ? Comments
I wrote a simple "lightbox" script for Mootools that doesn't need extra images or CSS, but it doesn't have those fancy efects.
I couldn't find something simple (I'm lazy. I don't want to add extra images and CSS each time) so I tried to write something myself. And thanks to some guys at #mootools (freenode) this thing works now. :D
It only needs the Mootools 1.2.2 core and is easy to use.
Like this:
<script src="js/mootools-1.2.2-core-nc.js" type="text/javascript"></script>
<script src="js/jsimgbox-0.1.js" type="text/javascript"></script>
<script type="text/javascript">
window.addEvent('domready', function()
{
new Jsimgbox('.img-thumbnail a');
});
</script>
Jsimgbox (Javascrip image box) can be downloaded from files.61924.nl. And a demo can be found at: images.61924.nl.
It's only tested in Opera 9.64 and Firefox 3.0.10 on Xubuntu 9.04. If would be cool if someone could test this in some other browsers. :)
Comments