Home »
Web
Slide Ảnh Auto
Ultimate Fade-in slideshow (v2.1)
Tags:
Web
Author: Dynamic Drive
Note: Oct 6th, 09': Adds option to randomize display order of images, via new option
displaymode.randomize
Description: This is a robust, cross browser fade in slideshow script that incorporates some of your most requested features all rolled into one. Each instance of a fade in slideshow on the page is completely independent of the other, with support for different features selectively enabled for each slideshow. Here's a lowdown on the script's features:
- Sleek fade in effect that has the current image fading over the previous one.
- Ability to display images either as an automatic or manual slideshow. In manual mode you define your own "prev/next" controls to let the user go through the slides.
- In automatic mode, slideshow can be set to stop rotating after x cycles.
- Each slide can be optionally hyperlinked.
- Each slide can have an optional description associated with it. Descriptions can either be set to show on demand (when the mouse rolls over the slide), or be always visible until explicitly dismissed.
- Persistence of last viewed slide supported, so when the user reloads the page, the slideshow resumes from the last slide.
- Slideshow automatically pauses onMouseover.
Demos:
Simply add the below code inside the section of the page:
The above code references 1 external file plus 3 images as part of its interface. Download them below (right click, and select "Save As"):
- fadeslideshow.js
-
(check inside fadeslideshow.js to ensure that the paths to these 3 images are correct)
Step 2: Then, insert the following sample HTML for 2 sample Fade In slideshows:
Mark up wise each Slideshow should just be an empty DIV on the page with a unique ID:fadeshow1">
The DIV's ID value should match up with the value set in the option
wrapperid
in the code of Step 1 above. When the page loads, the script will load the gallery into this DIV.That's it for installation! Time to take a look at all the available options at your disposal when initializing each instance of Fade In Slideshow on the page.
Tin liên quan