The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Anythingslider is ignoring it’s defaults

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
  • #30542

    Hi there,

    Since the AS defaults can be set in the js itself, and since my slideshow settings are the same across the site, I tried removing the AS configuration from the HTML file altogether. What I am seeing is AS ignoring the defaults I have set.

    Is there a trick to getting it to work?

    I’m calling AS at the end of my HTML like this:

    after calling jQuery and the link to the AS code itself.

    The defaults I have are as follows:

    $.anythingSlider.defaults = {
    easing: "easeInOutExpo", // Anything other than "linear" or "swing" requires the easing plugin
    autoPlay: true, // This turns off the entire FUNCTIONALY, not just if it starts running or not
    startStopped: true, // If autoPlay is on, this can force it to start stopped
    delay: 3000, // How long between slide transitions in AutoPlay mode
    animationTime: 600, // How long the slide transition takes
    hashTags: true, // Should links change the hashtag in the URL?
    buildNavigation: true, // If true, builds and list of anchor links to link to each slide
    pauseOnHover: true, // If true, and autoPlay is enabled, the show will pause on hover
    startText: "Go", // Start text
    stopText: "Stop", // Stop text
    navigationFormatter: formatText, // Details at the top of the file on this use (advanced use)
    forwardText: ">", // Link text used to move the slider forward
    backText: "<" // Link text used to move the slider back

    Note that easeInOutExpo works when the config is called directly, but not when called via the defaults.

    Is there something obvious I am doing incorrectly?


Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.