Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Script Mod Request

  1. #1
    Join Date
    Jun 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Script Mod Request

    Image Thumbnail Viewer II
    http://www.dynamicdrive.com/dynamici...thumbnail2.htm
    I need a bit of help, could someone tell me how i can add text under the large image in this script.
    I can understand what a javascript is doing(most of the time) but wouldn't have a clue how to write one. If it could be as straight forward as DD makes them then it would be even better.
    I need it in the next 4 days so if someone could help me out that would be great.
    Thanks in advance.
    Stephen
    Last edited by stephen_wq; 06-04-2005 at 09:44 AM.

  2. #2
    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

    I like to play with these scripts now and then. Awhile back I made a mod up from this thumbnail viewer. It will do what you ask and more. Here is a demo:

    http://home.comcast.net/~jscheuer1/s...les/thumb2.htm

    Just view the source and save it to disk, configuration is outlined in the code. It is very similar to the current thumbnail viewer.
    - John
    ________________________

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

  3. #3
    Join Date
    Jun 2005
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks a lot, you are a lifesaver.
    I managed to use it with an imagemap and onclick commands, so thats even better.
    The caption bit is better than i expected, because it supports tags.

  4. #4
    Join Date
    Aug 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default two captions

    Can this have two diferant captions per image

    like rockpaperpixel.com (I know it is a flash design)

    look under potfolio

    thanks

    jj

  5. #5
    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

    Why is it that people often get so excited when they see two of something and think that it has to be different than one? Since you can put rich HTML text into the field used for the caption, you can have any amount of stuff there that you like, even a table or images.
    - John
    ________________________

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

  6. #6
    Join Date
    Aug 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default sub menu for viewer

    http://www.dynamicdrive.com/dynamic.../thumbnail2.htm


    on mouseover I have Exterior, closeup, interior.

    question: When I mouseover interior how can I bring a sub list that has bathroom, kitchen, ect.

    thank you (site is underconstruction)

    JJ

    <a href="#" name="" onMouseover="modifyimage('dynloadarea',0); get_cap(this.name);">Exterior</a>,&nbsp;&nbsp;
    <a href="#" name="" onMouseover="modifyimage('dynloadarea',1); get_cap(this.name);">Close up</a>,&nbsp;&nbsp;
    <a href="#" name="" onMouseover="modifyimage('dynloadarea',2); get_cap(this.name);">Interior</a>,&nbsp;&nbsp;
    <Div id="caploadarea"></div>

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Broken link.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  8. #8
    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

    Gee Twey, that was really helpful. I know that the broken link you are referring to is the one to the script on DD at the top of the post before yours but, 3pack might take your response as advice. Anyways, in addition to that minor problem, 3pack, your markup won't do anything in the way of adding a caption because no value is given for the attribute 'name'. It is also a little unclear what you are trying to do. I think you are trying to add an onmouseover event to the large version of the image but, cannot be certain of this from your post. A way to do that, would be to use the id of the image or its containing element (which in this script would be 'dynloadarea'):
    Code:
    document.getElementById('dynloadarea').onmouseover=function(){
    put code line(s) here
    }
    Where this code belongs is someplace that it will get executed when the associated image loads. This may require altering the basic script. If this pops up a menu, as I think you intend it to, best to add an onmouseout event too, that will hide the menu but, it gets more complicated with pop ups like that because just as soon you mouseover the pop up menu, you are mousing out of the image. So, other measures should be used to cancel the pop up, like on load of a new image coupled with mouseout of the pop up. Before I go too far on that, is this what you are trying to do?
    - John
    ________________________

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

  9. #9
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Quote Originally Posted by John
    Gee Twey, that was really helpful. I know that the broken link you are referring to is the one to the script on DD at the top of the post before yours but, 3pack might take your response as advice.
    Argh, sorry, didn't see the rest of the thread. I just woke up.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. #10
    Join Date
    Aug 2005
    Posts
    7
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    This might help the explanation. On this page you mouseover on photogallery and then you see exterior. What I want is when you mouseover exterior have a cluster of thumbnails and if I mouse over that the biggerone pops up. I think your script already does that, but not sure where to put it.

    thanks

    jj

    http://marottagroup.com/Listings/Sug.../Sugarhill.htm

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
  •