Color Highlighted Changing Text

[Total: 0    Average: 0/5]

This script highlights the text by changing the font color when you roll over the mouse.

Body Code:

<script>

/*
 * Write here the message that you want to write.
 * Write the information between the "", like in the example shown below
 */

var mess48127="THIS IS YOUR MESSAGE ON A MOUSE OVER.";

/*
 * Write here the font color.
 * Write the information between the "", like in the example shown below
 */

var ini48127="black"; /* first color choice */
var sec48127="red"; /* second color choice */

/*
 * Write here the font size.
 * Write the information between the "", like in the example shown below
 */

var txtsi48127="20px";

/*
 * Frob at own risk below here.
 */


document.write("<span style='font-size:"+txtsi48127+";color:"+ini48127+"' onmouseover=this.style.color='"+sec48127+"' onmouseout=this.style.color='"+ini48127+"'>"+mess48127+"</span>")</script><!-- End of script -->

</script>

Times Viewed: 0

Leave a Reply

Your email address will not be published. Required fields are marked *