Results 1 to 3 of 3

Thread: image question for thumbnailviewer2

  1. #1
    Join Date
    May 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default image question for thumbnailviewer2

    1) Script Title: thumbnail2

    2) Script URL (on DD): http://www.dynamicdrive.com/dynamici...thumbnail2.htm

    3) Describe problem: not realy a problem the script is working just fine but I do want to know if it is possible to pre set the max image size.

    right now when a visitor mouses over a thumbnail the larger picture shows right where i planned it, but....

    if that image exceeds 400X280 it rips my page in pieces.

    so I need a line of coding that tells the image never to exceed 400X280 (strange size but thats what I have in space available) best proportions would be (image max size="320X240)

    since i have no clue on how to achieve this i came back to the writer hoping i can find a sollution here

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    28,991
    Thanks
    43
    Thanked 3,198 Times in 3,160 Posts
    Blog Entries
    12

    Default

    You can use css style to do that. Say your larger images are shown in the loadarea div, then put this in the head of the page:

    Code:
    <stlye type="text/css">
    #loadarea img {
    	max-width: 320px;
    	max-height: 240px;
    }
    </style>
    The browser cache may need to be cleared and/or the page refreshed to see changes.

    If you want more help, please include a link to the page on your site that contains the problematic code so we can check it out.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  3. #3
    Join Date
    May 2013
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by seccondbest View Post
    hello John,

    I have copied the css code as you said to the head of my index page, I placed a picture that is way to big in the image galery and opened the index page.

    On opening it displays the image in the dimensions as I wanted, however as soon as I mouse over anyother image and than return to the main imgage it rips the page again.

    as requested i have included a link to the site, this is a site not completely finished but functional if you can look at it and hopefully find a sollution I would be very gratefull.

    http:www.ivisser.nl

    regards martin

    STOP! lol my bad, it clearly stated put the css in the HEAD section not under it.


    I made the mistake of placing the css you gave me under the head section, after correcting that mistake it is working like a charm!

    aswome script and perfect support thank you so much

Similar Threads

  1. thumbnailviewer2 and swf files
    By phardt in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 09-15-2010, 08:49 PM
  2. Image Fade In on thumbnailviewer2
    By er777 in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 08-03-2010, 02:49 AM
  3. Fade image in on thumbnailviewer2
    By er777 in forum Dynamic Drive scripts help
    Replies: 0
    Last Post: 07-27-2010, 05:49 AM
  4. thumbnailviewer2.js starting with first image
    By fpieters in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 10-05-2009, 05:56 PM
  5. Thumbnailviewer2: NEED HELP
    By webill in forum Dynamic Drive scripts help
    Replies: 7
    Last Post: 05-04-2007, 06:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •