Results 1 to 5 of 5

Thread: cmotion not scrolling

  1. #1
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default cmotion not scrolling

    1) Script Title: Cmotion

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

    3) Describe problem: scrolls fine if i set startpos to 1 or 2 but not 0 which is where I need it, unless I resize the browser window.


    Any help is greatly appreciated

  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

    If the demo page on Dynamic Drive here that you linked to in your post works in your browser (it is set to 0), then it is something about your setup that is causing a problem. In that case:

    Please post a link to the page on your site that contains the problematic code so we can check it out.


    If not, it is something to do with your browser.
    - John
    ________________________

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

  3. #3
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Hi,

    Yes the demo version does work in my browser,
    here the link to the site..
    http://www.reedphotography.com.au/gallery.html

    Thank you

    Oh also i have it going backwards at the moment so it is set to 1..
    Last edited by fishinatin; 11-26-2007 at 03:28 AM.

  4. #4
    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 only reason that I can see that its not working with 0 is:

    Code:
    </head>
    
    <body>
    <div id="motioncontainer" style="position:relative;overflow:hidden;">
    <div id="motiongallery" style="position:absolute;center:0;top:0;white-space: nowrap;">
    
    <nobr id="trueContainer">
    <img src="images/im34.jpg"border=0>
    <img src="images/ . . .
    Which is known as invalid, center is not a style property (it can be used as a style value in some cases, but never as a property like you have it there) It should be:

    Code:
    </head>
    
    <body>
    <div id="motioncontainer" style="position:relative;overflow:hidden;">
    <div id="motiongallery" style="position:absolute;left:0;top:0;white-space: nowrap;">
    
    <nobr id="trueContainer">
    <img src="images/im34.jpg"border=0>
    <img src="images/ . . .
    Once I changed that, it worked fine with var startpos=0;. Now, the images:

    images/im17s.jpg
    images/im03s.jpg

    aren't on the server, or if they are, their names are different (upper and lower case matter on the web in filenames, locally they usually do not). This is not a big problem, but they will show as broken images in some browsers, so either remove them from the source code, or make sure that they are on the server and spelled correctly, including case.

    I would also highly recommend that you optimise the images used on the page, many (if not all) are of a much larger byte size than necessary, dramatically slowing page load.

    Finally (for now) if you are Matthew Reed, don't ever stop taking photographs, they are very good shots!
    - John
    ________________________

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

  5. #5
    Join Date
    Nov 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thank you thank you!!! it works I am not matthew reed but i will certainly let him know waht you said.
    Thanks again 1 million times

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
  •