View Full Version : Rollovers stay highlighted when back button is hit

03-08-2009, 06:52 AM
Hi All,

I am a novice Dreamweaver user so please forgive me if this question is basic... I have looked everywhere for the answer. I am designing my page and I have created rollover through Behaviors. They work great, but the problem that I am running in to is that when I hit the back button they are still highlighted and do not unhighlight until I mouse off them again. I have read that this is a IE problem, but I am testing with Firefox 3.0, Safari (newest) and IE (newest) and I am getting the same problem with all. Is there any way to fix this? I will post the code for one link. Thanks in advance.


<div id="clientsDIV"><a href="clients.html" onfocus="active"><img src="images/main_menu/buttons/clients.png" alt="clients" width="88" height="17" border="0" id="Image6" onmouseover="MM_swapImage('Image6','','images/main_menu/buttons/clients_ro.png',1)" onmouseout="MM_swapImgRestore()" /></a></div>

03-10-2009, 12:37 PM
You can do this with just CSS you don't need to use javascript. Just use the hover psuedo class. If you post the images I will show you how.