Create a Timed Slideshow with JQuery SlideViewerPro
Step 1: The HTML Content
In Step 1, we add the HTML markup for the slides' contents within the <body> of the webpage. There is no limit on the number of slides. In this example, there are 3 images as the 3 slides.
<!-- Timed Slideshow HTML –> <div id="banner" class="svwp"> <!-- Slideshow HTML -> |
Step 2: The CSS Content
The next step, is to add the CSS content within the <head> element of the webpage that consists of the slideshow style rules. These rules can be modified according to the need; for example, the height and width rules of the slide images should be changed in the CSS rule for #banner to reflect the size of the images (also make sure all images are of the same size which gives the slideshow a consistent look and feel).
<style type="text/css"> .svwp { .svwp ul { .slideViewer { .slideViewer ul { /*your list of images*/ .slideViewer ul li { /* Banner Animation Styles */ --> |
Step 3: The JavaScript content
In this step, we insert the JavaScript code to manipulate the DOM for the slideshow effect. Our code is dependent on the JQuery JavaScript library as well as the SlideViewerPro and Timer JavaScript libraries of JQuery, therefore these libraries will be linked as well.
<script type="text/javascript" src="jquery-1.3.2.min.js"></script> <script type="text/javascript"> |
Step 4: Customizing SlideViewerPro
The SlideViewerPro plugin is completely customizable with the following options and their default values when not explicitly assigned a value in the JavaScript code:
// slideViewerPro options (defaults)
|
The timed slideshow is now ready.
1 Comments:
How to show NUMBER list instead of image thumbs (like Slideviewer 1.2)?
Post a Comment
Subscribe to Post Comments [Atom]
<< Home