+ Reply to Thread
Results 1 to 8 of 8

Thread: Image gallery help

  1. #1
    mikel2k3 is offline x10 Lieutenant mikel2k3 is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    West Yorkshire - UK
    Posts
    374

    Image gallery help

    I am currently using this to make my image gallery's for photographers, models etc:
    www.distrasdesigns.com/photography

    But what I would like to know, is there anyway for it to happen that when you click on a thumbnail, the image will open in the same window (instead of a new window).

    I was thinking of doing it using an IFRAME, but this would only work if all the images are the same size? If a different sized image were to be opened in the IFRAME, a lot of whitespace would be there, and make it ugly against a black background.

    I know there are ways getting around this using CSS code, such as making the IMG tag be forced to a certain width and height, but then the image would be stretch out of proportion.

    All help appreciated
    -----------------------------------
    -----------------------------------

    http://www.DistrasDesigns.com

    -----------------------------------
    -----------------------------------

  2. #2
    Anna's Avatar
    Anna is offline I am just me Anna is a name known to allAnna is a name known to all
    Join Date
    Aug 2007
    Location
    Sweden
    Posts
    6,569

    Re: Image gallery help

    yes there is, you need to find the code inside the right file where the link is created and modify that. Other then that I don't think there is an option.

    checked the site and the source code, this is the part you wanna remove from that link:
    Code:
    target="new" onclick="return popuplinkfunc(this)"
    Suppose it might be a bit tricky to find though.
    Last edited by Anna; 08-29-2007 at 02:42 PM.

  3. #3
    maikefutesi is offline x10Hosting Member maikefutesi is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    16

    Re: Image gallery help


  4. #4
    mikel2k3 is offline x10 Lieutenant mikel2k3 is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    West Yorkshire - UK
    Posts
    374

    Re: Image gallery help

    Quote Originally Posted by LadyAnna View Post
    yes there is, you need to find the code inside the right file where the link is created and modify that. Other then that I don't think there is an option.

    checked the site and the source code, this is the part you wanna remove from that link:
    Code:
    target="new" onclick="return popuplinkfunc(this)"
    Suppose it might be a bit tricky to find though.
    If i took out that line of code, it would just do the default of either opening in a new window, or that same window. Either way, it would still involve the user having to manually click the browsers back button.


    maikefutesi
    I already knew about lightbox, wasnt sure if its what my client wanted though. Ill ask him, thanks for reminding me about it
    -----------------------------------
    -----------------------------------

    http://www.DistrasDesigns.com

    -----------------------------------
    -----------------------------------

  5. #5
    The_Magistrate's Avatar
    The_Magistrate is offline x10 Elder The_Magistrate is an unknown quantity at this point
    Join Date
    May 2005
    Location
    PA
    Posts
    559

    Re: Image gallery help

    Although it isn't supported in the latest versions of the XHTML standard, you can use target="_self" in the anchor tag. See the documentation here:

    http://www.w3schools.com/tags/tag_a.asp

    <a href="http://www.x10hosting.com" target="_self">x10</a>
    Last edited by The_Magistrate; 08-30-2007 at 01:40 PM.
    Getting Started | Terms of Service | Paid Hosting | Forum Rules | Free Server Status | Banned Countries

    If I have helped you through one of my posts, please click the
    blue checkbox on the right below my avatar to add to my reputation.

  6. #6
    maikefutesi is offline x10Hosting Member maikefutesi is an unknown quantity at this point
    Join Date
    Aug 2007
    Posts
    16

    Re: Image gallery help

    If you already knew about Lightbox but don't want/like it, you can always check out plugins from popular libraries. (Prototype, jQuery, MooTools)

    I'm sure jQuery would have a plugin or ten you would like

  7. #7
    Statico is offline x10Hosting Member Statico is an unknown quantity at this point
    Join Date
    Jul 2005
    Posts
    34

    Re: Image gallery help

    Quote Originally Posted by The_Magistrate View Post
    Although it isn't supported in the latest versions of the XHTML standard, you can use target="_self" in the anchor tag. See the documentation here:

    http://www.w3schools.com/tags/tag_a.asp

    <a href="http://www.x10hosting.com" target="_self">x10</a>

    I guess the same (or similar) attributes of the anchor target parameter are applicable in
    Code:
    var href_target="new" //Enter target attribute of links, if applicable

  8. #8
    mikel2k3 is offline x10 Lieutenant mikel2k3 is an unknown quantity at this point
    Join Date
    Aug 2005
    Location
    West Yorkshire - UK
    Posts
    374

    Re: Image gallery help

    Ive decided to use the lightbox thing. Ive shown the client how to add photos in the HTML and he is pretty pleased with it.

    www.distrasdesigns.com/arp/index_b.html

    Thats the site its being put on

    thanks for the help
    -----------------------------------
    -----------------------------------

    http://www.DistrasDesigns.com

    -----------------------------------
    -----------------------------------

+ Reply to Thread

Similar Threads

  1. The [Postable] Image Gallery
    By dragoneye_xp in forum Off Topic
    Replies: 2
    Last Post: 01-19-2006, 05:42 PM
  2. errors while attaching
    By mattspec in forum Feedback and Suggestions
    Replies: 0
    Last Post: 12-19-2005, 01:50 PM
  3. November Desktop
    By n4tec in forum Off Topic
    Replies: 12
    Last Post: 11-08-2005, 07:18 AM
  4. Whats The Best Image Gallery
    By Tyler in forum Scripts & 3rd Party Apps
    Replies: 22
    Last Post: 08-05-2005, 09:15 PM
  5. Placing ads on 4images image gallery
    By sh8y in forum Free Hosting
    Replies: 2
    Last Post: 02-22-2005, 10:19 AM

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