Randomize.js
This script randomises a quote (in this case) to only show one quote at a time, which changes on page refresh/reload. 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.
- Visit Site:
- Randomize.js
- Version:
- 1
- Filed in:
-
JavaScript / Scripts & Programs / Randomizing / Random Text
- Date Added:
- Jan 24, 2009
- Last Updated:
- Jan 24, 2009
License and Pricing Information
Freeware
Price: $0.00 USD
| Publisher site visits: | 518 |
|---|---|
| Average rating: | 0.00 |
| Total ratings: | 0 |
Publisher Info
- Author:
- Elle Meredith
