The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
http://homepage.ntlworld.com/darkus/Jetset/gallerytest.htm
At the moment there is a gallery and you have to look at each image individually and close the pop up window to view the next image.
I want to have a 'previous photo' and 'next photo' link in the pop up window that brings up the next or previous image in the series. I am guessing there is probably some javascript out there that can do this but i dont have a clue how. Can anyone help me!!!!!!!!!
p.s. good to see you back Tyla, where ya been dude? :)
'cus that's what I've done this in.
If not, I'll have to go back to the drawing board and try and remember the JavaScript.
Basically, the PHP Script includes options for the file names, using the 'switch' function. You pass on the filename you want opened, like you have down now, but add the two other file names to the code, one for the previous and on for the next:
e.g.
if you used the link:
href="javascript:Open_Window('kens15.jpg', 'Popup', '630', '450');">

which means you want the kens15.jpg image shown, the PHP Script sees you want this one, and looks for that filename in the 'switch' funtion. When it finds it, it will take the 3 values assigned to the Show_Picture() function and print what you see in the new window. The first value representing the previous image, the second representing the current image (the one you intend on showing) and the third representing the next image.
case "kens15.jpg":
Show_Picture('kens12.jpg', 'kens15.jpg', 'kens14.jpg');
break;
or
case "current_image.jpg":
Show_Picture('previous.jpg', 'current_image.jpg', 'next.jpg');
break;
.. then the previous and next vaules can be assigned to the 'previous' and 'next' links, and will work correctly :).
Anyway, hopefully when I send you the two files, you'll notice what I mean .... and I hope what I just wrote makes some sort of sence to you. I'm unfortunatly not the best person in the world at explaining things.
Good luck though, hope it works.
Is that kinda what your after??
>
>
> If you haven't done anything by tomorrow, I'll try and write the code
> you'd need. It wouldn't be much though.
that'll be wicked. nice one :)
> I am in the middle of making this page up and am kinda stuck.
>
> http://homepage.ntlworld.com/darkus/Jetset/gallerytest.htm
>
> At the moment there is a gallery and you have to look at each image
> individually and close the pop up window to view the next image.
>
> I want to have a 'previous photo' and 'next photo' link in the pop up
> window that brings up the next or previous image in the series. I am
> guessing there is probably some javascript out there that can do this
> but i dont have a clue how. Can anyone help me!!!!!!!!!
PHP would be eaiser, all you would be doing then is refreshing the page on "next" or "previous" and only calling a new image... Brain is a little fluffy still from Xmas, so might be waffling!
> p.s. good to see you back Tyla, where ya been dude? :)
Having babies... well actually, getting ready for the imminent arrival of our son. Only two weeks to go now! Also working too hard! Don't really float about her much these days as I don't have the time anymore and there's more and more idiots joining each day...
There is a JS answer to your question... just can't remember it off the top of my head.
E.G.
and maybe add a bit of HTML into the JavaScript code you have which opens the windows, to include links to the previous and next images.
Sorry, if that doesn't make sence. I'm off out in a sec, otherwise I would have just written something out for you to copy and past.
If you haven't done anything by tomorrow, I'll try and write the code you'd need. It wouldn't be much though.
http://homepage.ntlworld.com/darkus/Jetset/gallerytest.htm
At the moment there is a gallery and you have to look at each image individually and close the pop up window to view the next image.
I want to have a 'previous photo' and 'next photo' link in the pop up window that brings up the next or previous image in the series. I am guessing there is probably some javascript out there that can do this but i dont have a clue how. Can anyone help me!!!!!!!!!
p.s. good to see you back Tyla, where ya been dude? :)