View Full Version : Double MM_swapImage ---» onmouseover
frank193
03-16-2006, 03:24 PM
Is it possible to have 2 images swaping simultaniously from one "onmouseover"???
Here's my code line:
<a onmouseover="MM_swapImage('Avantages','','../images/fr submenu avantages2.jpg',1);" onmouseout="MM_swapImgRestore()" href="avantage.html"><img src="../images/fr submenu avantages.jpg" border="0" width="167" height="24" name="Avantages"/></a>
Thanks a lot guys!!!!!:)
jscheuer1
03-16-2006, 04:41 PM
Basically yes but, the MM_swapImage() and MM_swapImgRestore() functions might not be the best way to do it. They could be used for one set of swap/restore but, due to their limitation (can only restore one previously swapped image at a time), other functions would need to be written (or found somewhere) for the other. If you were using a more versatile swap/restore code, it could be used for both operations. The basic idea is:
<a onmouseover="MM_swapImage('Avantages','','../images/fr submenu avantages2.jpg',1);other_swap();" onmouseout="MM_swapImgRestore();other_restore();" href="avantage.html"><img src="../images/fr submenu avantages.jpg" border="0" width="167" height="24" name="Avantages"/></a>
Dissolving Image Rollver (http://www.dynamicdrive.com/dynamicindex15/dissolveroll.htm) is versatile enough to accomplish this with or without MM_swapImage() and MM_swapImgRestore().
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.