Forum Support

Shape 5
March 28, 2024, 11:14:56 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: Shape 5 Forum
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: slide interval setup  (Read 429 times)
iongaro
Jr. Member
**
Offline Offline

Posts: 2



« on: March 06, 2010, 04:43:18 AM »

I have a trouble to change the pause time between one slide and the following.

I see that in /templates/basic/js/lightbox.js there is a dedicated row

/*** Configure Slideshow Options ***/
this.slideInterval = 20000; // Change value (milliseconds) to increase/decrease the time between "slides" (10000 = 10 seconds)

I try to change the value but nothing happens when I upload the file above.
Could you help me ?
tks
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #1 on: March 08, 2010, 08:49:28 AM »

Hello, if you are looking to change the time it is displayed this is controlled by the module's files, not the template's files. You would need to edit the following file:

modules/mod_s5_imageslide/mod_s5_imageslide.php and look for:

interval=a.interval||5000;

And adjust the 5000
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
dddropoff
Jr. Member
**
Offline Offline

Posts: 67



« Reply #2 on: July 27, 2010, 12:03:23 PM »

so this block of code is nowhere in mod_s5_imageslide.php. I need to change display time. I tried to change
$display_time = $display_time*1000;
by changing 1000 to 3000
it doesnt seem to work.
thanks, ddd

 
Logged
mikek
Administrator
*****
Offline Offline

Posts: 28743



WWW
« Reply #3 on: July 27, 2010, 01:34:05 PM »

Hello,

It is in the file I mentioned above. It's part of a javascript function:


var noobSlide=new Class({initialize:function(a){this.items=a.items;this.mode=a.mode||'horizontal';this.modes={horizontal:['left','width'],vertical:['top','height']};this.size=a.size||<?php echo $width ?>;this.box=a.box.setStyle(this.modes[this.mode][1],(this.size*this.items.length)+'px');this.button_event=a.button_event||'click';this.handle_event=a.handle_event||'click';this.interval=a.interval||5000;
Logged

Mike Knott
------------
Shape 5 Team

- Need a great host for your website? We highly recommend siteground.com!


- Put your trust in the hands of our extremely qualified staff to get your job done right!


- Firebug is the most powerful web development and debugging tool, and it will save you a lot of time, frustration and forum questions:
Install Firebug
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF | SMF © 2013, Simple Machines
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Looking for the largest variety in template designs? Look no more. Never buy 1 theme again. Signups start at just $89 for access to all of our themes.
Send Us An Email
Please send us your questions and we will email you back as soon as we can. Product support questions should be posted in our support forums under the Help menu. Our staff will assist you from there.