normal Slideshow Speed

More
10 years 2 months ago #6791 by Anurag Chandak
Where and How can I change the slide show speed?

Please guide

Thanks

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #6796 by Nguyen Mai
Replied by Nguyen Mai on topic Re: Slideshow Speed
You can edit file 'templates/ot_clinical/html/mod_banners/default2.php'
line 26
Code:
jQuery(document).ready(function($) { $('#bannergroup-<?php echo $module->id; ?>').carousel(); });
change to
Code:
jQuery(document).ready(function($) { $('#bannergroup-<?php echo $module->id; ?>').carousel({ interval: 2000 }); });

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #6797 by Anurag Chandak
Replied by Anurag Chandak on topic Re: Slideshow Speed
Thanks. The code change works perfect.

Is there a way to delay the transition only for one particular banner while keep the same for the others?

Awaiting help.

Thanks

Please Log in or Create an account to join the conversation.

More
10 years 2 months ago #6815 by Nguyen Mai
Replied by Nguyen Mai on topic Re: Slideshow Speed
You can change to
Code:
jQuery(document).ready(function($) { $('#bannergroup-<?php echo $module->id; ?>').carousel({ <?php if (strpos( $params->get ('moduleclass_sfx'), 'interval')!==false){ $class_sfx = explode(' ', $params->get ('moduleclass_sfx')); foreach ($class_sfx as $clsSfx){ if (strpos( $clsSfx, 'interval')!==false){ $interval = str_replace('interval', '', $clsSfx); } } ?> interval: <?php echo $interval; ?> <?php } ?> }); });
And config module: 'Advanced Options' -> 'Module Class Suffix' : ' slide autofit autoplay interval2000'
The following user(s) said Thank You: Anurag Chandak

Please Log in or Create an account to join the conversation.

Time to create page: 0.252 seconds

About Growth

Innovative tech for eCommerce growth

Contact Info

Head: No. 3, 175/55 Lane, Lac Long Quan St., Nghia Do Ward, Cau Giay District, Hanoi City, Vietnam