I was trying to add links into javascript but could not do it. Loober is checking an input box. According to the focus, i wanted to change the links that appear on the page. changeME is default.
<script type = "text/javascript">
var check = document.getElementById("loober");
var testElement = document.getElementById("changeMe");
var text = "bbb";
var text2 = "aaa";
check.onfocus= function()
{
testElement.innerHTML = text.link("index.php");
}
check.onblur = function()
{
testElement.innerHTML = text2.link("home.php");
}
</script>
Thanks