Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8907463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T02:55:23+00:00 2026-06-15T02:55:23+00:00

I want: autoplay: false when is width>900 in window size and , autoplay: true

  • 0

I want:

autoplay: false when is width>900 in window size and ,

autoplay: true when is width<900 & width>701 in window size and ,

autoplay: false when is width<701 in window size

with jQuery flowslideshow and when the window is resized run this code

but notworking.

$(window).resize(function () {
var width = $(window).width();
if (width > 900) {
    $(function () {
        $(".slidetabs").tabs(".images > div", {
            // enable "cross-fading" effect
            effect: 'fade',
            fadeOutSpeed: "slow",
            // start from the beginning after the last tab
            rotate: true,
            showMultiple: 5
            // use the slideshow plugin. It accepts its own configuration
        }).slideshow({ **autoplay: false**, clickable: false });
    });
}
else if (width < 900 & width > 701) {
    $(function () {
        $(".slidetabs").tabs(".images > div", {
            // enable "cross-fading" effect
            effect: 'fade',
            fadeOutSpeed: "slow",
            // start from the beginning after the last tab
            rotate: true,
            showMultiple: 5
            // use the slideshow plugin. It accepts its own configuration
        }).slideshow({ **autoplay: true**, clickable: false });
    });
}
else (width < 701)
{
    $(function () {
        $(".slidetabs").tabs(".images > div", {
            // enable "cross-fading" effect
            effect: 'fade',
            fadeOutSpeed: "slow",
            // start from the beginning after the last tab
            rotate: true,
            showMultiple: 5
            // use the slideshow plugin. It accepts its own configuration
        }).slideshow({ **autoplay: false**, clickable: false });
    });
}    });
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T02:55:26+00:00Added an answer on June 15, 2026 at 2:55 am

    The onResize event of the window does not always fire on page load, so the slideshow wouldn’t autoplay in that case. It does appear to fire on page load in ie9.

    Also, this code would recreate the slideshow every time the page is resized – which is probably not what you want either.

    You might be better binding the slideshow on page load, and then binding an event to resize that pauses / resumes the slide behaviour. Like this:

    jQuery(function($) {
        // detect window size and init slideshow here
        $(window).on('resize', function () {
            // detect window size and pause or resume the slideshow
        });
    });
    

    Without seeing the docs for the slideshow you’re using I can’t point you in the direction of exactly how to modify the slideshow after it’s initialised, but it should be possible if you follow the principle above.

    (On a side note, to check the resize event is being triggered correctly, you could console.log($(window).width()))

    If you need more help, consider posting a Fiddle with the full example in it, and link to the docs for the slideshow plugin you’re using.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Want to run javascript function from parent window in child window Example I have
Hi I am using Jquery PrettyPhoto and want to always show the Next and
I want to autoplay my video on mouse over. Can anybody tell me how
Ok, this is a weird one. Consider the following: <audio id=background_audio autoplay=autoplay> <source src=static/audio/clip.ogg
I'm using the code from this question to autoplay an iframe embedded Youtube video
I want to run a vide from youtube into my iPhone simulator and the
I'm using jquery UI tools scrollable with a nav. I want it so that
This keeps autoplaying even when I set it to false 3 times. I don't
I have jQuery Tools Tabs and in each of the panes of this tab
I'm using the jQuery plugin RhinoSlider and have it working ok, however I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.