Hi, i have this nice script that reads a CSV, it does a pagination, that is coded like this:
[code=php]<script language=”Javascript”>
<!–
if (document.images)
{
image1 = new Image
image2 = new Image
image1.src = ‘vorige1.jpg’
image2.src = ‘vorige2.jpg’
image3 = new Image
image4 = new Image
image3.src = ‘volgende1.jpg’
image4.src = ‘volgende2.jpg’
}
–>
</script>
</head>
</body>
<center><a href=”hollow.php?offset=-30″ onMouseOver=”document.mouseover.src=image2.src” onMouseOut=”document.mouseover.src=image1.src”><img src=”vorige1.jpg” border=0 name=”mouseover”></a>
<a href=”hollow.php?offset=30″
onMouseOver=”document.mouseover2.src=image4.src” onMouseOut=”document.mouseover2.src=image3.src”><img src=”volgende1.jpg” border=0 name=”mouseover2″></a>
Also i have a alternate version of the lightbox, called Lytebox…which is actually very cool.
What i want to do is, and i hope i can explain it, is to use the pagination inside the lightbox.
I’ve tried it but the problem is that my scripts reads a CSV, inside there are products, the amount of these products change daily.
I read like 30 products on one page, and then the offset shows the next 30.
And this goes on and on, even when there are no more products it still goes to the next page, but that’s ok.
What is not ok is that for the lytebox to work properly, i have to determine in front, how many pages i am going to make.
And it will end up like this:
[code=php]<a rel=”lyteframe[catalog]” href=”hollow2.php” rev=”width: 900px; height: 650px; scrolling: auto” target=_blank>
<a rel=”lyteframe[catalog]” href=”hollow2.php?offset=30″ rev=”width: 900px; height: 650px; scrolling: auto”</a>
<a rel=”lyteframe[catalog]” href=”hollow2.php?offset=60″ rev=”width: 900px; height: 650px; scrolling: auto” </a>
Is there a trick, because the lytebox looks inside the script if there are more <a rel=”lyteframe[catalog]” entries, and if i press next, it goes to the next entry…so what i want/need/love is that i do not have to make these entries inside my script but that the lytebox automatically, when i press next, goes to the next offset
I hope i explained it correctly 🙁