The HTML
The first step in including ImgWheel
on your site is to set up the HTML for your slideshow. All of the HTML for ImgWheel
should go inside of a <div> with an assigned id or class. Within this <div> is placed a <div> with class="image-container". In this <div> go your images. The HTML for a basic slideshow would look like this:
<div id="my-slideshow">
<div class="image-container">
<img src="yourImage_1.jpg" />
<img src="yourImage_2.jpg" />
<img src="yourImage_3.jpg" />
<img src="yourImage_4.jpg" />
<img src="yourImage_5.jpg" />
<img src="yourImage_6.jpg" />
<img src="yourImage_7.jpg" />
<!--Include as many images as you'd like!-->
</div>
</div>
If you want to include additional content to be displayed as part of the ImgWheel
slideshow, now is your chance. Simply add in another <div> with the class="article-container". Within this <div>, place as many <article>'s as there are images in your .image-container <div>, then fill those <article>'s with whatever content you like. When the first image in your .image-container <div> is central in the slideshow, the first article in your .article-container <div> will be displayed, and so on. The HTML looks like this:
<div id="my-slideshow">
<div class="image-container">
<img src="Image_1.jpg" />
<img src="Image_2.jpg" />
<img src="Image_3.jpg" />
<img src="Image_4.jpg" />
<img src="Image_5.jpg" />
<!--Include as many images as you'd like!-->
</div>
<div class="article-container">
<article><!--Content displayed when Image_1.jpg is central--></article>
<article><!--Content displayed when Image_2.jpg is central--></article>
<article><!--Content displayed when Image_3.jpg is central--></article>
<article><!--Content displayed when Image_4.jpg is central--></article>
<article><!--Content displayed when Image_5.jpg is central--></article>
<!--Include as many articles as there are images in the .image-container-->
</div>
</div>
Static content can also be included within the ImgWheel
display. To have static content displayed alongside your rotating articles, add in another <div> containing this content:
<div id="my-slideshow">
<div class="image-container">
<img src="Image_1.jpg" />
<img src="Image_2.jpg" />
<img src="Image_3.jpg" />
<img src="Image_4.jpg" />
<img src="Image_5.jpg" />
<!--Include as many images as you'd like!-->
</div>
<div class="article-container">
<article><!--Content displayed when Image_1.jpg is central--></article>
<article><!--Content displayed when Image_2.jpg is central--></article>
<article><!--Content displayed when Image_3.jpg is central--></article>
<article><!--Content displayed when Image_4.jpg is central--></article>
<article><!--Content displayed when Image_5.jpg is central--></article>
<!--Include as many articles as there are images in the .image-container-->
</div>
<div class="static-content"><!--Identify this div however you'd like-->
<!--Insert whatever static content you'd like displayed-->
</div>
</div>