Results 1 to 8 of 8

Thread: Expando image problems

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

    Default Expando image problems

    Hi all
    I have used Expando and am really pleased with it apart from one thing....My test images (which can be seen on a test page at www.saturdaysquares.com/Demo.html ) expand underneath each other and I would like them to either expand on top of each other, or as in the demo, move the others out of the way.
    I have tried the revised expando.js file that I found in the forums but that makes the images disappear after they've contracted again.
    Any help on this would be much appreciated
    Thanks
    Ross

  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

    In future, please post about Dynamic Drive Scripts in the Dynamic Drive Scripts Help section here where I've moved this thread, and:

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format when asking a question.


    Try it without (highlighted) these and similar:

    Code:
    <div id="bv_Html1" style="position:absolute;left:267px;top:179px;width:100px;height:100px;z-index:10" align="left">
    <p>
    <img class="expando" border="0" src="http://saturdaysquares.com/car.jpg" width="100" height="100">
    </p>
    
    
    
    </div>
    - John
    ________________________

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

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

    Default

    Hi John
    Sorry for not posting this in the proper place and not following protocol.....it's my first post.
    Thanks for the tip, it worked a treat apart from the images are now at the top of the page but I think I can sort that one out (says he who has just started this web site stuff at 50 years old!!!)

    Thanks once again

    Ross

  4. #4
    Join Date
    Apr 2009
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Ok I spoke too soon.....how can I position the images where I want them?

    Thanks

    Ross

  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

    I've just been looking at the original link that you posted. It's a definite improvement. But basically you need to make a choice. Are you going to have things expand and push other content around (as in the demo page for this script), or are you going to go for some type of modification where the images expand more or less in place - without displacing surrounding content. Aside from that, you may put the images wherever you like. After all, they are just ordinary image tags.
    - John
    ________________________

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

  6. #6
    Join Date
    Apr 2009
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your continued help John
    Idealy I would like the images to expand in place and on top of each other without the displacement. In time I want to resize the original images (which will all be different) to a uniform size and to have them expand within the page ie. expand left, expand right, expand up etc. Also I would like the expanded image to be "clickable" but that is beyond me at this time.
    Right now, finding out how to position them where I want them is a challenge

    Regards

    Ross

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

    Then you should be working along the lines as developed in this thread:

    http://www.dynamicdrive.com/forums/s...ad.php?t=40871

    The current live page may be seen here:

    http://www.rubescartoons.com/

    With a more basic demo (which includes the script modifications and styling, as well as an on page helper script) here (use 'view source' to get the code):

    http://home.comcast.net/~jscheuer1/s...expando_zv.htm

    The modified script is here (right click, 'save as'):

    http://home.comcast.net/~jscheuer1/s.../expando_zv.js

    Apart from that, it sounds as though you also need some basic and/or intermediate help with page layout. Each 'image' in this new scheme is actually an image nested in a div element, involving positioning and background styles, ex:

    Code:
    <div class="excontainer start" id="image1">
    <img class="expando ex1" src="../vfs/images/01_lrg.jpg" width="75" height="56" alt="">
    </div>
    Once you have the modified code and units like the above, these may be (for positioning on the page) floated within another division, or each placed within a table's cell. Their individual styles determine which direction they will expand in.
    - John
    ________________________

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

  8. The Following User Says Thank You to jscheuer1 For This Useful Post:

    porkmeister (04-03-2009)

  9. #8
    Join Date
    Apr 2009
    Posts
    8
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thank you for your patience John.
    I tried what you said but now the images are just disappearing once they've contracted.
    I think I've bitten off more than I can chew here so I'm gonna leave it alone for a few days.
    Thanks again for your help, must be an uphill struggle trying to help guys like me.....sharing your knowledge like this is breath of fresh air in this day and age!!!
    Regards
    Ross

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
  •