Coding Thread, help with Java for a webpage... in Coding and Web Development; I'm trying to update my mates website. He's an artist so its just pages and pages of pictures. So i ...
-
7th February 2009, 06:00 PM #1 help with Java for a webpage...
I'm trying to update my mates website. He's an artist so its just pages and pages of pictures. So i had a browse see what i could come up with to make life easier for me. Found this css gallery with a bit of java that creates a new page when the thumbnail is clicked, well thats what i though.... i cant for the life of me get it to work!!!
I'm obviously missing something...
dont laugh...
Free Web Template: Simple Photo Gallery Layout
-
-
IDG Tech News
-
7th February 2009, 06:07 PM #2 Hey,
How many pictures are you talking about? It might be worth installing something like Coppermine to manage the "pictures" as "albums" or so, which might look a bit sexier than raw gallery stuff.
Alternatively, I have some code (it's for linux though (using transmogrify)...) that takes the pictures, resizes them, creates thumbnails and then generates the kind of tabled box effect that link shows.
-
Thanks to kmount from:
Little-Miss (7th February 2009)
-
7th February 2009, 06:42 PM #3 well the disk he's given me has 250 on...and thats the first disk. The current website has got to have coming up to a 1000...
Never thought about some sorta php website. I think its because im used to using my basic webhost instead of his which does support php...
-
-
7th February 2009, 06:55 PM #4 Coppermine Sample Gallery Here
Might be worth a look, especially if you have that many pictures.
Alternatively, if it'll save you grief I can batch process all of those and send you back thumbnails & the html to knock up a simple table of x rows by y columns
-
-
7th February 2009, 06:56 PM #5
-
-
8th February 2009, 12:03 AM #6 
Originally Posted by
Little-Miss
Hi
I've had a quick look at the photogallery template and have got it going
Javascript is fine - didn't need to change anything
What you need to do is check where you are storing the images
In the first XHTML file from the photogallery template there are two images defined - one for the thumbnail (washing_tn.jpg) and the second (washing.jpg) is the full size image is shown (by the second XHTML page) when you click on the thumbnail
This is the thumbnail bit
<img src="../graphics/washing_tn.jpg" width="100" height="100" />
NOTE it forces image resizing (width="100" height="100" ) - so you don't really have to have a seperate thumbnail image if you don't want to
Now we need to sort out where you are storing the images on the web server
If your html files are in
<folder path on your web server>/www/index.html
Then washing_tn.jpg should be found at
<folder path on your web server>/graphics/washing_tn.jpg
So you'll have something like
<folder path on your web server>/www/index.html
<folder path on your web server>/www/other.html
etc
<folder path on your web server>/graphics/washing.jpg
<folder path on your web server>/graphics/washing_tn.jpg
etc
See below - I've modified the Div section so that it is NOT using a seperate thumbnail image file
<div class="left">
<a href="photo.html?src=../graphics/washing.jpg&height=337&alt=Mali with Car">
<img src="../graphics/washing.jpg" width="100" height="100" />
</a>
<br />
<p>Wash Time </p>
</div>
Checked on Firefox & IE6 - seems OK
Hope this helps -
wITch partner
-
Thanks to witch from:
Little-Miss (8th February 2009)
-
8th February 2009, 12:27 AM #7 Hello again!
Arent you wonderful! I shall give that a go tomorrow!!!
-
-
8th February 2009, 11:05 AM #8 I'd still make the thumbnails as with a simple resize in the html it'll still load the full image (bandwidth/size wise).
Good advice though.
-
-
8th February 2009, 04:17 PM #9 Yeah will definately do thiumbnails....his pictures are bloody huge!
Will give what Mr Witch recommended a go but am still looking into those Galleries...
-
-
8th February 2009, 04:20 PM #10 Something like Irfanview will do your thumbnails for you and rename them accordingly in a batch mode leaving you to fight with the stuff Mr Witch suggested.
-
-
8th February 2009, 06:03 PM #11 
Originally Posted by
kmount
I'd still make the thumbnails as with a simple resize in the html it'll still load the full image (bandwidth/size wise).
Good advice though.
If you haven't got too many images I wouldn't bother with the thumbnails as the full-sized image(s) would be downloaded and cached in the browser reay to use on the second page
BUT - If you have got a lot of images to present on the first page then thumbnails are probably recommended as the smaller files will help the page load faster - the the usre clicks on the image of interest to get the second page with full sized image
wITch partner

OOPs didn't spot the last couple of replies
Last edited by witch; 8th February 2009 at 06:10 PM.
-
-
8th February 2009, 06:17 PM #12 Whilst I agree, 1250 is a lot of images and definitely should be thumbnailed.
-
-
8th February 2009, 10:24 PM #13 Easy to use solutions
XML/SWF Slideshow > Gallery
SimpleViewer Download
I have used both of these very successfully and they are free
-
-
10th February 2009, 06:01 PM #14
- Rep Power
- 9

Originally Posted by
Little-Miss
Will give what Mr Witch recommended a go but am still looking into those Galleries...
Thanks for the name
-
SHARE: 
Similar Threads
-
By wellscs in forum Windows
Replies: 0
Last Post: 5th November 2008, 08:57 AM
-
By KWestos in forum How do you do....it?
Replies: 4
Last Post: 11th July 2008, 10:52 AM
-
By DSapseid in forum Scripts
Replies: 1
Last Post: 4th July 2008, 11:53 PM
-
By Zoom7000 in forum General Chat
Replies: 26
Last Post: 4th June 2008, 12:03 PM
-
Replies: 18
Last Post: 14th June 2007, 10:57 AM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules