hey javascripters I need your help
Mike Lane
Registered Users Posts: 7,106 Major grins
Say I had this in the html:
<div id="navcontainer">
<ul id="navbar">
<li><a href="#">link1</a></li>
<li><a href="#">link2</a></li>
<li><a href="#">link3</a></li>
</ul>
</div>
<div class="swap"></div>
What I'd like to do is when I rollover the link1, link2, and link3 class in the lower div to change from swap to say swap1, swap2, or swap3 respectively. I'm pretty sure that it'll take an onmouseover / onmouseout event I just don't know how to access the swap class.
<div id="navcontainer">
<ul id="navbar">
<li><a href="#">link1</a></li>
<li><a href="#">link2</a></li>
<li><a href="#">link3</a></li>
</ul>
</div>
<div class="swap"></div>
What I'd like to do is when I rollover the link1, link2, and link3 class in the lower div to change from swap to say swap1, swap2, or swap3 respectively. I'm pretty sure that it'll take an onmouseover / onmouseout event I just don't know how to access the swap class.
0
Comments
Then you have this javascript function: For the onmouseout, you would call a similar function: That's it.:)
There may be syntax errors in the above scripts, but you'll get the idea :
Finally i get to be of some help for you, Mike. As thanks for all the help you've given me! <img src="https://us.v-cdn.net/6029383/emoji/thumb.gif" border="0" alt="" >
-- Anton.
When I hear the earth will melt into the sun,
in two billion years,
all I can think is:
"Will that be on a Monday?"
==========================
http://www.streetsofboston.com
http://blog.antonspaans.com
http://photos.mikelanestudios.com/
When I hear the earth will melt into the sun,
in two billion years,
all I can think is:
"Will that be on a Monday?"
==========================
http://www.streetsofboston.com
http://blog.antonspaans.com
http://photos.mikelanestudios.com/