All Posts by Email, Once a Week

Media Temple logo

CSS-Tricks is brought to you in part by Media Temple, the web hosting that we both use and recommend.

jQuery for browsers with JavaScript disabled fix?

  • # January 31, 2013 at 7:00 pm

    Hi everyone again… I think I’m starting to bust some chops here, but thanks for everyone’s help anyway.

    Now I’m trying to learn how to create a ‘fix’ for browsers with disabled JS. For example, my jQuery slider displays all its images vertically in those situations.

    How can I make my site display a non-sliding version instead of displaying it that way?

    # January 31, 2013 at 7:05 pm

    Here is a link to get you started.

    stackoverflow.com/questions/6724515/what-is-the-purpose-of-the-html-no-js-class

    I think you could use the no-js class to write your slideshow css to display however you like if a user has JS disabled.

    # January 31, 2013 at 7:06 pm

    Sorry, I couldn’t edit the link to be in an anchor tag properly because I fail but just copy/paste it.

    # February 1, 2013 at 9:43 am

    This reply has been reported for inappropriate content.

    However, I am more accustomed to implementing “ tag to handle the non-JavaScript stylesheet instead of the no-js class. Considering that removing HTML classes with JavaScript takes a time. In my opinion.

    # February 1, 2013 at 10:18 am

    >Considering that removing HTML classes with JavaScript takes a time.

    How much time? Is it so much that you can actually perceive it personally?

    If not, then it’s a non-issue.

    # February 1, 2013 at 10:21 am

    But that wasn’t the actual question.

    The question was:

    >How can I make my site display a non-sliding version instead of displaying it that way?

    Until we see the site, we can’t comment, but I would google “pure CSS slider” being aware that you will have legacy browser issues for actual animations / transitions.

Viewing 6 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed