SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Wizard subnet_rx's Avatar
    Join Date
    Aug 2001
    Location
    Hattiesburg, MS
    Posts
    1,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Have CSS, but no Javascript

    I'm using a javascript script based on mootools called SmoothGallery that transitions a gallery of photos on a page. It does this by manipulating the DOM so that the page can stay accessible. With javascript turned off, all images are displayed. The problem is, with javascript turned off, it breaks the page. Is there a way to prevent this, like maybe putting display:none on all elements except the default or 1st one that you don't want to be displayed to a user?

    Basically, I need to satisfy 3 different sets of users now.

    1. Have CSS and JS

    2. No CSS or JS (Accessibility)

    3. Have CSS, no JS (maybe some phones or other browsers)

  2. #2
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    No doubt they'll address this in future versions of SmoothGallery

  3. #3
    Programming Since 1978 silver trophybronze trophy felgall's Avatar
    Join Date
    Sep 2005
    Location
    Sydney, NSW, Australia
    Posts
    16,869
    Mentioned
    25 Post(s)
    Tagged
    1 Thread(s)
    Having CSS without JavaScript is the main group to worry about for accessibility. Those without CSS are such a small percentage they can safely be ignored since they have deliberately made the choice to not allow CSS.
    Stephen J Chapman

    javascriptexample.net, Book Reviews, follow me on Twitter
    HTML Help, CSS Help, JavaScript Help, PHP/mySQL Help, blog
    <input name="html5" type="text" required pattern="^$">

  4. #4
    SitePoint Wizard subnet_rx's Avatar
    Join Date
    Aug 2001
    Location
    Hattiesburg, MS
    Posts
    1,085
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by felgall View Post
    Having CSS without JavaScript is the main group to worry about for accessibility. Those without CSS are such a small percentage they can safely be ignored since they have deliberately made the choice to not allow CSS.
    Actually no, I'm talking about blind users there who may be using browsers like JAWS. No CSS, No JS.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •