How do I make the SlideTo plugin start automatically on its own and in a loop?? please help
Hello everyone,
I'm trying to use a "slideTo" jquery plugin in a micro-site Im developing, it's working fine, only there's one issue, I want it to auto start. Im kinda new to this, but I usually search and search and play with the codes, only when Im desperate do I come and post a question, I tried setting a play interval?? but that only happened on a click.
also, in this same slider I have content that I do not want to slide with the slider (so they can appear on the following slide but I don't know how to make them stay still.
here's an example of what I want:
http://reports.standardchartered.com/ar2011/servicepages/welcome.html
when the images slide the menu, teasers and slider nav tools stay still and dont slide, any ideas?
I know this is very much and I'm sorry..your help is greatly appreciated.
here's the code for the first problem:
- <script type="text/javascript">
function Animate2id(id,ease){ //the id to animate, the easing type
var animSpeed=2000; //set animation speed
var $container=$("#slide-container"); //define the container to move
if(ease){ //check if ease variable is set
var easeType=ease;
} else {
var easeType="easeOutQuart"; //set default easing type
}
//do the animation
$container.stop().animate({"left": -($(id).position().left)}, 2000, easeType);
}
</script>