Results 1 to 3 of 3

Thread: Image Thumbnail Viewer II coding questions

  1. #1
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Image Thumbnail Viewer II coding questions

    1) Script Title: Image Thumbnail Viewer II

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

    3) Describe problem:
    I am wondering if someone might be able to tell me how to move the text label (image descritpion) from below the image, to the right side of the image (if possible).

    Also, is it possible to make the 1st image of the set be the default image, so there's not a blank page to start?
    Last edited by Kahne_Fan; 07-31-2009 at 01:16 PM.

  2. #2
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Sure, to answer your questions:

    1) Inside the .js file, the part that outputs the description is the below:

    Code:
    if (description!="") //Use title attr of the link as description?
    imageHTML+='<br />'+description
    So to get the description to appear to the right of the image, you might modify the output to something like:

    Code:
    if (description!="") //Use title attr of the link as description?
    imageHTML+='&nbsp;'+description
    Or something like:

    Code:
    if (description!="") //Use title attr of the link as description?
    imageHTML=description+" "+imageHTML
    2) You can simply manually add an image tag inside the enlarged image DIV container that shows the initial page, for example:

    Code:
    <div id="loadarea" style="width: 600px"><img src="test.gif" /></div>
    DD Admin

  3. #3
    Join Date
    Jul 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks!

    I haven't tried the first code yet, but the second worked like a charm!

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
  •