This is the example from the article Learning Javascript - Altering Content. You can also download the source code.
This is important text that some people may have difficulty reading.
If Javascript is turned off the user will be taken to page showing the high contrast version.