+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Gallery

  1. #1
    torrey is offline x10Hosting Member torrey is an unknown quantity at this point
    Join Date
    Feb 2008
    Location
    Chattanooga,TN
    Posts
    9

    Gallery

    Hey Everyone! I am attempting to build a phot gallery to display my work on some of the pages. I am currently using iframes but the pictures seem awkward in the current setup. Does anyone have a better layout idea than iframes or an idea for how to modify so it looks better.

    tselfphotography.exofire.net

  2. #2
    Hazirak's Avatar
    Hazirak is offline x10 Sophmore Hazirak is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    Georgia
    Posts
    197

    Re: Gallery

    It honestly looks pretty good to me, but if you really want to go for another method, you can swap your iframes for divs (if I remember correctly, div has a style option to handle overflows by adding a scroll bar), and use JavaScript to edit the img tag's src attribute whenever you click a preview image. To do that, you would use a block of code something like this either embedded in the page or as an external document:
    Code:
    function showImage(image) {
    document.getElemenyById(imageID).src=image;
    }
    ... and then add this to your preview image tags:
    Code:
    onclick="showImage('URL')"
    ... and add this to the full-size image tag:
    Code:
    id="imageID"
    ... and that should do it. Just replace "URL" with the image's location (keep the single quotes around the URL though), and get rid of your <a> tags... though, if you still want the user's mouse pointer to change to the pointing finger, you can just swap your current <a> tags for <a href="#">.
    Last edited by Hazirak; 03-17-2008 at 05:32 PM.

  3. #3
    Logicx's Avatar
    Logicx is offline x10Hosting Member Logicx is an unknown quantity at this point
    Join Date
    Feb 2008
    Location
    Canada Land
    Posts
    23

    Re: Gallery

    The Light Box 2 Code
    It's the way to go...
    you can find here...
    http://www.huddletogether.com/projects/lightbox2/
    Imagination Is...

  4. #4
    tittat's Avatar
    tittat is offline x10 Spammer tittat is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    Kerala,India
    Posts
    2,479

    Re: Gallery

    i will recommend using of high slide in your gallery http://vikjavev.no/highslide/?user=1


    my site gallery is powered with hihg slide.you may preview it here http://www.subeeshr.co.cc/gallery.html
    PLAY ONLINE GAMES
    WWW.TMONDO.COM PlayFar Flash Games
    Former X10 Forum Senior Moderator(Retired)


  5. #5
    ThePaintGuru is offline x10 Sophmore ThePaintGuru is an unknown quantity at this point
    Join Date
    Mar 2008
    Posts
    208

    Re: Gallery

    I would use that lightbox suggestion... iframes are still sometimes rendered strangely, and shouldn't be used unless you have a very good reason.
    ----------
    If you found my post helpful in some way, I'd really appreciate a few credits as I'm saving up for a domain.

    You can click the blue check mark in the upper right corner of this post to increase my reputation.

  6. #6
    Sohail's Avatar
    Sohail is offline x10 Spammer Sohail is an unknown quantity at this point
    Join Date
    Sep 2007
    Location
    London, UK
    Posts
    3,052

    Re: Gallery

    Why don't you create a completely different template/layout.

  7. #7
    soporteweb is offline x10Hosting Member soporteweb is an unknown quantity at this point
    Join Date
    Nov 2006
    Posts
    64

  8. #8
    jerseyautoparts is offline x10Hosting Member jerseyautoparts is an unknown quantity at this point
    Join Date
    Dec 2007
    Posts
    30

    Re: Gallery

    google it, im sure your find some.

  9. #9
    torrey is offline x10Hosting Member torrey is an unknown quantity at this point
    Join Date
    Feb 2008
    Location
    Chattanooga,TN
    Posts
    9

    Re: Gallery

    anks everyone. I have a series of new pictures coming in adn I aplan on trying some of your suggestions for my new wedding albums page.

  10. #10
    VPmase's Avatar
    VPmase is offline x10 Elder VPmase is an unknown quantity at this point
    Join Date
    Nov 2007
    Location
    Dixon, IL, USA
    Posts
    914

    Re: Gallery

    Quote Originally Posted by Hazirak View Post
    It honestly looks pretty good to me, but if you really want to go for another method, you can swap your iframes for divs (if I remember correctly, div has a style option to handle overflows by adding a scroll bar), and use JavaScript to edit the img tag's src attribute whenever you click a preview image. To do that, you would use a block of code something like this either embedded in the page or as an external document:
    Code:
    function showImage(image) {
    document.getElemenyById(imageID).src=image;
    }
    ... and then add this to your preview image tags:
    Code:
    onclick="showImage('URL')"
    ... and add this to the full-size image tag:
    Code:
    id="imageID"
    ... and that should do it. Just replace "URL" with the image's location (keep the single quotes around the URL though), and get rid of your <a> tags... though, if you still want the user's mouse pointer to change to the pointing finger, you can just swap your current <a> tags for <a href="#">.
    document.getElemenyById(imageID).src=image;
    should be
    document.getElemenyById('imageID').src=image;
    }

+ Reply to Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. can't access 4images gallery main page.
    By musicana in forum Free Hosting
    Replies: 1
    Last Post: 11-16-2007, 08:08 AM
  2. Gallery Upgrade Issue
    By digitaljit in forum Free Hosting
    Replies: 13
    Last Post: 04-17-2007, 08:22 AM
  3. Whats The Best Image Gallery
    By Tyler in forum Scripts & 3rd Party Apps
    Replies: 22
    Last Post: 08-05-2005, 09:15 PM
  4. gallery
    By motokruisers in forum Scripts & 3rd Party Apps
    Replies: 8
    Last Post: 06-15-2005, 08:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers