Wrox Programmer Forums
|
CSS Cascading Style Sheets All issues relating to Cascading Style Sheets (CSS).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the CSS Cascading Style Sheets section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 3rd, 2008, 02:22 AM
Registered User
 
Join Date: Mar 2008
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default menu disappears in ie 6

Menu disappears when it reaches text box. I used killme style class to hide the visibility of text box when mouseover the dropdown menu.
but now the problem is when i mouseover in drop down when mousepointer reach the place where text box appear at the time menu disappears even i hide the visibility of text box. Please if u have any solution that would be appreciate.
------------------->
 <td class="content-field">
      <div id="autocomplete" class="yui-ac">
        <input type="text" class="content-field" size="20" name="searchQuery" id="searchQuery" styleClass="killme">
        <div id="searchResults" style="z-index:1;width:500px;"></div>
      </div>
---------------------->
/* styles for entire widget */
.bodystyle .yui-ac {
    position:relative; // text box position.
    font-family:arial;
    font-size:100%;
}
---------------------->
.navrow {
    position: relative; // drop down menu top: 3px;
}
------------------------->
//MENU.JSP

<style type="text/css">
    .killme {display: block}
  </style>
  <div class="navrow" onMouseOver="menu_changecss('.killme','visibility' ,'hidden');" onMouseOut="menu_changecss('.killme','visibility', 'visible');">

  <% out.print(CmsMenuUtil.generateHTMLMenu(request)); %>

  </div>

----------------------------------------->
MENU.JS


function menu_changecss(theClass,element,value)
{
  // if IE, need to hide all of the select box elements
  if (document.all)
  {
           var selects = document.getElementsByTagName("SELECT");
           //var texts is added as a code fix for bug 18209
           var texts = document.getElementsByTagName("input");
      for (var selecti = 0; selecti < selects.length; selecti++)
      {
          select = selects[selecti];
          if (select.className.indexOf("killme") != -1 )
          {
              select.style.visibility = value;
          }
      }
      for (var texti = 0; texti < texts.length; texti++)
        {
                  text = texts[texti];
                  if(text.type !=null&&text.type !='undefined' && text.type =='text')
                  {
                          if(text.styleClass == null)
                          {
                              continue;
                          }
                          else if ( text.styleClass.indexOf("killme") != -1 )
                          {
                              text.style.visibility = value;
                        }
                  }
      }
  }
}

----------------------------------->
z-index is not working in IE 6.0 is there any solution for fix this issue.






bala





Similar Threads
Thread Thread Starter Forum Replies Last Post
Properties window disappears. bachakhan VS.NET 2002/2003 1 December 29th, 2004 01:28 PM
AMPERSAND disappears when given along with # happygv Forum and Wrox.com Feedback 2 October 25th, 2004 09:49 PM
CSS disappears on postback byron ASP.NET 1.0 and 1.1 Basics 1 November 12th, 2003 05:18 PM
Task Bar Disappears NRT Beginning VB 6 0 October 20th, 2003 01:54 PM
Value Disappears byron VB.NET 2002/2003 Basics 0 October 13th, 2003 10:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.