randomize.js demo

Reload the page to see the following quote change:

The script goes through each <li> element in an unordered list with an id of “quotes.” If the element’s number matches the random number, it gets added a class “selected,” otherwise it gets added a class “hide.” The actual display on the page is controlled with CSS. If you check the "Source" view, you can see all the quotes are still on the page for better SEO.