Support › Forums › White – HTML Template › homepage problems › Reply To: homepage problems
September 6, 2015 at 8:28 pm
#4801
Keymaster
Hi,
if you want to autoplay the slider, you have to change the variable start_slide in the file image_slider.js (folder js). Change the value to 1.
And if you want to remove the rotation in the messages, you have to remove the next code in the file custom.js (folder js):
/* ==============================================
/* MESSAGE ROTATION IN THE HOMEPAGE
=============================================== */
var intervalTime = 2000; //transition time
var messageArray = $(".messages").children();
var messageMax = messageArray.length - 1;
messageArray.each( function( index ) { $(this).fadeOut(); } );
$(messageArray[0]).fadeIn();
function text_rotate(){
setTimeout ( function() {
messageRotate(1);
}, intervalTime);
}
function messageRotate( index ) {
var prev = ( (index == 0) ? (messageMax) : (index - 1) );
var next = ( (index == messageMax) ? 0 : (index + 1 ) );
setTimeout ( function () {
$(messageArray[prev]).fadeOut();
setTimeout ( function () {
$(messageArray[index]).fadeIn();
setTimeout ( function () {
messageRotate(next);
},intervalTime );
},(intervalTime/2) );
},intervalTime );
}
Regards