Javascript Q from Total Newbie... |
Javascript Q from Total Newbie... |
Nick |
Jun 16 2011, 07:41 PM
Post
#1
|
Member Group: Members Posts: 32 Joined: 29-September 06 Member No.: 268 |
Okay, this might be easy, or a doozy. I have *no idea* what I'm doing with JS so hoping someone can decifer some code and get me in the right direction. I have a site: http://www.sustsolutions.com/ That scrolly image stuff is controlled by this script: http://www.sustsolutions.com/2011/wp-conte...carousel.min.js Which naturally I can edit. Any experts out there who can easily see where in that code I can: 1) Keep the thing scrolling right without nipping back left? 2) Slow it down or adjust the scroll in any way? 3) Make them fade into each other not just scroll? (this might be crazy talk) Thanks! |
pandy |
Jun 16 2011, 08:09 PM
Post
#2
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
Oh christ, it's one long line and it uses jQuery.
But it comes with documentation. http://sorgalla.com/projects/jcarousel/#Configuration QUOTE animation - - The speed of the scroll animation as string in jQuery terms ("slow" or "fast") or milliseconds as integer (See jQuery Documentation). If set to 0, animation is turned off. You have animation:"normal" which isn't mentioned above, but it's the only thing that fits. Try to change that to slow or the number of milliseconds you want. If you use milliseconds you probably shouldn't quote the value. I think this applies to the other problem. QUOTE wrap - - Specifies whether to wrap at the first/last item (or both) and jump back to the start/end. Options are "first", "last", "both" or "circular" as string. If set to null, wrapping is turned off (default). You have wrap:null, so try the other options and see what happens. |
Nick |
Jun 17 2011, 12:21 AM
Post
#3
|
Member Group: Members Posts: 32 Joined: 29-September 06 Member No.: 268 |
Yeah, sorry about that nightmare! This is great. totally works
|
pandy |
Jun 17 2011, 07:00 AM
Post
#4
|
🌟Computer says no🌟 Group: WDG Moderators Posts: 20,716 Joined: 9-August 06 Member No.: 6 |
Good. Looks much better now.
|
Lo-Fi Version | Time is now: 19th March 2024 - 08:08 AM |