hi, im trying to create a neat little script that displays a text inside a div, heres what i have so far:
It works fine in internet explorer, but I cant get it to work in FireFox :/ any ideas?
PHP:
<div id="pie">Latest Tutorials</div>
<a href="#" onmouseout="hidetmb()" onmouseover="showtmb('Hello World')"><img src="someicon.png"></a>
<a href="#" onmouseout="hidetmb()" onmouseover="showtmb('w00t')"><img src="someicon.png"></a>
<a href="#" onmouseout="hidetmb()" onmouseover="showtmb('a spoon')"><img src="someicon.png"></a>
<script language="JavaScript">
<!--
function showtmb(texty){
this.pie.innerHTML = texty;
}
function hidetmb(){
this.pie.innerHTML = "Latest Tutorials";
}
-->
</script>
It works fine in internet explorer, but I cant get it to work in FireFox :/ any ideas?
Last edited:







