+ Post New Thread
Results 1 to 14 of 14
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 ...
  1. #1

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,559
    Thank Post
    2,378
    Thanked 753 Times in 461 Posts
    Blog Entries
    2
    Rep Power
    544

    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

  2. #2


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,692
    Thank Post
    352
    Thanked 797 Times in 716 Posts
    Rep Power
    347
    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.

  3. Thanks to kmount from:

    Little-Miss (7th February 2009)

  4. #3

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,559
    Thank Post
    2,378
    Thanked 753 Times in 461 Posts
    Blog Entries
    2
    Rep Power
    544
    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...

  5. #4


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,692
    Thank Post
    352
    Thanked 797 Times in 716 Posts
    Rep Power
    347
    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

  6. #5

    rush_tech's Avatar
    Join Date
    Jul 2006
    Location
    Nottingham
    Posts
    1,410
    Thank Post
    111
    Thanked 265 Times in 201 Posts
    Rep Power
    194
    Gallery 2 is an option

  7. #6

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,342
    Thank Post
    1,390
    Thanked 2,403 Times in 1,691 Posts
    Rep Power
    707
    Quote Originally Posted by Little-Miss View Post
    I'm trying to update my mates website

    Free Web Template: Simple Photo Gallery Layout

    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

  8. Thanks to witch from:

    Little-Miss (8th February 2009)

  9. #7

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,559
    Thank Post
    2,378
    Thanked 753 Times in 461 Posts
    Blog Entries
    2
    Rep Power
    544
    Hello again!

    Arent you wonderful! I shall give that a go tomorrow!!!

  10. #8


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,692
    Thank Post
    352
    Thanked 797 Times in 716 Posts
    Rep Power
    347
    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.

  11. #9

    Little-Miss's Avatar
    Join Date
    Oct 2007
    Location
    London
    Posts
    5,559
    Thank Post
    2,378
    Thanked 753 Times in 461 Posts
    Blog Entries
    2
    Rep Power
    544
    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...

  12. #10


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,692
    Thank Post
    352
    Thanked 797 Times in 716 Posts
    Rep Power
    347
    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.

  13. #11

    witch's Avatar
    Join Date
    Nov 2005
    Location
    Dorset
    Posts
    11,342
    Thank Post
    1,390
    Thanked 2,403 Times in 1,691 Posts
    Rep Power
    707
    Quote Originally Posted by kmount View Post
    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.

  14. #12


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,692
    Thank Post
    352
    Thanked 797 Times in 716 Posts
    Rep Power
    347
    Whilst I agree, 1250 is a lot of images and definitely should be thumbnailed.

  15. #13

    Join Date
    May 2008
    Location
    York
    Posts
    515
    Thank Post
    22
    Thanked 49 Times in 46 Posts
    Rep Power
    24

    Easy to use solutions

    XML/SWF Slideshow > Gallery
    SimpleViewer Download

    I have used both of these very successfully and they are free

  16. #14

    Join Date
    Feb 2009
    Posts
    45
    Thank Post
    1
    Thanked 5 Times in 5 Posts
    Rep Power
    12
    Quote Originally Posted by Little-Miss View Post
    Will give what Mr Witch recommended a go but am still looking into those Galleries...
    Thanks for the name

SHARE:
+ Post New Thread

Similar Threads

  1. AD Link on a webpage
    By wellscs in forum Windows
    Replies: 0
    Last Post: 5th November 2008, 08:57 AM
  2. redirect webpage
    By KWestos in forum How do you do....it?
    Replies: 4
    Last Post: 11th July 2008, 10:52 AM
  3. VBS in Webpage help
    By DSapseid in forum Scripts
    Replies: 1
    Last Post: 4th July 2008, 11:53 PM
  4. Design - Best Webpage you have ever seen?
    By Zoom7000 in forum General Chat
    Replies: 26
    Last Post: 4th June 2008, 12:03 PM
  5. Squid Webpage redirect
    By Stese in forum *nix
    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
  •