»
EnglishFrenchVietnamese

Print - Reverse link - JavaScriptBank.com

Full version: jsB@nk » Link » Reverse link
URL: https://www.javascriptbank.com/reverse-link.html

Reverse link © JavaScriptBank.comThe code will reverse textlink when visitors move mouse over it.

Full version: jsB@nk » Link » Reverse link
URL: https://www.javascriptbank.com/reverse-link.html



JavaScript
<script language="JavaScript">function reverse_text(obj){    var newtext = "";      var text = obj.innerText;    letters  = new Array();      this.text = text;    for(i=0; i<text.length; i++)       letters[i] = text.substr(i,1);    for(i=(letters.length-1); i>=0; i--)       newtext += letters[i];           obj.innerText = newtext;}function unreverse_text(obj){    obj.innerText = this.text;}</script><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->


HTML
<a id="shuffle1" href="http://javascriptbank.com/" onmouseover="javascript:reverse_text(this)" onmouseout="javascript:unreverse_text(this)">Welcome to JavaScriptBank.com</a><!--    This script downloaded from www.JavaScriptBank.com    Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->