»
EnglishFrenchVietnamese

Print - Text Changer onMouseover script - JavaScriptBank.com

Full version: jsB@nk » Snippet » Text Changer onMouseover script
URL: https://www.javascriptbank.com/text-changer-onmouseover-script.html

Text Changer onMouseover script © JavaScriptBank.comScroll the mouse over my name to see the effect. CSS can be used to make the text exactly the same as that surrounding it.

Full version: jsB@nk » Snippet » Text Changer onMouseover script
URL: https://www.javascriptbank.com/text-changer-onmouseover-script.html



JavaScript
<script>function changename(ta){   if (ta.cols == 5)   {      ta.value = 'Steve Waring that is';      ta.cols = 20;   }   else   {      ta.value = 'Steve';      ta.cols = 5;   }}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<form>My name is <textarea style="border: 0px none ; background-color: transparent; overflow: hidden;" rows="1" cols="5" readonly="readonly" onmouseover="changename(this)">Steve</textarea>.<br>Scroll the mouse over my name to see the effect. CSS can be used to make the text exactly the same as that surrounding it.</form><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->