Have the next page button already on the page, hide it just as the page is
shown, then show it and hide the next slide button when you reach the last
slide. You can do that with a css toggle by giving toggle classes to the
nearest parent of both the next page and next slide buttons and writing a
css rule that does the hiding / showing when the toggle class is present or
not.

Michel Belleville


2009/11/4 Arpanet <neilbrad...@gmail.com>

> Hi there,
>
> I'm developing a page that will present the user with a content
> slider, so that the user can click 'next' to browse through the
> slides.
>
> However, when the user reaches the last slide in the list the 'next'
> button needs to be replaced with a different button and take the user
> to another page on the site instead of going back to the beginning of
> the slides.
>
> I wondered if anyone had any advice on how to code this?
>
> Thank you.
>

Reply via email to