Results 1 to 4 of 4

Thread: Image Thumbnail Viewer II Descriptions

  1. #1
    Join Date
    Oct 2008
    Location
    NYC
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Image Thumbnail Viewer II Descriptions

    1) Script Title: Image Thumbnail Viewer II

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

    3) Describe problem:
    Hi. This is my first time using JavaScript so I apologize if this question is stupid. Here is my problem.

    I am having trouble getting descriptions to appear with the larger image.
    I am using Image Thumbnail Viewer II - so far I have it working so that if I mouse over a thumbnail a large image appears to the right. I would like to have a description or caption appear under the large image and I have attempted to use the alt tags but the text does not appear.

    I have left the beginning of the script as is:

    var thumbnailviewer2={
    enableTitle: true, //Should "title" attribute of link be used as description?
    enableTransition: true, //Enable fading transition in IE?
    hideimgmouseout: false, //Hide enlarged image when mouse moves out of anchor link? (if enlarged image is hyperlinked, always set to false!)

    In the body of my webpage, here is an example of a link I am using.

    <a href="images/vest1.jpg" rel="enlargeimage::mouseover" rev="loadarea"><img src="images/vest1small.jpg" alt="Vest" width="100" border="0"></a><br>

    Isn't the alt="Vest" the part that should become the description?

    Please let me know if you can help.
    Thank you!
    Rebecca

  2. #2
    Join Date
    Oct 2008
    Location
    NYC
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Solved but new question

    Hi, so I figured out the title thing - you add a title attribute to the link, not an alt attribute to the thumbnail.

    Anyhoo...How can I control the font of the caption that shows up?
    Thank you,
    Rebecca

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Quote Originally Posted by rebsy View Post
    How can I control the font of the caption that shows up?
    To answer that, it would be helpful for you to consider that the caption will be in the load area configured for the larger image. So given:

    Code:
    <a href="images/vest1.jpg" rel="enlargeimage::mouseover" rev="loadarea"> . . .
    The larger image and its caption will show up in an element with the id of loadarea. So in your stylesheet (preferred) or inline for the loadarea element you can set style, including font-family, and if you like, any other style property value pairs that would be valid and applicable. Example using a stylesheet entry:

    Code:
    #loadarea {
    font-family: verdana, arial, sans-serif;
    }
    Example using inline style:

    HTML Code:
    <div id="loadarea" style="font-family: verdana, arial, sans-serif;"></div>
    - John
    ________________________

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

  4. #4
    Join Date
    Oct 2008
    Location
    NYC
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks John! Totally worked!
    -Rebecca

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
  •