
May 29th, 2005, 11:20 PM
|
 |
mod_dev_shed
|
|
Join Date: Sep 2002
Location: Atlanta, GA
|
|
You cannot have two identical ids; that defeats the purpose. If you give the abc123 <span> its own id, like "three", then you can getElementById('three') in the same onMouseOver that you do for 'two'.
BTW, there is a keyword called "this" that refers to the current element:
Code:
<span id="one" onmouseover="this.style.color='red';">123</span>
__________________
# Jeremy
Explain your problem instead of asking how to do what you decided was the solution.
|