Results 1 to 2 of 2

Thread: Double MM_swapImage ---» onmouseover

  1. #1
    Join Date
    Mar 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Double MM_swapImage ---» onmouseover

    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!!!!!

  2. #2
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    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:

    HTML Code:
    <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 is versatile enough to accomplish this with or without MM_swapImage() and MM_swapImgRestore().
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •