Results 1 to 5 of 5

Thread: CMotion Image Gallery - Back to start?

  1. #1
    Join Date
    Apr 2008
    Location
    San Diego, CA
    Posts
    352
    Thanks
    57
    Thanked 6 Times in 6 Posts

    Default CMotion Image Gallery - Back to start?

    1) Script Title:

    CMotion Image Gallery

    2) Script URL (on DD):

    http://www.dynamicdrive.com/dynamici...iongallery.htm

    3) Describe problem:

    No problem really. Was just wondering if anyone knows the JS I'll need to tell the gallery to go back to its starting position.

    Thanks!

  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

    Since this gallery already resets onresize, you can just use that, ex:

    Code:
    <a href="#" onclick="onresize();return false;">Reset Gallery</a>
    - John
    ________________________

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

  3. The Following User Says Thank You to jscheuer1 For This Useful Post:

    jlizarraga (07-17-2008)

  4. #3
    Join Date
    Apr 2008
    Location
    San Diego, CA
    Posts
    352
    Thanks
    57
    Thanked 6 Times in 6 Posts

    Default

    Big thanks Scheudog. Exactly what I needed.

  5. #4
    Join Date
    Apr 2008
    Location
    San Diego, CA
    Posts
    352
    Thanks
    57
    Thanked 6 Times in 6 Posts

    Default

    Uh oh. Actually this doesn't work in IE6.

    This error spits out:

    "Object doesn't support this property or method"

    ;-;

  6. #5
    Join Date
    Apr 2008
    Location
    San Diego, CA
    Posts
    352
    Thanks
    57
    Thanked 6 Times in 6 Posts

    Default

    Okay now I'm using this and it works in both browsers:

    function backToStart(){
    cross_scroll.style.left=startpos? (menuwidth-actualwidth)/startpos+'px' : 0;
    }

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
  •