Page 1 of 3 123 LastLast
Results 1 to 10 of 26

Thread: CMotion gallery loop?

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

    Default CMotion gallery loop?

    1) Script Title: Cmotion gallery

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

    3) Describe problem: I was wondering if anyone knew how to make the last picture loop to the first picture in the gallery. I know someone posted a while ago how to do it with the FrogJS, but my company is interested in using the Cmotion JS.
    thanks

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

    Default

    bump?

  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

    I had that worked out for the previous version of Cmotion:

    http://home.comcast.net/~jscheuer1/s...continuous.htm

    Perhaps it will be sufficient for your purposes. Use your browser's 'view source' to get the code.
    - John
    ________________________

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

  4. #4
    Join Date
    Feb 2009
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    thank you so much

  5. #5
    Join Date
    Mar 2009
    Posts
    7
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    First I'd like to thank you, jscheuer1, for your ambition. Especially for me you're a reliable guide for the very hard first steps through the jungle of scripting.
    Please excuse my written english, it's a bit out of use but I'll try hard to communicate the core of my problem

    Relying on the OO_CMotion Image Gallery which made it finally possible to implement two functioning galleries in an effective way, I'd like to know which code I have to add to use this script architecture with a loop, as mentioned above.

    to put it in a nutshell: is there any possibility to combine the multiple gallery function of OO_CMotion Image Gallery and the carousel function of the CMotion Continuous Gallery?

  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

    I've a new project that should fit the bill:

    http://home.comcast.net/~jscheuer1/side/thecrawl/

    I'm still fine tuning it (just some minor issues with IE 8 and some legacy browsers). Let me know if you have any questions.
    - John
    ________________________

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

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

    pencil-of-death (03-03-2009)

  8. #7
    Join Date
    Mar 2009
    Posts
    7
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    Well, this masterpiece really works fine (besides some minor details I'll describe in the following).
    Your new project gained a huge piece of usability due to the fact that editing .js files isn't necessary any longer (well, if you want to use it as intended )
    But now the problems: if I set moveatleast to 0, the motion stops when the moise pointer hits a space between two images.
    Furthermore the original version of the cmotion gallery offered a inverted navigation which really simplified to "catch" a specific image.
    In the thecrawl.js I searched for some values responsible for left and right, just to swap them, but couldn't find it so far.

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

    I just updated the demo page and more importantly, the script. Only minor modifications, but they take care of the two problems I was having that I mentioned in my previous post and the left/right 'nav' bit you mention (which is a good idea, thanks), so you should clear your cache, go back to the demo page and download the script again.

    You shouldn't set moveatleast to 0, that's the same as not specifying it, unless you happened to quote the value, in which case all sorts of odd things might happen. I did have some problems earlier with the marquee stopping when the mouse moved over a space, but had fixed them. However, if you want moveatleast 0, just don't specify it. If you still have the problem of the marquee stopping on spaces between images, let me know which browser and give me a link to a demo of the problem.
    - John
    ________________________

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

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

    pencil-of-death (03-03-2009)

  11. #9
    Join Date
    Mar 2009
    Posts
    7
    Thanks
    5
    Thanked 0 Times in 0 Posts

    Default

    As far as I can rate it, this update has really increased the usability of the gallery. Anything to oblige if I'm able to make a suggestion.

    I've uploaded a demo containing two crawlers : the first one with a configuration as intended and the other underneath as I'd like to use (static and just moving when the user operates).
    Two stumbling blocks: the modifie one starts with an initial speed equal to the value of inc, furthermore the marquee stops between spaces as mentioned. I primarily use Firefox 3.0.6. I already detected that the IE7 doesn't show the second problem.

    Edit: I've found an additional issue: rollover or swapImage actions reffering to gallery images aren't functioning at the moment. Is this intended or even possible to patch?
    Last edited by pencil-of-death; 03-03-2009 at 11:34 AM.

  12. #10
    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

    Ah, I see the trouble. By the time I got around to testing for that problem, I somehow had left out marquees that didn't continue to move onmouseout. Anyways, all fixed. Clear your cache again and download the script again.

    BTW, if the marquee is stopping on mouse out, both moveatleast and savedirection are meaningless. Also, if there is no background color, just skip it:

    Code:
    <script type="text/javascript">
    marqueeInit({
     uniqueid: 'art2',
     direction: 'right',
     style: { //style object for this marquee container (use quotes on both sides of the : as shown)
    	'width': '60%',
    	'height': '140px',
    	'border': '0px solid #111',
    	'margin': '0 auto'},
     inc: 10, //speed - pixel increment for each iteration of this marquee's movement
     mouse: 'cursor driven' //mouseover behavior ('pause' 'cursor driven' or false)
    });
    </script>
    - John
    ________________________

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

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

    pencil-of-death (03-03-2009)

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
  •