|
#1
|
|||
|
|||
|
Previous - Next Image: Can this be looped?
Hi all,
I am using the previous and net template tags. At present if you progress through all images you come to the start / end of your images. Is there a way to make this loop so you go straight to the beginning / end of your images? Thanks |
|
#2
|
||||
|
||||
|
right now it can't be looped as far as I know
|
|
#3
|
|||
|
|||
|
Perhaps with something like this:
Code:
<script type="text/javascript">
function browsing(){
var existprev = "<IMAGE_PREVIOUS_ID>";
var existnext = "<IMAGE_NEXT_ID>";
if (existprev != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_prev" onclick="document.location=\'index.php?showimage=<IMAGE_PREVIOUS_ID>\';"></a>');
}
if (existnext != "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_next" onclick="document.location=\'index.php?showimage=<IMAGE_NEXT_ID>\';"></a>');
}
if (existnext = "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_next" onclick="document.location=\'index.php??????????????\';"></a>');
}
if (existprev = "<IMAGE_ID>"){
document.write('<a href="#" id="menu_browse_next" onclick="document.location=\'index.php\';"></a>');
}
}
</script>
... just an idea.
|
|
#5
|
||||
|
||||
|
As Vernon already pointed out, an addon has already been created for quite some time. Here's the link to the forum post and download:
http://www.pixelpost.org/forum/showthread.php?t=3360
__________________
Pixelpost Documentation | Visual Pixels | My Addons | Transition Bottlerocket Fund |
|
#6
|
|||
|
|||
|
Thanks for that. I didn't see that before so thanks for the nod
![]() Karl |
| Post Reply |
| Thread Tools | |
|
|