Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
365
WebMenu Item - add Mouseover Function to the Item - call javascript function like tooltip
posted

Hi, I have no clue in Webmenu
I'm editing an asp page, where there is a web menu.

What I want to do is almost like a tooltip over a webmenu item,
how do I add an onmouseover function to an item to display text?

<Items>
  <ignav:Item TargetUrl="Home.aspx" IslandClass="" TagString=""
    HoverImageUrl="" ImageUrl="" Text=" Home " HiliteClass=""  
    TargetFrame="" CssClass="mnuHome" HoverClass="mnuHomeHover">
</ignav:Item>

 I want to add the following javascript function onMouseover of "Home Item"

<div id="hoverText" class="main" style="padding: 3px;></div>
  <script type="text/javascript">
     var hoverText = document.getElementById('hoverText');
     function showHover(txt, e){
     if(document.all){
     xpos = event.clientX + document.body.scrollLeft;
     }
     else{
     xpos = e.pageX;
     ypos = e.pageY;
     }

     hoverText.innerHTML = txt;     hoverText.style.left = xpos + 13 + 'px';}
     function hideHover(){
     hoverText.innerHTML = "";
     hoverText.style.display = "none";
     }
    </script>
Mouseover="showHover('All Open Process', event);" 

Please Assist, I need to get this going! (ismailc@parmalat.co.za)

Regards

Parents Reply Children
No Data