Printer Friendly Version Print this thread
Email this thread to a friend eMail this thread to a friend
Related Forum Posts
Featured Web Site Template

Hundreds More at Free Site Templates.com!

Web Site Partners
Sponsored Links
Jet City Software
 
Whos Here ?
There are 0 guests and 2 members in the forums right now.
Reflects user activity within the last 5 minutes
Member Message

ofi
Joined: Feb 11, 2007
# Posts: 1

View the profile for ofi Send ofi a private message

Posted: 02/12/2007 02:14 pm
Edit Message Delete Message Reply to this message

Hi this is my first post here, i am from Iceland, so hi all.

ok, my lang is Icelandic, so my English is not so good.

see my gallery here gallery at the botton i have added Prev - Next script in gallery script, what i like to do is, in first page it would be only next, next pages Prev - Next, and last page would be Prev.

here is the code


Code: [copy]





hope you understand what i mean.
thx



Dinkar
Staff
Joined: Aug 12, 2001
# Posts: 4356

View the profile for Dinkar Send Dinkar a private message

Posted: 02/12/2007 09:11 pm
Edit Message Delete Message Reply to this message

It's easy.

For first page -

if offset == 0 then show only 'next' link only.

For Last page -

..well, you need to know which page is the last page so you need to know the total number of records. ->

if offset == total_number_of_records then show 'previous' link only.

HTH.



You are not permitted to post messages in this forum or topic, because of one or more of the following reasons:
  1. You have not yet logged in, or registered properly as a member
  2. You are a member, but no longer have posting rights.
  3. This is a private forum, for which you do not have permissions.

If you are a recent member, it's possible that you simply have not yet confirmed your account. Please check your email for a message entitled 'JimWorld Forums: Confirm Your Account' and follow the instructions contained within.

If you cannot find this message, click here to Re-Send it.

If you are still experiencing problem, please read the Login Assistance Article for some advice on what may be causing your login not to work properly.

Switch to Advanced Editor and ... Create a New Topic or Reply to this Thread

New posts Forum is locked
© 1995  ·  iWeb, Inc  ·  DBA JimWorld Productions