Welcome, Guest
Username: Password: Remember me

TOPIC: Slideshow Speed

Slideshow Speed 2 years 11 months ago #6791

  • ac24365
  • ac24365's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
Where and How can I change the slide show speed?

Please guide

Thanks
The administrator has disabled public write access.

Re: Slideshow Speed 2 years 11 months ago #6796

  • crystal_moon
  • crystal_moon's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Thank you received: 10
  • Karma: 2
You can edit file 'templates/ot_clinical/html/mod_banners/default2.php'
line 26
jQuery(document).ready(function($) {
	$('#bannergroup-<?php echo $module->id; ?>').carousel();
});
change to
jQuery(document).ready(function($) {
	$('#bannergroup-<?php echo $module->id; ?>').carousel({
		interval: 2000
	});
});
The administrator has disabled public write access.

Re: Slideshow Speed 2 years 11 months ago #6797

  • ac24365
  • ac24365's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 7
  • Karma: 0
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
The administrator has disabled public write access.

Re: Slideshow Speed 2 years 11 months ago #6815

  • crystal_moon
  • crystal_moon's Avatar
  • OFFLINE
  • Senior Boarder
  • Posts: 47
  • Thank you received: 10
  • Karma: 2
You can change to
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 administrator has disabled public write access.
The following user(s) said Thank You: ac24365
Time to create page: 0.173 seconds