PDA

View Full Version : Numbered pagination



chalin
02-23-2010, 11:53 AM
1) Script Title:
Stepcarousel.js
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm
3) Describe problem:
I don't want the pagination be some bullet thingy, i just want to see the numbers. Is there any way to acomplish this?

thanks!

ddadmin
02-24-2010, 12:40 AM
It's certainly possible, though unfortunately not easily. The auto pagination code had images squarely in mind. Your best bet at the moment is just to manually include links within the pagination DIV that go to the desired panel(s), since the script supports the public functions stepTo() and stepBy(). For example:


<p id="mygallery-paginate" style="width: 250px; text-align:center">
<a href="javascript:stepcarousel.stepTo('mygallery', 1)">1</a>
<a href="javascript:stepcarousel.stepTo('mygallery', 2)">2</a>
<a href="javascript:stepcarousel.stepTo('mygallery', 3)">3</a>
</p>

See the bottom of the script page (http://www.dynamicdrive.com/dynamicindex4/stepcarousel.htm) for more info on these functions.

chalin
03-02-2010, 08:42 PM
thanks!!!! that will make it.

and i have another question... how can i change the font color for the selected panel

example:
if i click "2" then 2 must change from red to black and if i click "3" then, 2 must change to red and 3 to black