Accessible News Slider for jQuery v.1.1 - now a plugin and more accessible
After some good feedback from the Web development community, I have revamped the Accessible News Slider. It has been converted into a jQuery plugin, and I am releasing it as version 1.1. The code is not obfuscated, but if you choose to do so, it will come in around 2 KB. The only comments I will make regarding implementation are in the HTML file. These should be sufficient.
In order to get a better understanding of why this plugin is accessible, I have categorized the accessibility features by the users that would need them. This should also help clear up any confusion regarding the presentation of certain elements in the HTML, as well as the JavaScript. If you have never used a jQuery plugin before, or are unfamiliar with the jQuery library, then I suggest you visit www.jquery.com.
- Users with color vision deficiency, or color blindness
The plugin no longer uses color as a primary indicator of change in the state of the slider. Instead, the “previous” and “next” arrows are either visible or hidden, depending on the location of the news slider. There is also an indicator that communicates the total number of news stories in the slider. - Users with limited or poor vision, but who do not use a screen reader
If the user chooses to resize the text via the browser file menu, the slider will now flex vertically to accommodate the larger text. This is primarily a function of the CSS, and it is suggested you maintain a variable font size on your site in order to take advantage of this capability. - Users that are legally blind, and who browse Web pages with a screen reader
Since screen readers actually read through the code, it is important that the HTML be formatted free of confusion. The appropriate skip links and title tags have been included for navigation and messaging. The important thing to remember is that screen readers like JAWS ignore elements with the display property set to “none”, or with the visibility property set to “hidden”. This helps significantly in managing the presentation to several categories of disabled users. - Users that browse with the keyboard and an adaptive device such as a mouth stick
When developing a Web component to be accessible, this is the most difficult group of disabled users to accommodate. If you have ever tried to browse by tabbing through a Web page, it can be frustrating. Although the core functionality of the news slider is partially accessible with a keyboard, the “View All” link was added as a catch-all mechanism. I did not provide a “View Less” link, as it would have added (what I consider to be) unnecessary additional weight to the script. - Users who have turned off JavaScript or CSS
The key was to make sure that not only were all the news stories readable with JavaScript or CSS turned off, but that the appropriate messaging was displayed to the user to inform them of the implications. Although not a category that I think fits explicitly under accessibility, it is a component of the WCAG checkpoints, and strides were taken to make sure the plugin met these requirements.
BUG FIX: 3/18/07
Fixed a bug where after sliding, clicking “View All” makes the menu disappear.
Click here to download the plugin.
Feedback is welcome.

A day late and a dollar short... comments are closed.
I don’t suppose you could offer some tips on how to make this thing read its input from an RSS feed directly? Combine this with the JTicker plugin for JQuery and you should have an incredibly useful tool…
Thanks for your efforts!
Comment by:
framemaker hacker
Hello!
Really good job, thank you. I have a question can - how I can move slide vertical?
PS: sorry for my English :)
Comment by:
Ferroman
Hi Ferroman,
The plugin was only intended for horizontal scrolling. A vertical scroll would probably require a different plugin altogether. Maybe a future release :)
Brian
Comment by:
Brian
Hi framemaker hacker,
I have considered binding this to an XML file, or an RSS feed, but simply have not had the time. I think it would make a great feature though, and will definately consider it for a future release.
Brian
Comment by:
Brian
Awesome job on this one. I am using it on a big site I am working on. I had one question/suggestion. How hard would it be to make the “view all” link a toggle that changes to “hide” or whatever? And I think it would be cool if when you hit “view all” if it animated a slide down or something. Very cool. If you send me an email, I can send you a link to my usage, I did a couple small mods that you might dig. Thanks again for the awesome plugin.
Comment by:
Travis Dahl
Awesome to hear Travis! I would love to see the site. I’ll shoot you an email.
I have considered a “View All / View Less” type of thing for a future release, but have not had the time. I am actually working on another news reader plugin for jQuery that is a bit more flashy :)
Comment by:
Brian
After using this more and more, I have another suggestion that I think is a valid one…
I am using several instances of the news slider and would like different instances so have different titles (instead of “top stories” for all of them). Is there an easy way to make the title a variable that you could specify on each instance? What do you think?
P.S. I am excited to see your new slider as well!!!
Comment by:
Travis Dahl
Hey Travis,
Actually, you can specify different headlines :)
If you look at the source of the demo there is an option called “headline”. The default is Top Stories. Just change that for each instance of the slider to be what you like.
Hope that helps!
Brian
Comment by:
Brian
I know you can change it on the js file but all instances of the slider on my site run off that same js file. I am actually using this to display posts in WP and want the title to be the category title but can’t figure out how to pass the template tag through the script. Any Ideas?
Comment by:
Travis Dahl
Hi Travis,
Check the HTML source, not the JavaScript source. Options are passed into the plugin, and one of them is for a heading. In that option, you would use the WP reference to the function that grabs your category title.
Brian
Comment by:
Brian
Brian,
You are amazing. Please excuse my ignorance. That was exactly what I was looking for. Thanks for thinking ahead and adding that in there.
Travis
Comment by:
Travis Dahl
[...] 4) I FILE NECESSARI Style.css Jquery.js Jquery.accessible-news-slider.js L’esempio html Le gif next.gif, prev.gif Il post dell’autore Sito ufficiale di jQuery: http://www.jquery.com [...]
Comment by:
Creare un news slider accessibile con JQuery ed il suo plugin News Slider Menu : sastgroup.com