Regarding switching over to using Ajax, to clarify, I mean instead of use PHP to output the contents, you would just embed the script on your page manually, and for the contents, specify the path to them on your server. For example:
Code:
<div class="contentdiv" rel="external.htm" >
</div>
This is explained on the script page near the bottom.
Back to PHP, basically the entire HTML for the script is as follows:
Code:
<div id="slider1" class="contentslide">
<div class="contentdiv">
Content 1
</div>
<div class="contentdiv">
Content 2
</div>
<div class="contentdiv">
Content 3
</div>
</div>
<div class="pagination" id="paginate-slider1"></div>
<script type="text/javascript">
//ContentSlider("slider_ID" , opt_miliseconds_rotate)
ContentSlider("slider1") //or ContentSlider("slider1", 3000) to auto rotate every 3 seconds
</script>
Each of the DIVs uses the same pattern as far as structure, so using PHP to output them dynamically should be relatively simple. Your goal is to massage your PHP code to output the above. If the script doesn't work, it's because that's not what's being output.
Bookmarks