i was trying to put this pasination on my site. it works fine. all the page do change but only one problem.
if i am on les say page 1. than link 1 background should be darker, so it look like i am on page 1. i think the problem is the link are not being set to active class. for ex on cssdeck.com they have
<span class="page dark active">4</span>
///////////////////////////////
/****** pagination **********/
///////////////////////////////
if($pages >= 1 && $page <= $pages)
{
echo"<div id='container'>";
echo"<div class='pagination dark'>";
echo'<a href="?page=1" class="page dark">first</a>';
for($x=2; $x< $pages; $x++) //botom pages link
{
echo'<a href="?page='.$x.'" class="page dark">'. $x .'</a> ';
}
echo'<a href="?page='. $x .'" class="page dark">last</a>';
echo"</div>";
echo"</div>";
}
This post has been edited by hwoarang69: 15 December 2012 - 11:32 PM

New Topic/Question
Reply



MultiQuote




|