Forum Moderators: not2easy

Message Too Old, No Replies

CSS Problem with onmouseout rollover

         

jrthib

12:41 am on Aug 30, 2006 (gmt 0)

10+ Year Member



I'm having trouble making my rollover change back to its normal state when using a css drop down menu. everything works except the mouseover state remains when you take your mouse off of the button.

<The button in question>


<div style="position:absolute;top:465px;left:72px;width:146px;height:34px;">
<a href="achievement.html"><img src="images/normal/SacredHeart-Redesign_10.jpg" alt="About Our School" width="146" height="34" border="0" id="aboutbutton" onmouseover="changeImages('aboutbutton','images/over/SacredHeart-Redesign_10.jpg');dropdownmenu(this, event, 'aboutmenu')" onmouseout="changeImages('aboutbutton','images/normal/SacredHeart-Redesign_10.jpg')" /></a></div>

<The CSS menu in question>


<div id="aboutmenu" class="anylinkcss">

<a href="http://www.dynamicdrive.com/">Dynamic Drive</a>
<a href="http://www.cssdrive.com">CSS Drive</a>
<a href="http://www.javascriptkit.com">JavaScript Kit</a>
<a href="http://www.codingforums.com">Coding Forums</a>
<a href="http://www.javascriptkit.com/jsref/">JavaScript Reference</a>

</div>

Setek

10:15 am on Aug 30, 2006 (gmt 0)

10+ Year Member



Why don't you actually use CSS for your menu?

If you want to keep using Javascript, you might find a better response in the Javascript forum [webmasterworld.com], as this is more applicable there than here.