GetDotted Domains

Viewing Thread:
"Erm, image gallery links help..."

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.

Sat 28/12/02 at 19:03
Regular
Posts: 787
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!!!!!!!!!

p.s. good to see you back Tyla, where ya been dude? :)
Sun 29/12/02 at 12:24
Regular
"It goes so quickly"
Posts: 4,083
.... your host supports PHP, yes???

'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.
Sun 29/12/02 at 09:59
Regular
"..."
Posts: 890
Absolutely spot on! nice one dude. so what order do the images show up in? I guess it is by image name? Can you mail me the popup file to [email protected] :)
Sun 29/12/02 at 01:44
Regular
"It goes so quickly"
Posts: 4,083
http://www.chrisjhaig.co.uk/Darkus/

Is that kinda what your after??
Sat 28/12/02 at 19:36
Regular
"..."
Posts: 890
cjh wrote:
>
>
> 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 :)
Sat 28/12/02 at 19:11
Regular
"l33t cs50r"
Posts: 2,956
Darkus wrote:
> 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.
Sat 28/12/02 at 19:09
Sat 28/12/02 at 19:03
Regular
"..."
Posts: 890
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!!!!!!!!!

p.s. good to see you back Tyla, where ya been dude? :)

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

First Class!
I feel that your service on this occasion was absolutely first class - a model of excellence. After this, I hope to stay with Freeola for a long time!
Top-notch internet service
Excellent internet service and customer service. Top-notch in replying to my comments.
Duncan

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.