There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
 
Tag Cloud
access audio avg avg 8 bios blue screen boot bsod computer connection cpu crash css dell desktop dma driver drivers dvd email error excel explorer firefox firefox 3 freeze gimp graphics hard drive hardware hijackthis hjt install internet internet explorer itunes keyboard laptop macro malware monitor motherboard network networking outlook outlook 2003 outlook 2007 outlook express pio problem problems router seo server slow sound sp3 spyware trojan usb video virtumonde virus vista vundo windows windows vista windows xp winxp wireless
Web Design & Development
Search
Search in:
 
Advanced Search
Tech Support Guy Forums > Internet & Networking > Web Design & Development >
Solved: click photo gallery


HELLO AND WELCOME! Before you can post your question, you'll have to register -- it's completely free! Click here to join today! We highly recommend that you print a copy of our Guide for New Members. Enjoy!

 
Thread Tools
skyhigh007's Avatar
Senior Member with 387 posts.
 
Join Date: Jun 2004
06-May-2008, 09:18 PM #76
I forgot to mention, would it work if you put those 1,2,3 under the thumbnail list instead of at the top and center it in the middle of the page with out the word "page" ?
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,491 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
06-May-2008, 10:45 PM #77
Of course!

EDIT: I suppose you actually wanna see that too...

Peace...
skyhigh007's Avatar
Senior Member with 387 posts.
 
Join Date: Jun 2004
06-May-2008, 11:00 PM #78
Yea, SHOW ME!
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,491 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
06-May-2008, 11:06 PM #79
Tomorrow.

It's actually quite simple to code up and the hiding/unhiding of the DIVs is easy enough to almost be considered trivial. The way I coded the page I posted screenshots of above, it will literally be trivial for me to move the navigation and center it, as you requested.

You won't believe how simple the HTML and CSS is.
You won't believe how simple the page is.
You just won't believe it!

Peace...
skyhigh007's Avatar
Senior Member with 387 posts.
 
Join Date: Jun 2004
06-May-2008, 11:16 PM #80
If its so simple then why I can't get it done ? Hm....
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,491 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
07-May-2008, 10:24 AM #81
I don't know what you're struggling with regarding the new gallery but the one you worked on previously was doing some fairly sophisticated stuff.

Peace...
skyhigh007's Avatar
Senior Member with 387 posts.
 
Join Date: Jun 2004
07-May-2008, 12:33 PM #82
yea, it was a bit difficult for me. but now I just want my gallery to be the same as the demo link i send (hide and show DIVs) Maybe I still dont get the concept of that show and hide divs
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,491 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
07-May-2008, 01:48 PM #83
Ok, I moved the gallery "navigation" section, as you requested, and added a color coding for the page of the gallery being viewed.

Peace...
Attached Thumbnails
solved-click-photo-gallery-safari-1.jpg  solved-click-photo-gallery-safari-2.jpg  solved-click-photo-gallery-safari-3.jpg  solved-click-photo-gallery-safari-4.jpg  
skyhigh007's Avatar
Senior Member with 387 posts.
 
Join Date: Jun 2004
07-May-2008, 01:58 PM #84
Wow! NICE! You use unoder list within unorder list?
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,491 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
07-May-2008, 02:40 PM #85
Nope. I did use unordered lists, however. I did something similar to the other gallery you sent the link to. I have each set of thumbnails in an unordered list and all THREE are defined in the same HTML file. Then, I hide/unhide them as you click the gallery "page" numbers. When you first view the gallery, the first "page" is unhidden, of course.

Nested unordered lists aren't needed given the hide/unhide technique being used.

Peace...
skyhigh007's Avatar
Senior Member with 387 posts.
 
Join Date: Jun 2004
07-May-2008, 03:37 PM #86
Ok, so the thumnails are in a div which are the unorder lists, the place for display a larger image is in a div, and the page(1,2,3) are in a div. Now, Im stuck onClick for the thumbnails.
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,491 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
07-May-2008, 04:04 PM #87
Quote:
Originally Posted by skyhigh007 View Post
Now, Im stuck onClick for the thumbnails.
How so? That code shouldn't change from before. Why not? Because you're changing the location of the large image and that element can be changed regardless of where it's located and regardless of it being in a DIV or a table cell, etc.

The same goes for the border around the thumbnails (or however else you're identifying the selected thumbnail). You're operating on the thumbnail elements individually so none of that logic should change either. What will be new is how to hide/unhide the thumbnails as they change logical gallery pages.

Peace...
skyhigh007's Avatar
Senior Member with 387 posts.
 
Join Date: Jun 2004
07-May-2008, 11:21 PM #88
It works for page 1 and 2, but it does not work for page 3 when you click on the thumbnail and the larger image wont come up
tomdkat's Avatar
Computer Specs
Distinguished Member with 3,491 posts.
 
Join Date: May 2006
Location: S.F. Bay Area, CA
Experience: Intermediate
08-May-2008, 12:55 AM #89
Then, you must have broken something.

I don't have the page I coded in front of me but I believe this is the JavaScript I used and it works on all three of my pages:

Code:
var oldThumb=null;

function swapImg(newImg,thumbnail) {
document.getElementById('large-img').src=newImg;

if (oldThumb != null) {
   oldThumb.style.border='none';
}

thumbnail.style.border='1px solid red';
oldThumb=thumbnail;
}
That code should look familiar since I believe I posted it on previous pages of this thread.

If you coded your new gallery correctly, the JavaScript you previously wrote should still work.

Peace...
skyhigh007's Avatar
Senior Member with 387 posts.
 
Join Date: Jun 2004
08-May-2008, 11:40 AM #90
Nevermind, I found the error. Two of the 3 lists had same id name thats why one of them doesn't come up. I guess I past it too fast.LOL

Last edited by skyhigh007 : 08-May-2008 11:48 AM.
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 Off
Refbacks are Off

You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 12:01 PM.
Copyright © 1996 - 2008 TechGuy, Inc. All rights reserved.
Powered by vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Powered by Cermak Technologies, Inc.