Спасибо разобрался все работает
Specifying Callbacks
By using the variable that the Sequence object is stored in, you can add custom code to Sequence’s callbacks, like so:
<script type="text/javascript">
$(document).ready(function(){
var options = {
autoPlay: true,
autoPlayDelay: 3000
}
var sequence = $("#sequence").sequence(options).data("sequence" );
sequence.beforeCurrentFrameAnimatesOut = function(){
//add code to execute here, such as:
alert("Do something before the CURRENT frame animates out");
};
sequence.beforeNextFrameAnimatesIn = function(){
//add code to execute here, such as:
alert("Do something before the NEXT frame animates in");
};
});
</script>
Последний раз редактировалось swess, 15.10.2014 в 01:36.
|