- Posts: 7
- Thank you received: 0
Slideshow Speed
- Anurag Chandak
-
Topic Author
- Offline
- Fresh Boarder
-
Less
More
11 years 3 months ago #6791
by Anurag Chandak
Slideshow Speed was created by Anurag Chandak
Where and How can I change the slide show speed?
Please guide
Thanks
Please guide
Thanks
Please Log in or Create an account to join the conversation.
- Nguyen Mai
-
- Offline
- Senior Boarder
-
Less
More
- Posts: 47
- Thank you received: 10
11 years 3 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
change to
line 26
Code:
jQuery(document).ready(function($) {
$('#bannergroup-<?php echo $module->id; ?>').carousel();
});
Code:
jQuery(document).ready(function($) {
$('#bannergroup-<?php echo $module->id; ?>').carousel({
interval: 2000
});
});
Please Log in or Create an account to join the conversation.
- Anurag Chandak
-
Topic Author
- Offline
- Fresh Boarder
-
Less
More
- Posts: 7
- Thank you received: 0
11 years 3 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
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.
- Nguyen Mai
-
- Offline
- Senior Boarder
-
Less
More
- Posts: 47
- Thank you received: 10
11 years 3 months ago #6815
by Nguyen Mai
Replied by Nguyen Mai on topic Re: Slideshow Speed
You can change to
And config module: 'Advanced Options' -> 'Module Class Suffix' : ' slide autofit autoplay interval2000'
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 } ?>
});
});
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.186 seconds