Results 1 to 6 of 6

Thread: CMotion and Scrolling AND now reflections

  1. #1
    Join Date
    May 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question CMotion and Scrolling AND now reflections

    Im using the script for Cmotion found at http://www.dynamicdrive.com/dynamici...iongallery.htm

    But I ran into a problem, no matter what i tried it just wont scroll from side to side. I'v placed all the filles in the right directories and entered the code as it said in the instructions. Can someone help me out? tell me what im doing wrong?

    The site that im trying to use it for: mantas.moved.in
    Last edited by woweriux; 05-17-2006 at 09:00 PM.

  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 your main.css file, you have this definition:

    Code:
    a{display:block;color: #F7F8FA;padding:10px}
    Either get rid of it (your page doesn't have any <a href= link tags on it except for the gallery) or, follow it with this gallery specific definition:

    Code:
    a{display:block;color: #F7F8FA;padding:10px}
    #trueContainer a {display:inline;padding:0;}
    - John
    ________________________

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

  3. #3
    Join Date
    May 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks mate, that worked perfectly...never thought that css file might've affected CMotion

  4. #4
    Join Date
    May 2006
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    OK now i have another problem...didn't really know who to turn to but figured something had to be changed in CMotion in order to add reflections to the images. (http://cow.neondragon.net/stuff/reflection/)
    It seems if include the reflection class then cmotion does not line up the images correctly.

  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

    Reflections uses the DOM to add elements to the page's markup. It uses divisions. A division is a block level element that introduces a line break into the flow of a page. The CMotion gallery, as written, cannot contain line breaks. If each image in the Cmotion gallery were to be in its own table cell in a table with a single row, it might work out. Try substituting such a table for the nobr element and give this table the nobr's id. Extra height will need to be added to the motioncontainer division, if you haven't already done so, to acommodate the added height of the reflections.
    - John
    ________________________

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

  6. #6
    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 just tried this and it worked, one other thing is that the nowrap value and white-space property need to removed from the inline style of the 'motiongallery' division for FF:

    HTML Code:
    <div id="motioncontainer" style="position:relative;width:700px;height:404px;overflow:hidden;">
    <div id="motiongallery" style="position:absolute;left:0;top:0;">
    
    <table id="trueContainer" ><tr>
    <td><a href="tarheel.jpg" rel="lightbox"><img src="tarheel.jpg" class="reflect" border=1></a></td>
    <td><a href="tarheel.jpg" rel="lightbox"><img src="tarheel.jpg" class="reflect" border=1></a></td>
    <td><a href="tarheel.jpg" rel="lightbox"><img src="tarheel.jpg" class="reflect" border=1></a></td>
    <td><a href="tarheel.jpg" rel="lightbox"><img src="tarheel.jpg" class="reflect" border=1></a></td>
    <td><a href="tarheel.jpg" rel="lightbox"><img src="tarheel.jpg" class="reflect" border=1></a></td>
    <td><a href="tarheel.jpg" rel="lightbox"><img src="tarheel.jpg" class="reflect" border=1></a></td>
    <td><a href="tarheel.jpg" rel="lightbox"><img src="tarheel.jpg" class="reflect" border=1></a></td>
    <td><a href="tarheel.jpg" rel="lightbox"><img src="tarheel.jpg" class="reflect" border=1></a></td>
    <td><a href="tarheel.jpg" rel="lightbox"><img src="tarheel.jpg" class="reflect" border=1></a></td></tr></table>
    
    </div>
    </div>
    - John
    ________________________

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

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
  •