<script>// CREDITS:
// Free JavaScript: Dynamic change of linktexts onMouseOver
// by Urs Dudli and Peter Gehrig
// Copyright (c) 2010 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.fabulant.com/fast/index.html
// IMPORTANT:
// If you add this script to a script-library or a script-archive
// you have to insert a link to http://www.fabulant.com/fast/index.html
// right into the webpage where the script will be displayed.
var oldtext
var newtext
var newlink
function shownewtext(thislink,thistext) {
newlink=eval("document.getElementById('"+thislink+"')")
newtext=thistext
oldtext=newlink.childNodes[0].nodeValue
newlink.childNodes[0].nodeValue=thistext;
}
function showoldtext() {
newlink.childNodes[0].nodeValue=oldtext;
}
</script>
<a href="http://www.yourdomain.com" id="any_link_id" onMouseOver="shownewtext(this.id,'Thank you very much')" onMouseOut="showoldtext()">Change this text</a>