DHTML question.

Posted:
in Genius Bar edited January 2014
http://eccentrick.co.uk/up/menu.html



The menus, well, you can see what I want.



The code is not very economic, I'm sure, so if there are any hints as to how to condense it that'd be great, but what I really need is for it to work!



As it is, you can approach the submenus from the bottom and they appear. They're still there, even though they're invisible. I need the onmouseover to only be active when moved to from the main menu item...



Thank you in advance!



uxx

Comments

  • Reply 1 of 3
    A Simple way of doing this would be:



    Code:




    <script language="javascript">

    // <!---

    function showMe(theName) {

    document.getElementById(theName).style.visibil ity = 'visible';

    }

    function hideMe(theName) {

    document.getElementById(theName).style.visibil ity = 'hidden';

    }

    // -->

    </script>







    in the head, and then the lines would look like:



    Code:




    <span class="menuitem" onMouseOver="showMe('subinfo');"

    onMouseOut="hideMe('subinfo');">information</span>





  • Reply 2 of 3
    ooh, extra credit for my web design class!
  • Reply 3 of 3
    Thanks, but I can't get that to work...can you?



    Feel free to PM me the entire code if you can.



    Thanks!
Sign In or Register to comment.