Home
Image Slide shows
Here
|
Categories
Other Sections
Sweet Ads
Compatibility
|
|
FF1+ IE6+ Opr8+
Continuous Reel Slideshow Author:
Description: Continuous Reel Slideshow lets you showcase images in a reel like fashion, one image at a time and in an continuous manner, with no breaks between the first and last slide. The reel can be played from left to right (horizontally), or top down (vertically), and pauses onMouseover. You can implement controls to allow users to manually move the reel forward and backwards, instead of it playing automatically. With that brief introduction out of the way, here are the script's features:
This reel is looking good! Note: This script now replaces the two defunct scripts Up-down Image Slideshow Script and Left-right Image Slideshow Script. Demos: Add the below code inside the <HEAD> section of the page: The above code references the external file "reelslideshow.js", which you should download (right click, and select "Save As"). Step 2: Then, insert the following sample HTML for Mark up wise each Slideshow should just be an empty DIV on the page with a unique ID: <div id="firstreel"></div> The DIV's ID value should match up with the value set in the
option That's it for installation! Time to take a look at all the available options at your disposal when initializing each instance of Reel Slideshow on the page.
|
| options | Description |
wrapperidRequired |
The ID of an empty DIV container on your page
that will show the Reel Slideshow. Such a DIV on the page may
look like this: <div id="myreel"></div> |
dimensionsRequired |
The dimensions of the slideshow in the format
[width_int, height_int] with pixels being the assumed unit.
These two values should be set to the dimensions of the largest image.
Smaller images will be centered within the display area. **Vertical centering of each image does not work in IE6/7, only in IE8+ and all other modern browsers. |
imagearrayRequired |
An array containing the images you wish to
show. Each array element contains 3 parts: ["path_to_image", "optional_url", "optional_linktarget"] The optional link and corresponding link target parameters can be left out entirely if not in use: imagearray: [ Notice how there should be no comma trailing the very last element! The images do NOT have to be of the same dimensions- images smaller than the display area are centered, while those larger will be partially clipped. * *Vertical centering of each image does not work in IE6/7, only in IE8+ and all other modern browsers. |
displaymodedefaults to {type:'auto', pause:2000, cycles:2, pauseonmouseover:true} |
Sets the primary attributes of your
slideshow, from whether this is an automatic or manual slideshow, the
pause between slides, the number of cycles before the slideshow stops
in automatic mode, to whether the slideshow should pause onMouseover: {type:'auto', pause:2000, cycles:2, pauseonmouseover:true} The " The " The " |
orientationDefaults to "h" |
Set to either "h" or "v"
to cause the slideshow to scroll the slides from left to right
(horizontally), or up down (vertically) instead. |
persistDefaults to true |
Boolean variable that decides whether the slideshow should remember and recall the last viewed slide within a browser session when the page is reloaded. |
slidedurationDefaults to 500 |
The duration of the sliding effect when transitioning from one image to the next, in milliseconds. |
Whether your slideshow is set to automatically rotate or
manually, you can easily add "back" and "forth" navigation buttons to explicitly
move the slideshow in either direction. Simply call the two variants of the
method scriptinstance.navigate(dir):
scriptinstance.navigate('back'): When called
moves the referenced reel slideshow backwards by one slide.
scriptinstance.navigate('forth'): When called
moves the referenced reel slideshow forward by one slide.
scriptinstance should be the name of the variable assigned to
your Reel Slideshow when invoking it, such as:
var myreel=new reelslideshow({
wrapperid: "myreel", //ID of blank DIV on page to house Slideshow
dimensions: [300, 200], //width/height of gallery in pixels. Should
reflect dimensions of largest image
imagearray: [
["image1.jpg"], //["image_path", "optional_link", "optional_target"]
["image1.jpg", "http://en.wikipedia.org/wiki/Cave", "_new"],
["image1.jpg"],
["image1.jpg"] //<--no trailing comma after very last image element!
],
displaymode: {type:'auto', pause:2000, cycles:2, pauseonmouseover:true},
orientation: "h", //Valid values: "h" or "v"
persist: true, //remember last viewed slide and recall within same
session?
slideduration: 300 //transition duration (milliseconds)
})
Here's an example of "back" and "forth" navigation buttons for the above slideshow:
<a href="javascript:myreel.navigate('back')"
style="margin-right:200px;">back</a>
<a href="javascript:myreel.navigate('forth')">forth</a>