NOTE: The link in the above post was not to any script. I assumed you meant the one from your other post, which was essentially a duplicate of this post, but in the wrong section. If you have another script in mind, let us know.
This is an old script. I see it uses hash tag links as controls. Those can make a page jump to the top, but since the onclick event returns false, that shouldn't, and in fact doesn't happen for me. Some browsers might think though, once you're at the end, the return value is determined by something else. What browser and device are you using? Have you changed anything? If it is the hash tag link that's causing this, you can get rid of those. Where it has:
Code:
<tr>
<td width="50%" height="21"><p align="left"><a href="#" onClick="backward();return false">Previous Slide</a></td>
<td width="50%" height="21"><p align="right"><a href="#" onClick="forward();return false">Next Slide</a></td>
</tr>
Change that to:
Code:
<tr>
<td width="50%" height="21"><p align="left"><span style="cursor: pointer; color: navy;" onclick="backward();">Previous Slide</span></td>
<td width="50%" height="21"><p align="right"><span style="cursor: pointer; color: navy;" onclick="forward();">Next Slide</span></td>
</tr>
If you want more help, please answer the browser/device questions and post a link to the page on your site that contains the problematic code, so we can check it out.
Bookmarks