PDA

View Full Version : help with innerHTML onmouseover!


the_scyphe
04-03-2007, 04:30 PM
I tried this script and doesn't seem to work!

<span onmouseover="innerHTML:'. . . . . . . . . . . . . '" onmouseout="innerHTML:'. . . . . . . . . . . . . . . . . . . . . . '">. . . . . . . . . . . <br />. . . . . </span>

Any ideas?

the_scyphe

nexosis
04-03-2007, 04:35 PM
Well you did the wrong syntax so it went wrong, scyphe.
This will work.

<span onmouseover="innerHTML='. . . . . . . . . . . . . '" onmouseout="innerHTML='. . . . . . . . . . . . . . . . . . . . . . '">. . . . . . . . . . . <br />. . . . . </span>

the_scyphe
04-03-2007, 04:37 PM
thanks a lot nexosis, it worked!!!
I didn't know that the correct syntax was = and not :, thanks a lot!
the_scyphe

Kor
04-03-2007, 06:16 PM
I might look pedantic, but I suggest you to use the self reference. It is a good habit

onmouseover="this.innerHTML=......."