[SOLVED] JS for Thumbnail Gallery to Slide Show - almost there

This is a discussion on "[SOLVED] JS for Thumbnail Gallery to Slide Show - almost there" within the JavaScript Forum section. This forum, and the thread "[SOLVED] JS for Thumbnail Gallery to Slide Show - almost there are both part of the Program Your Website category.



Go Back   Webforumz.com > Main Forums > Program Your Website > JavaScript Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Jan 14th, 2008, 03:16
Junior Member
Join Date: Jan 2008
Location: Eastern Canada
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
[ALMOST SOLVED] JS for Thumbnail Gallery to Slide Show - almost there

Hi everyone,

Great site. I searched the forums for my problem but I haven't seen an answer to my specific question.

I'm attempting to make a photo gallery, in which, once the link is clicked, a pop up appears with a thumbnail gallery, and once a thumb is clicked the gallery in the pop up, changes to a slide show, and the image that appears is indicative of the thumb that was clicked.

Eg. I click on thumb 4/16 in the gallery and image 4/16 is displayed, because it's corresponding thumb was clicked. (Along with slide show navigation buttons.)

I have everything working now, however, the same image will appear regardless of the thumb that is clicked. Now, I know why it is doing this. It's because there is an image specified in the...

<td colspan="3"> <div align="center"><img src=Nebula00.gif name=PictureBox width=667 height=500>
</div></td>

If I take it out, it's blank when the pop up launches.

How can I get my thumb, to dictate what picture shows up in the popup slide show?

I know I could just make separate .htm pages for each pic but there has to be a JS that does this.

Here's the JS I'm using for the slide show.

http://www.codelifter.com/main/javas...lideshow4.html

Here's what my the code looks like for any given thumb.

<td valign="middle"><a href="asampleslideshow.htm"><!--img src="http://www.webforumz.com/images/thumbs/5-008.jpg" width="128" height="96" border="0"></a></td>

The thumb gallery is just batch photoshopped images in a table with a touch of css.

I've searched for a JS that does this specifically, but I haven't seen it yet.

Any help?

Thanks,

P.S. the "Read the forum rules" link in the intro admin PM doesn't work.

Regards

Last edited by UUDDLRLRBA; Jan 14th, 2008 at 17:00.
Reply With Quote

  #2 (permalink)  
Old Jan 14th, 2008, 03:25
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: JS for Thumbnail Gallery to Slide Show - almost there

Here is some of the latest JavaScript Slide Show Image Viewer - [Light Box 2.0]
You might want to check that out! The code that you use is too old and the link I gave you is much more interesting.

Cheers..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
  #3 (permalink)  
Old Jan 14th, 2008, 03:39
Junior Member
Join Date: Jan 2008
Location: Eastern Canada
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Re: JS for Thumbnail Gallery to Slide Show - almost there

That looks like it might do the trick. I'll have to reconsider the layout because the thumbs won't be able to be in the pop up, but I'll just have to make the table of thumbs more narrow so it fits.

Cool that it works in all browsers.

Thanks.
Reply With Quote
  #4 (permalink)  
Old Jan 14th, 2008, 03:53
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: JS for Thumbnail Gallery to Slide Show - almost there

Great..!

Or you want something like this [Hoverbox]
Cheers..
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
  #5 (permalink)  
Old Jan 14th, 2008, 05:57
alexgeek's Avatar
Technical Administrator

SuperMember
Join Date: Jul 2007
Location: Webforumz 24/7
Age: 15
Posts: 3,772
Blog Entries: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to alexgeek
Re: JS for Thumbnail Gallery to Slide Show - almost there

Quote:
Originally Posted by UUDDLRLRBA View Post
That looks like it might do the trick. I'll have to reconsider the layout because the thumbs won't be able to be in the pop up, but I'll just have to make the table of thumbs more narrow so it fits.
Not sure, but I don't think you will have to as lightbox appears over the rest of your site.

Solved!
Last Blog Entry: 3D Chess in your browser! (Mar 14th, 2008)
Reply With Quote
  #6 (permalink)  
Old Jan 14th, 2008, 11:41
Junior Member
Join Date: Jan 2008
Location: Eastern Canada
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Re: JS for Thumbnail Gallery to Slide Show - almost there

Quote:
Originally Posted by Monie View Post
Great..!

Or you want something like this [Hoverbox]
Cheers..
Naa. Although that may be useful for future projects.


Quote:
Originally Posted by alexgeek View Post
Not sure, but I don't think you will have to as lightbox appears over the rest of your site.

Solved!
You see, I had already created about 10 .htm pages of thumbs that were to be in popup forum (no global nav or header etc.) but now I'll have to squeeze the thumbs into a .htm page that has the nav and header etc.

It won't be a lot of work really, just a will have to be set up differently.

The end product should look pretty sharp.

Thanks again.
Reply With Quote
  #7 (permalink)  
Old Jan 14th, 2008, 16:31
Junior Member
Join Date: Jan 2008
Location: Eastern Canada
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Re: [SOLVED] JS for Thumbnail Gallery to Slide Show - almost there

I'm tinkering with lightbox now. It seems to work great, however, the Prev and Next tags don't show up.

They're in the correct folders, relative to the page.

When the instructions say "Check the CSS and make sure the referenced prevlabel.gif and nextlabel.gif files are in the right location. Also, make sure the loading.gif and closelabel.gif files as referenced near the top of the lightbox.js file are in the right location."

Does that mean the location relative to the page, or location by changing the properties of the styles?

E.g.
#prevLink { left: 0; float: left;}
#nextLink { right: 0; float: right;}

or

#prevLink:hover, #prevLink:visited:hover { background: url(../images/prevlabel.gif) left 15% no-repeat; }
#nextLink:hover, #nextLink:visited:hover { background: url(../images/nextlabel.gif) right 15% no-repeat; }


...have to be set?

The .gifs are in the images folder within the root folder.

Last edited by UUDDLRLRBA; Jan 14th, 2008 at 16:46.
Reply With Quote
  #8 (permalink)  
Old Jan 15th, 2008, 03:53
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: [SOLVED] JS for Thumbnail Gallery to Slide Show - almost there

The LightBox v2.0 link that I gave you explains it all and you still have problem with that huh? Well.. you just need to opens up your eyes a bit wider...

Quote:
If you have a set of related images that you would like to group, follow step one but additionally include a group name between square brackets in the rel attribute. For example:
<a href="http://www.webforumz.com/images/image-1.jpg" rel="lightbox[roadtrip]">image #1</a>
<a href="http://www.webforumz.com/images/image-2.jpg" rel="lightbox[roadtrip]">image #2</a>
<a href="http://www.webforumz.com/images/image-3.jpg" rel="lightbox[roadtrip]">image #3</a>
So, looking at your code here:
HTML: Select all
<a href="http://www.webforumz.com/images/animals/2005-010.jpg" rel="lightbox"><img src="http://www.webforumz.com/images/thumbs/2005-010.jpg"></a>
just need to modify all your image link to this one. Notice the [catCollection] is your image group name..
HTML: Select all
<a href="http://www.webforumz.com/images/animals/2005-010.jpg" rel="lightbox[catCollection]"><img src="http://www.webforumz.com/images/thumbs/2005-010.jpg"></a>
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
  #9 (permalink)  
Old Jan 15th, 2008, 14:01
Junior Member
Join Date: Jan 2008
Location: Eastern Canada
Posts: 42
Thanks: 0
Thanked 0 Times in 0 Posts
Re: [SOLVED] JS for Thumbnail Gallery to Slide Show - almost there

I thought "group images" would display several at once or something.

Makes perfect sense now, and works great.

Thanks again.
Reply With Quote
  #10 (permalink)  
Old Jan 16th, 2008, 00:46
Most Reputable Member
Join Date: Feb 2004
Location: Borneo
Age: 27
Posts: 1,608
Blog Entries: 2
Thanks: 0
Thanked 4 Times in 3 Posts
Send a message via Yahoo to Monie
Re: [SOLVED] JS for Thumbnail Gallery to Slide Show - almost there

Good to know you've actually solved it Now you can move on...
Cheers...
Last Blog Entry: ASP Programming Tips and Technique (Oct 26th, 2007)
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Embedding / Flash slide show not Validating Oak Flash & Multimedia Forum 3 Dec 26th, 2007 00:19
Photo slide show jtompkins Flash & Multimedia Forum 1 Oct 6th, 2007 00:05
Slide show/s :) OmiE Flash & Multimedia Forum 4 May 25th, 2007 04:55
Image slide show peebman2000 Flash & Multimedia Forum 8 Feb 15th, 2007 18:17
iFrame as Slide Show gribble Web Page Design 6 Nov 17th, 2005 19:07


All times are GMT. The time now is 06:03.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43