Paragraph Highlighting Script

More tags

Paragraph Highlighting
Use this simple script to highlight a paragraph, a sentence or a word.
Author: SimplytheBest Inc Price: Free GPLv2 Type: Javascript

EXAMPLE

SimplytheBest DHTML Scripts and Javascripts - a large collection of selected DHTML scripts and Javascripts. Most scripts are free to use and clearly explained.

STEP 1
Insert the following script between the </HEAD> and <BODY> tags in your HTML.
Click in textarea to select code then copy and paste Ctrl-CCtrl-V

STEP 2
The paragraph, sentence or word must be ID tagged with the following name:

Ctrl-CCtrl-V

If you need more than one paragraph or sentence highlighted, simply copy and paste the two subroutines inside the script tags and rename para1 to f.e. para2. Then tag the paragraph you wish to highlight with the appropriate name i.e. para1, para2, and so forth.

USING CSS

You can also use CSS to define a hover property on any element. F.e.

<div class="mydiv">Your content</div>

In the CSS style definition you would define:

Ctrl-CCtrl-V