Results 1 to 3 of 3

Thread: Expando Image script

  1. #1
    Join Date
    Mar 2007
    Posts
    40
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default Expando Image script

    1) Script Title: Expando Image script

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

    3) Describe problem: I need to add a line of text under the image after it expands
    please help

  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

    Script author here - Though it's probably possible to get this script to do that, it would greatly increase it's footprint. Unlike other scripts that already create a faux window from a div (The original one is Lighbox), which can include the larger image and a caption, with this script there is nothing other than the image. We would have to add an element (probably a div) and have that contain the desired text, but only when the image is enlarged.

    A good compromise might be to just give your expando image(s) a title attribute. Since the cursor needs to be over the image anyway in order for it to be expanded, a title attribute would show, example:

    Code:
    <img title="This is my favorite cat, Marcie. She has been with us for almost 8 years" class="expando cat" border="0" src="cat.png" width="200" height="88">
    If that's not good enough for you, I would suggest you look into Lightbox, which gives you an enlarged image with fade in (not zoom) and optional captions:

    http://lokeshdhakar.com/projects/lightbox2/

    or other similar scripts, some of which have an option for the image to appear to expand and include a caption with the expanded image. Fancybox has an option like that:

    http://fancyapps.com/fancybox/#examples

    Click on the second image.
    - John
    ________________________

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

  3. #3
    Join Date
    Mar 2007
    Posts
    40
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Default

    ok thank you the title attribute did,nt work but I tried the lightbox & went for that, thanks

Similar Threads

  1. Expando Image Script
    By maroun_sawma in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 01-09-2012, 01:39 PM
  2. Expando Image script
    By Mr.Mike in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 08-31-2010, 11:09 PM
  3. Image Expando script
    By free3yourmind in forum Dynamic Drive scripts help
    Replies: 1
    Last Post: 01-28-2010, 10:45 PM
  4. Expando Image script help
    By kpall312 in forum Dynamic Drive scripts help
    Replies: 2
    Last Post: 03-03-2009, 05:30 PM
  5. Expando Image Script
    By jscheuer1 in forum Submit a DHTML or CSS code
    Replies: 17
    Last Post: 01-17-2009, 12:03 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
  •