-----------------------------------------------------------

New Message on BDOTNET

-----------------------------------------------------------
From: s_hashim
Message 5 in Discussion


 


Dear SOVON,
 
Combo Box / Select Box will not have the 
Z-Index property hence, we need to hide the select box to overcome this 
probolem.
 
Look at the following attached code to hide 
the comob/select box through JavaScript.
 
Just add this code in which you want to 
solve the combo/select box problem.


<script 
language=javascript>
 
/******************************************
Hideselectboxes
IE5+ and NS6+ only - ignores 
the other browsers
 
Because of the selectbox bug in the browsers that makes 
selectboxes 
have the highest z-index whatever you do 
this script will check for 
selectboxes that interfear with
your menu items and then hide them. 
/*****************************************/
if(bw.dom&&!bw.op){
  
makeCM.prototype.sel=0
  
makeCM.prototype.onshow+=";this.hideselectboxes(pm,pm.subx,pm.suby,maxw,maxh,pm.lev)"
  
makeCM.prototype.hideselectboxes=function(pm,x,y,w,h,l){
    
var selx,sely,selw,selh,i
    
if(!this.sel){
      
this.sel=this.doc.getElementsByTagName("SELECT")
    
this.sel.level=0
    }
    var 
sel=this.sel
    
for(i=0;i<sel.length;i++){
   selx=0; sely=0; var 
selp;
   if(sel[i].offsetParent){selp=sel[i]; 
while(selp.offsetParent){selp=selp.offsetParent; selx+=selp.offsetLeft; 
sely+=selp.offsetTop;}}
   selx+=sel[i].offsetLeft; 
sely+=sel[i].offsetTop
   selw=sel[i].offsetWidth; 
selh=sel[i].offsetHeight   
   if(selx+selw>x 
&& selx<x+w && sely+selh>y && 
sely<y+h){
    if(sel[i].style.visibility!="hidden"){sel[i].level=l; 
sel[i].style.visibility="hidden"; if(pm){ if(!pm.mout) pm.mout=""; 
pm.mout+=this.name+".sel["+i+"].style.visibility='visible';"}}
      
}else if(l<=sel[i].level && !(pm&&l==0)) 
sel[i].style.visibility="visible"
    }
  }
}
 
</script>

********** 
Keep Smiling, 
Regards. 


Sayad Hashim Ali 
Kazi
Microsoft India Community Star. 

SQL Star International Ltd.
SQL 
House, #13,Infocity,Madhapur,
Hyderabad 500 081.
Tel: +91-40-2310 
1625(Off),+91-40-5536 5573(Res)
www.mugh.net 
-----Original Message-----
From: Raghs_vs 
[mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 02, 2004 6:09 
PM
To: BDOTNET
Subject: Menu goes to inside the Combo 
box



  
  
    
    New Message on BDOTNET
  
    

Menu goes 
  to inside the Combo box


  
    
    
      Reply

      
        
          
          
             
            Reply to Sender   Recommend 
            Message 1 in Discussion 
            
    
      
        
          
          
            From: Raghs_vs 
          
            

              Hi 
               
              
              
I have created a One menu control using, XML, XSL and 
              JavaScript and C#.net, I am facing a one problem, When there is 
              any combo box or list box is there in the form this menu goes 
              inside that control , plz help me in this how to avoid this..
              
 
              
<o:p>Plz help me</o:p>
              Advance thanks
               
              Raghs V.S
               
View other groups in this 
  category. 



-----------------------------------------------------------

To stop getting this e-mail, or change how often it arrives, go to your E-mail 
Settings.
http://groups.msn.com/BDotNet/_emailsettings.msnw

Need help? If you've forgotten your password, please go to Passport Member Services.
http://groups.msn.com/_passportredir.msnw?ppmprop=help

For other questions or feedback, go to our Contact Us page.
http://groups.msn.com/contact

If you do not want to receive future e-mail from this MSN group, or if you received 
this message by mistake, please click the "Remove" link below. On the pre-addressed 
e-mail message that opens, simply click "Send". Your e-mail address will be deleted 
from this group's mailing list.
mailto:[EMAIL PROTECTED]

Reply via email to