That's good, now all you have to do is follow one of the examples. For instance, you could replace:
Code:
<script language="JavaScript" type="text/javascript">
//<!--
//<![CDATA[
first = 1;
last = 4;
current = 1;
function nextPicture() {
// Hide current picture
object = document.getElementById('slide' + current);
object.style.display = 'none';
// Show next picture, if last, loop back to front
if (current == last) { current = 1; }
else { current++ }
object = document.getElementById('slide' + current);
object.style.display = 'block';
$('slide').cycle('fade');
}
function previousPicture() {
// Hide current picture
object = document.getElementById('slide' + current);
object.style.display = 'none';
if (current == first) { current = last; }
else { current--; }
object = document.getElementById('slide' + current);
object.style.display = 'block';
$('slide').cycle('fade');
}
//]]>
// -->
</script>
with:
Code:
<script type="text/javascript">
//<!--
//<![CDATA[
$('.slideShow').cycle({
fx: 'fade',
speed: 'slow',
timeout: 0,
next: '#next2',
prev: '#prev2'
});
//]]>
// -->
</script>
and replace:
Code:
<div class="slideShow">
<div class="setTitle">Nature</div>
<div id="slide1" class="slides">
<div class="slideTitle">Farmers Sunrise 1/4</div>
<img src="../../Images/services/photography/nature/outdoors9.jpg" height="400" width="520" border="0" alt="" /> </div>
<div id="slide2" class="slides">
<div class="slideTitle">Heaven shining through 2/4</div>
<img src="../../Images/services/photography/nature/outdoors3.jpg" height="400" width="520" border="0" alt="" />
</div>
<div id="slide3" class="slides">
<div class="slideTitle"> 3/4</div>
<img src="../../Images/services/photography/nature/dual flowers.JPG" height="400" width="520" border="0" alt="" />
</div>
<div id="slide4" class="slides">
<div class="slideTitle"> 4/4</div>
<img src="../../Images/services/photography/nature/flower3.jpg" height="400" width="520" border="0" alt="" />
</div>
<div class="controls">
<a href="javascript:previousPicture()" style="margin: 10px;">« Previous</a>
<a href="javascript:nextPicture()" style="margin: 10px;">Next »</a>
</div>
</div>
with:
Code:
<div class="setTitle">Nature</div>
<div class="slideShow">
<div id="slide1" class="slides">
<div class="slideTitle">Farmers Sunrise 1/4</div>
<img src="../../Images/services/photography/nature/outdoors9.jpg" height="400" width="520" border="0" alt="" /> </div>
<div id="slide2" class="slides">
<div class="slideTitle">Heaven shining through 2/4</div>
<img src="../../Images/services/photography/nature/outdoors3.jpg" height="400" width="520" border="0" alt="" />
</div>
<div id="slide3" class="slides">
<div class="slideTitle"> 3/4</div>
<img src="../../Images/services/photography/nature/dual flowers.JPG" height="400" width="520" border="0" alt="" />
</div>
<div id="slide4" class="slides">
<div class="slideTitle"> 4/4</div>
<img src="../../Images/services/photography/nature/flower3.jpg" height="400" width="520" border="0" alt="" />
</div>
</div>
<div class="controls">
<a href="javascript:previousPicture()" id="prev2" style="margin: 10px;">« Previous</a>
<a href="javascript:nextPicture()" id="next2" style="margin: 10px;">Next »</a>
</div>
The layout will be off, but I think you will get the idea from there. If not, let me know.
Bookmarks