Results 1 to 8 of 8

Thread: CMotion not scrolling

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

    Unhappy CMotion not scrolling

    Script: CMotion Image Gallery
    http://www.dynamicdrive.com/dynamici...iongallery.htm

    I am new to this forum, I am trying this CMotion dd script out.. but it won't scroll.. can anybody help please..

    my link is here:
    http://beard.dialnsa.edu/~lain/motio...ongallery.html

    thanks tons

    blue38
    Last edited by blue38; 05-17-2006 at 09:13 PM.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Warning: Please include a link to the DD script in question in your post. See this thread for the proper posting format for asking a question.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  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

    You're main problem is in failing to use the demo page's HTML as instructed, use something like (from the demo page):

    HTML Code:
    <div id="motioncontainer" style="position:relative;width:400px;height:150px;overflow:hidden;">
    <div id="motiongallery" style="position:absolute;left:0;top:0;white-space: nowrap;">
    Not:

    HTML Code:
    <div id="motioncontainer">
    <div id="motiongallery">
    as you have on your page. You can adjust the width and height of the motioncontainer division's inline style to suit, but the rest should be kept as is.
    - John
    ________________________

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

  4. #4
    Join Date
    Feb 2006
    Posts
    236
    Thanks
    8
    Thanked 3 Times in 3 Posts

    Default

    There is still more to do. The following line is missing from the DD Script (should be placed in the head section as indicated on the script instructions):

    <link rel="stylesheet" type="text/css" href="gallerystyle.css" />

    Then make sure that the file, gallerystyle.css is on the server.

    And in the body, you have (in part):

    <a href="javascript:enlargeimage('images/ring/r2.jpg', 300, 300)"><img src="images/ring/r2(t).jpg" border=1></a>

    <a href="http://www.dynamicdrive.com">
    <img src="images/ring/r1(t).jpg" border=1></a> <a href="#">

    Well, you DO want to change the <a href="http://www.dynamicdrive.com"> part to your own.

    Keep working on it and look carefully. Hope this helps.

  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

    Quote Originally Posted by Strangeplant
    There is still more to do. The following line is missing from the DD Script (should be placed in the head section as indicated on the script instructions):

    <link rel="stylesheet" type="text/css" href="gallerystyle.css" />

    Then make sure that the file, gallerystyle.css is on the server.

    And in the body, you have (in part):

    <a href="javascript:enlargeimage('images/ring/r2.jpg', 300, 300)"><img src="images/ring/r2(t).jpg" border=1></a>

    <a href="http://www.dynamicdrive.com">
    <img src="images/ring/r1(t).jpg" border=1></a> <a href="#">

    Well, you DO want to change the <a href="http://www.dynamicdrive.com"> part to your own.

    Keep working on it and look carefully. Hope this helps.
    The first suggestion above is wrong because blue38 has incorporated the styles from gallerystyle.css in the stylesheet 'menu.css' that is already linked to the page. The second suggestion is valid but probably obvious and something almost anyone would know to do once the script effect was working. After all, the link that blue38 gives is to a test page. Still it is valid but, an alternative would be to remove the link altogether.

    The suggestion I made in my previous post in this thread is the reason the script did not work.
    - John
    ________________________

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

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

    Default

    oh it works fine now.. thank you all for your suggestion. I didn't know I can't put the styling of those two id divs into an external css sheet.
    Thank you so much. Well appreciated.

  7. #7
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    I didn't know I can't put the styling of those two id divs into an external css sheet.
    You can, in theory. You probably did it incorrectly.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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

    The styling was fine to begin with, Strangeplant was wrong, not realizing that the styles had been correctly included in your existing stylesheet.
    - 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
  •