Results 1 to 2 of 2
  1. #1
    ochness is offline Member
    Join Date
    Dec 2010
    Posts
    1
    Rep Power
    0

    Default Java Rollovers not showing Swap Image

    I am new to Java and I hope I have come to the right place. I am currently working on my first website and working on creating the navigation bar. I have the nav bar working for the most part (I have flyout menus that work fine) except the main button Swap Image does not work. The image will not change when I mouse over the image. When I point the Swap Image to ../filename the rollover does not work, but if I point the Swap Image to a full path on my hard drive it seems to work fine. I have included the code for one of my nav buttons. Any help or suggestions would be great...Thanks.

    <td rowspan="2"><a href="../Index.html" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('HomeButtonSlice_s1','', '../HomeButtonSlice_s2.gif',1)"><img name="HomeButtonSlice_s1" src="../HomeButtonSlice_s1.gif" width="55" height="13" border="0" id="HomeButtonSlice_s1" alt="" /></a></td>

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    Location
    New Zealand
    Posts
    4,565
    Rep Power
    12

    Default

    Those onMouseXxx() methods are actually JavaScript, where as this is actually a forum for Java. They're different languages, so you might want to google for a more appropriate forum.

    If the MM_swapImage stuff belongs to a particular JavaScript library you could well find that there is a forum devoted specifically to its use. (I've just googled myself: try putting MM_swapImage into google. It seems to be DreamWeaver thing, so Adobe might be your best bet.)

Similar Threads

  1. Replies: 5
    Last Post: 12-04-2010, 12:30 AM
  2. Image not showing up!!
    By ThrashingBoy in forum New To Java
    Replies: 1
    Last Post: 11-08-2010, 10:22 PM
  3. swap method
    By leavearth in forum New To Java
    Replies: 1
    Last Post: 04-24-2010, 06:59 PM
  4. showing image in web application
    By Juuno in forum Advanced Java
    Replies: 3
    Last Post: 05-11-2009, 04:36 AM
  5. how to swap 2 numbers
    By mary in forum Advanced Java
    Replies: 1
    Last Post: 08-02-2007, 05:32 PM

Tags for this Thread

Posting Permissions

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