Results 1 to 3 of 3

Thread: CMotion wont scroll w/ startpos=0 in Firefox

  1. #1
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default CMotion wont scroll w/ startpos=0 in Firefox

    1) Script Title: CMotion Image Gallery I

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

    3) Describe problem: CMotion wont scroll with js variable startpos=0 in Firefox 3.
    It works fine when set to startpos=1 or 2

    See for yourself:
    http://tylermadeit.com/test/portfoliotest.html

    The one with variable set to startpos=1

    Its probably something silly. Thanks in advance.

    Surprisingly it works in IE.

  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

    Any reason that you got rid of (highlighted):

    Code:
    <div id="motiongallery" style="position:absolute;left:0;top:0;white-space: nowrap;">
    from the on page markup? The script needs that. Replace it and it will work. Also (though it appears not to be a factor in this case), the setting of (from the script):

    Code:
     //3) Set to maximum width for gallery - must be less than the actual length of the image train.
    var maxwidth=9000;
    seems a bit too long. I think this only really matters when the style width is set as a percentage, but 900 would be a more reasonable figure here. Whatever it is, it must be less than the actual length of all of the images placed end to end.
    - John
    ________________________

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

  3. #3
    Join Date
    Feb 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Thanks John, I knew it was something silly.
    No idea how that got deleted.

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
  •