Member Login
Our client says
Database Management Component/Module Extension
Christopher Ngooi |
Technology Expertise
| Create a Slick and Accessible Slideshow Using jQuery |
|
In this in-depth web development tutorial, you’ll learn how to create a usable and web accessible slideshow widget for your site using HTML, CSS, and JavaScript (jQuery). In the process, you’ll see the concept of Progressive Enhancement in action.
Final ResultClicking on the image below will take out to a live demonstration of the slideshow widget in action. Download source filesYou can download the source files for this tutorial to study. Along with the entire jQuery script used in this tutorial, the source file package also contains a PSD file named mockup-slideshow.psd for the web layout of the demonstration page, as well as the CSS background images and additional auxiliary files used to create the slideshow.
Setting the foundationsThe most important part of any good web component is a solid HTML structure. A semantic foundation means that your content will be web accessible in virtually all browser clients. Our content’s structure involves a div called Block 1: HTML markup<!-- Slideshow HTML --> In example 1 below, you’ll see how text-based browsers, and browsers incapable of rendering CSS and JavaScript, will see our slideshow. It’s important to note that all of our content is easily accessible; we’ve hidden nothing from the user – ensuring that everyone will have the ability to view our content. There is also no markup for the left and right arrow controls, which we will insert into the DOM later on using JavaScript. Having them in the content structure level would be confusing to individuals without CSS or JavaScript capabilities. Example 1: HTML content structure of the slideshow Tip: Test web accessibility first, and often. When working on anything new, you should always test your HTML structure for accessibility. You can use a free web application called WebAnywhere for screen reader web accessibility tests to simulate how a person using a screen reader will interact with your content. Styling the slideshowThe next step to a strong design is having a good set of styles that consider the possibility that the user has JavaScript disabled. For Block 2:
|
















