Hi,
I have a couple of doubts, first the code:
1st - This is just to change some colors on onmouseover. This is working on Firefox, but not on IE6 (didn't test it on IE7)
2nd - The onmouseover only works on the letters, how can I make it to work on all span (defining the height, width area)
3th - I have that code under a link (<a title='text'>...</a>), but it not always work the link and it doesn't show the tittle.
this all code may sound strange, but thats cause its build on the fly when constructing a big page on php. I use span and not <div> cause the <div> gives me a break on the page, that I don't want.
Thanks for ANY help
Telmo Cardoso
I have a couple of doubts, first the code:
Code:
<span id="muda" onMouseOver=changeName();" onMouseOut="backName();"><font color='green'>A</font><font color='blue'>name</font></span>
<script type='text/javascript'>
function changeName() {
document.getElementById('muda').innerHTML ="<font color='blue'>A</font><font color='#8AFB17'>name</font>";
}
function backName() {
document.getElementById('muda').innerHTML ="<font color='green'>A</font><font color='blue'>name</font>";
}
</script>
1st - This is just to change some colors on onmouseover. This is working on Firefox, but not on IE6 (didn't test it on IE7)
2nd - The onmouseover only works on the letters, how can I make it to work on all span (defining the height, width area)
3th - I have that code under a link (<a title='text'>...</a>), but it not always work the link and it doesn't show the tittle.
this all code may sound strange, but thats cause its build on the fly when constructing a big page on php. I use span and not <div> cause the <div> gives me a break on the page, that I don't want.
Thanks for ANY help
Telmo Cardoso