Hi,
I have created a jquery slideshow with the following image. Yet, without navigation how to create a small button navigation on the slide show ?
What's the code for the css ?
<style type="text/css">
<?php /*
td a { margin: 5px }
.nav { margin: 5px 0 }
#nav a, #s7 strong { margin: 0 5px; padding: 3px 5px; border: 1px solid #ccc; background: #fc0; text-decoration: none }
#nav a.activeSlide { background: #ea0 }
#nav a:focus { outline: none; }
#output { text-align: left; }
#nav { text-align: left }
#slideshow { margin: 0 auto } */?>
</style>
<script type="text/javascript" src="js/jquery-1.7.1.min.js"></script>
<script type="text/javascript" src="js/chili-1.7.pack.js"></script>
<script type="text/javascript" src="js/jquery.cycle.all.js"></script>
<script type="text/javascript" src="js/jquery.easing.1.3.js"></script>
<script type="text/javascript">
$(function() {
$('#slideshow').before('<div id="nav" class="nav">').cycle({
fx: 'fade',
speed: 'fast',
timeout: 3000,
pager: '#nav',
before: function() { if (window.console) console.log(this.src); }
});
});
</script>
</head>
<body>
<h2 id="header">This page shows how to create a pager that auto-advances.</h2>
<div id="main">
<div id="demos">
<table cellspacing="20"><tr>
<td>
<div id="slideshow" class="pics">
<img src="images/bannerside.png">
<img src="images/bannerside2.png">
<img src="images/bannerside3.png">
</div>
</td></tr>
</table>
<?php // <pre><code class="mix" id="skip2">$('#slideshow').before('<div id="nav">').cycle({ ?>
<pre><code class="mix" id="skip2">
$('#slideshow').before('div id="nav"').cycle({
fx: 'fade',
speed: 'fast',
timeout: 3000,
pager: '#nav'
});</code></pre>
</div>
</div>
<script src="js/urchin.js" type="text/javascript"></script>
<script type="text/javascript">
_uacct = "UA-850242-2";
urchinTracker();
</script>
</body>
</html>
Well, there are some css navigation on top of the code that I comment out since it's numbering navigation instead of button. I want to change it to button navigation overlapping the slideshow just like the attachment.
How to do so ?