surferdave
09-03-2002, 11:11 PM
Hello
This function would change the text, color and font depending on mouse over and mouse out.
It works but it creates and JS error everytime.
<SCRIPT LANGUAGE="JavaScript">
function change()
{
txt.innerText="Red Text"
txt.style.color='red'
txt.style.font= '30'
}
function over()
{
txt.innerText="Blue Text"
txt.style.color='blue'
txt.style.font= '30'
}
</script>
<a href="#" onMouseOver="change()" onMouseOut="over()" >Touch me</a>
<p id="txt"></p>
Thanks
Dave
This function would change the text, color and font depending on mouse over and mouse out.
It works but it creates and JS error everytime.
<SCRIPT LANGUAGE="JavaScript">
function change()
{
txt.innerText="Red Text"
txt.style.color='red'
txt.style.font= '30'
}
function over()
{
txt.innerText="Blue Text"
txt.style.color='blue'
txt.style.font= '30'
}
</script>
<a href="#" onMouseOver="change()" onMouseOut="over()" >Touch me</a>
<p id="txt"></p>
Thanks
Dave