Uppercase Highlighted Text

[Total: 0    Average: 0/5]

This example will change the font case on a mouse over event.

Body Code:

<script>

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

var mess="this is your message.";

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

var ini="blue";

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

var txtsi="20px";

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

d='"';

document.write("<span style='text-decoration:none;font-size:"+txtsi+";color:"+ini+"' onmouseover='this.style.textTransform="+d+"uppercase"+d+"' onmouseout='this.style.textTransform="+d+"none"+d+"'>"+mess+"</span>")

</script>

Times Viewed: 5

Leave a Reply

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