Hi, I am attaching a side banner image.

I would like that image able to switch it's text automatically or whenever the user press the small white button.

Anyone has any idea how to do so ?

or any recommended tutorial to create such things ?

Thanks.

I am a little confuse. Where is the navigation controller ?

Since I need to understand it to change it. Why the number appears by itself, where is the codes behind those navigation numbers ?


slideshow2.php

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<title>JQuery Cycle Plugin - Auto-Pager Demo</title>
<?php /*<link rel="stylesheet" type="text/css" media="screen" href="../jq.css" />
<link rel="stylesheet" type="text/css" media="screen" href="cycle.css" /> */ ?>
<style type="text/css">
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('&lt;div id="nav"&gt;').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>

I would like a button navigation for the slideshow just like the picture that I attached. How to do so ?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.