The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Javascript Q from Total Newbie...
Nick
post 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!
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 16 2011, 08:09 PM
Post #2


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Oh christ, it's one long line and it uses jQuery. sad.gif

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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Nick
post 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
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
pandy
post Jun 17 2011, 07:00 AM
Post #4


🌟Computer says no🌟
********

Group: WDG Moderators
Posts: 20,730
Joined: 9-August 06
Member No.: 6



Good. Looks much better now.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 24th April 2024 - 08:05 AM