Results 1 to 7 of 7

Thread: CMotion positioning question

  1. #1
    Join Date
    Apr 2007
    Posts
    26
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Red face CMotion positioning question

    1) Script Title: CMotion Image Gallery II

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

    3) Describe problem:
    I have this code in a table that expands according to available browser space, so the x,y is always different. Can I make this code so that it isn't absolute in its positioning?

    Thank you. noob.

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    in what way do you need to redirect the positioning? are you asking about the positioning to begin with?

  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

    Quote Originally Posted by bellbell View Post
    1) Script Title: CMotion Image Gallery II

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

    3) Describe problem: Can I make this code so that it isn't absolute in its positioning?
    It isn't. Notice the containing HTML portion of the script from Step 2 on the demo page:

    <div style="overflow:hidden;">
    <div id="motioncontainer" style="width:150px; height:300px; overflow:hidden; position: relative;">
    It is a statically positioned div around a relatively positioned div. Now, it is true that there is an absolutely positioned div within that but, an absolutely positioned div inside a relative one is, oddly enough, relative to the relative container. In short, the entire code acts like a static division and can be placed wherever you like.
    - John
    ________________________

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

  4. #4
    Join Date
    Apr 2007
    Posts
    26
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    Thank you for this John. The position is now where I want it. BUT NOW it won't scroll
    See: http://www.inkbytedesign.com/LID/test.html
    Thank you.
    Last edited by bellbell; 04-24-2007 at 02:55 PM.

  5. #5
    Join Date
    Apr 2007
    Posts
    26
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    I think I found the answer on this post http://www.dynamicdrive.com/forums/s...cmotion+scroll
    So ignore please.
    Thank you.

  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

    That's an onload conflict. Use this as your body tag (addition red):

    Code:
    <body bgcolor="#b5b291" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="maximizeWin();MM_preloadImages('images/home_on.gif','images/studio_on.gif','images/projects_on.gif','images/press_on.gif','images/contact_on.gif','images/residential_on.gif','images/commercial_on.gif','images/6_on.gif','images/haussen/project-detail.jpg','images/2_on.gif','images/kadre/project-detail.jpg','images/3_on.gif','images/marathon/project-detail.jpg','images/4_on.gif','images/wollberg/project-detail.jpg','images/5_on.gif');fillup();">
    You should also remove or comment out this in the script:

    Code:
    window.onload=fillup
    - John
    ________________________

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

  7. #7
    Join Date
    Apr 2007
    Posts
    26
    Thanks
    2
    Thanked 0 Times in 0 Posts

    Default

    This works out great. Thank you! And I appreciate the prompt responses...
    B.

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
  •