Results 1 to 6 of 6

Thread: Together do not work

  1. #1
    Join Date
    Oct 2007
    Location
    Brazil
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Together do not work

    1) Script Title: CMotion Image Gallery + Animated Collapsible DIV

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

    3) Describe problem: I´m using both DD Scripts on my project but when I put the motioncontainer and motiongallery (DIVs from CMotion Image) inside the "cat" (DIV from Animated Collapsible), for example, the motiongallery don't hide in IE6.. I've changed some CSS functions from CMotion Image like: position, float, visibility, but nothing happen.

    Take a look:




    Someone could give me a little help.
    hUgs.
    Last edited by Leoferr; 10-11-2007 at 01:38 PM. Reason: Took an image for example.

  2. #2
    Join Date
    Oct 2007
    Location
    Brazil
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Hooray! I´ve got it!

    Fellows,
    The solution for my little problem called: iFrame!
    --------------

    When I created it inside the "cat" div, everything worked fine!

  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

    Some folks don't like iframe. Here's a version of Cmotion:

    http://www.dynamicdrive.com/forums/s...3998#post53998

    that can do multiple instances on a page and that should 'play nice' with other scripts.
    - John
    ________________________

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

  4. #4
    Join Date
    May 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Sorry I'm drudging this post up from a few years ago.

    I've tried to use the animated div and cmotion together, even tried the cmotion object oriented code provided above.

    The problem I'm encountering is that the Cmotion won't scroll if I load the page with the gallery's div hidden. If I leave it open, it loads fine and scrolls fine.

    I've been searching and trying to debug for hours, still have no solution.

    Can anyone help?

  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

    Hidden (css: visibility: hidden; or scripted: .style.visibility = 'hidden';) should be OK. Display none (css: display: none; or scripted: .style.display = 'none';) would not. When an element or its parent is display none, the browser cannot calculate its dimensions, something that is essential for Cmotion and many other scripts.

    However, using visibility hidden will not take the content out of the flow of the page, leaving a gap (possibly a big one) when whatever is hidden cannot be seen. But there is a solution. One can make the visibility hidden, the position absolute, and, using negative left and right style properties, position the element off the page to the top and left (where it will not cause scrollbars for the page). Then when you want it to be seen, set its position to static and visibility to visible.
    - John
    ________________________

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

  6. #6
    Join Date
    May 2010
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Spectacular John, worked like a charm.
    Thanks for your help.

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
  •