Menu
Home
Overview
Demo
Screenshots
Samples
Download
Purchase
News
Support
Support
Documentation
Documentation
Articles
Company
Contact Us
Testimonials
Affiliates
Forums
General
Would Appreciate Help With Slideshow Javascript
Author
Message
James
Posted: 11/29/2012
Quote message
Hello all. I have A4 Home version, which is fine, except that to change the timing of the slideshow, I have to manually edit the script after export as a Wordpress theme. Mind you, I'm a newb at java, CSS and html.
So I changed values in the script.js file after exporting as a WP theme. Once installed into WP, the timing is the same as it was before. I'm missing something, obviously.
Any help would be greatly appreciated. I can't give a reward, except for a smiley icon of your choice.
Here are my changes to the script.js file- the "speed" and "pause" values (which are in bold type here):
var Slider = function (element, settings) {
var interval = null;
var active = false;
var children = element.find(".active").parent().children();
var last = false;
var running = false;
this.settings = $.extend({ }, {
"animation": "horizontal",
"direction": "next",
"speed":
1800,
"pause":
9500,
"auto": true,
"repeat": true,
"navigator": null,
"clickevents": true,
"hover": true,
"helper": null
}, settings);
this.move = function (direction, next) {
var activeItem = element.find(".active"),
nextItem = next || activeItem[direction](),
innerDirection = this.settings.direction === "next" ? "forward" : "back",
reset = direction === "next" ? "first" : "last",
moving = interval,
slider = this, tmp;
Reply
NAME *
EMAIL
SMILIES
CODES
BODY *
[quote=James] Hello all. I have A4 Home version, which is fine, except that to change the timing of the slideshow, I have to manually edit the script after export as a Wordpress theme. Mind you, I'm a newb at java, CSS and html. So I changed values in the script.js file after exporting as a WP theme. Once installed into WP, the timing is the same as it was before. I'm missing something, obviously. Any help would be greatly appreciated. I can't give a reward, except for a smiley icon of your choice. Here are my changes to the script.js file- the "speed" and "pause" values (which are in bold type here): var Slider = function (element, settings) { var interval = null; var active = false; var children = element.find(".active").parent().children(); var last = false; var running = false; this.settings = $.extend({ }, { "animation": "horizontal", "direction": "next", "speed": [b]1800,[/b] "pause": [b]9500,[/b] "auto": true, "repeat": true, "navigator": null, "clickevents": true, "hover": true, "helper": null }, settings); this.move = function (direction, next) { var activeItem = element.find(".active"), nextItem = next || activeItem[direction](), innerDirection = this.settings.direction === "next" ? "forward" : "back", reset = direction === "next" ? "first" : "last", moving = interval, slider = this, tmp; [/quote]
VALIDATION *