It can be done. You need to change two JS functions in the following manner:
Code:
function backward(){
if (which>0){
which--
if(which != photos.length - 1) document.getElementById('next').style.display = 'inline';
if(which == 0) document.getElementById('prev').style.display = 'none';
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}
function forward(){
if (which<photos.length-1){
which++
if(which == photos.length -1)document.getElementById('next').style.display = 'none';
if(which > 0) document.getElementById('prev').style.display = 'inline';
applyeffect()
document.images.photoslider.src=photos[which]
playeffect()
keeptrack()
}
}
After that you need to assign unique IDs to the hyperlinks - Previous Slide and Next Slide in the following manner:
Code:
<tr>
<td height="21" width="50%"><p align="left"><a href="#" onclick="backward(this);return false" id="prev">Previous Slide</a></p></td>
<td height="21" width="50%"><p align="right"><a href="#" onclick="forward(this);return false" id="next">Next Slide</a></p></td>
</tr>
If you use any IDs other than 'prev' and 'next' then you have to make the necessary changes in the highlighted area of the JS code.
Bookmarks