I have a script I am using that will drop a menu after a link you click. I am trying to modify it where it will actually drop it directly BELOW the link instead. <br> would not work because I can place this menu on any word in a paragraph, and it does not disrupt the flow of the paragraph (the menu opens over the page).
Any quick fixes to this? Thanks in advance, I am tinkering but having no luck.
The code is as follows, rather simple:
<a href="" onclick="Medar_menu.style.visibility = (Medar_menu.style.visibility=='visible' ? 'hidden' : 'visible'); return false;" onmouseout="if (window.event.clientX<=Medar_menu.offsetLeft || window.event.clientY<=Medar_menu.offsetTop) { Medar_menu.style.visibility = 'hidden'; }">
Test Menu!
</a>
<span id="Medar_menu" class="navSubmenu" onmouseover="this.style.visibility='visible';" onmouseout="this.style.visibility='hidden';">
<a class="navSubmenuLink" href=" target="_parent"> • Link 1</a><br>
<a class="navSubmenuLink" href=" target="_parent"> • Link 2</a><br>
<a class="navSubmenuLink" href=" target="_parent"> • Link 3</a><br>
</span>
Any quick fixes to this? Thanks in advance, I am tinkering but having no luck.
The code is as follows, rather simple:
<a href="" onclick="Medar_menu.style.visibility = (Medar_menu.style.visibility=='visible' ? 'hidden' : 'visible'); return false;" onmouseout="if (window.event.clientX<=Medar_menu.offsetLeft || window.event.clientY<=Medar_menu.offsetTop) { Medar_menu.style.visibility = 'hidden'; }">
Test Menu!
</a>
<span id="Medar_menu" class="navSubmenu" onmouseover="this.style.visibility='visible';" onmouseout="this.style.visibility='hidden';">
<a class="navSubmenuLink" href=" target="_parent"> • Link 1</a><br>
<a class="navSubmenuLink" href=" target="_parent"> • Link 2</a><br>
<a class="navSubmenuLink" href=" target="_parent"> • Link 3</a><br>
</span>