Home
Image Effects
Image Galleries
and Viewers
Here
|
Categories
Other Sections
Sweet Ads
Compatibility
|
|
FF1+ IE6+ Opr9+
FrogJS Image Gallery Author:
Eric Puidokas |
Homepage
Version details: 1.1 Description: FrogJS is sequential image gallery that supports an optional description and link for each image. You view the images in sequence, by clicking on the previous and next images' thumbnail. Each image slide is defined as regular HTML contained within a special DIV tag on the page, making it extremely easy to set up, including its corresponding description and link.
Demo:
Directions: Simply download FrogJS1.1.zip, and refer to example.html for the code to add to your page. Installation instructionsJust for your reference, here's a step by step guide to installing the script. Step 1: Insert the below code in the HEAD section of your page: <script type="text/javascript" src="scripts/prototype.js"></script>
<script type="text/javascript" src="scripts/scriptaculous.js?load=effects"></script>
<script type="text/javascript" src="scripts/frog.js"></script>
<style type="text/css">
#FrogJS{
width: 760px;
height: 600px;
margin: 0 auto;
}
#FrogJSCredit{
text-align: right;
font-size: 80%;
color: #999;
padding: 1px;
}
#FrogJSCaption{
text-align: left;
line-height: 140%;
}
</style>
FrogJS image gallery uses the Prototype Framework and Scriptaculous Effects Library. Step 2: You're now ready to define your image gallery. Inside the BODY section, insert the following code template: <div id="FrogJS"> All your images must go inside the DIV tag in red. Here I've defined 3
images, with the parts in green being optional. As mentioned, the " Enjoy! NotesFor your information, inside frog.js, there are a few configurable variables: // CONFIGURATION VARIABLES var thumbTop = '60px'; // distance you want you thumbnails to be from the top of their container var loadingAni = 'images/loading.gif'; // image displayed when preloading images var scalePercent = '300'; // percent thumbnails expand when fading into main image
|