Please select a category and click GO
UK Residents: Get great deals on high quality designer bathroom fittings from plumbfit.com

Plumbfit: Basin mixers, showers, taps, towel radiators Plumbfit: Bathroom showers, taps, towel radiators Plumbfit: Bathroom taps, showers, taps, towel radiators Plumbfit: Concealed showers, taps, towel radiators Plumbfit: Exposed showers, taps, towel radiators Plumbfit: Towel rails, showers, taps, towel radiators

Go Back Community for Webmasters & Developers > Client-Side Technology Forums > DHTML Forum
Reload this Page hide show drop down box when using dhtml menu
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
DHTML Forum Want a recipe for disaster? DHTML is a subtle blend of CSS, markup, and scripting.

Time:
Scotland: Fri, 4:32 am
Rhode Island: Thu, 11:32 pm
Florida: Thu, 11:32 pm
New Mexico: Thu, 9:32 pm
California: Thu, 8:32 pm

Click here to visit Livelife365.com

Click here to visit nmdarts.com



Buy this Ad Space.

180px wide.

Please get in touch with KH@ if you are interested and make an offer.

Selanac Embroidery and Screen Printing

Embroidery
Screen Printing
Signs and Banners
Promotional Advertising

WEBSITE

Contact Paul Canales
TEl: USA 732-901-8417
CELL: USA 732-773-1339


Please click here for more information

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 04-05-2001, 07:39 PM
shanewa2 shanewa2 is offline
Citizen
 
Join Date: Apr 2001
Posts: 2
shanewa2 is an unknown quantity at this point
Question hide show drop down box when using dhtml menu

I am using the top navigation II menu from brainjar found at dynamicdrive.com . When the page has a form with a drop down box, the horizontal menu goes under the drop down? In other words it is not visible. Does anyone know a solution for this problem ? It should be a solution that works in Netscape as well as in IE.

example of solution:

http://www.microsoft.com/trainingandservices/default.asp

any copy and paste solution for the top navigation II menu scheme?

Last edited by caislander : 06-03-2006 at 07:21 PM.
Reply With Quote
  #2  
Old 04-05-2001, 07:55 PM
diades's Avatar
diades diades is offline
Administrator
 
Join Date: Feb 2001
Location: Glasgow, Scotland
Posts: 16,546
diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in
Try setting the style attribute for the menu to 1(or 1 greater than anything else on the page, it should raise the menu above the rest on the screen.
Reply With Quote
  #3  
Old 04-07-2001, 12:34 AM
shanewa2 shanewa2 is offline
Citizen
 
Join Date: Apr 2001
Posts: 2
shanewa2 is an unknown quantity at this point
any other ideas

thanks,
any other ideas?
Reply With Quote
  #4  
Old 04-07-2001, 03:55 AM
mmi's Avatar
mmi mmi is offline
tegwar champ
 
Join Date: Oct 2000
Location: is everything
Posts: 8,022
mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman
diades - do you mean the z-index?
__________________

"In order to really enjoy a dog, one doesn’t merely try to train him to be semihuman. The point of it is to open oneself to the possibility of becoming partly a dog." — Edward Hoagland
Reply With Quote
  #5  
Old 04-07-2001, 09:48 AM
diades's Avatar
diades diades is offline
Administrator
 
Join Date: Feb 2001
Location: Glasgow, Scotland
Posts: 16,546
diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in
Is there a cure for brain-dead? Yes, I seem to have forgotten the attribute to set to 1 or ore, - "z-index"
Reply With Quote
  #6  
Old 04-07-2001, 02:24 PM
mmi's Avatar
mmi mmi is offline
tegwar champ
 
Join Date: Oct 2000
Location: is everything
Posts: 8,022
mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman
Exclamation a chance to redeem yourself

don't feel bad - the problem I have is that I can't figure out how to USE the #@$&%^* thing - you may have noticed me in the breakdown lane with the hood up on this page tryin' to get the dd menus on the right to display in the same space - seems like z-index is the trick - y'all don't really want the Design Review mod looking foolish like this, do you?
__________________

"In order to really enjoy a dog, one doesn’t merely try to train him to be semihuman. The point of it is to open oneself to the possibility of becoming partly a dog." — Edward Hoagland

Last edited by caislander : 06-03-2006 at 07:21 PM.
Reply With Quote
  #7  
Old 04-07-2001, 02:38 PM
diades's Avatar
diades diades is offline
Administrator
 
Join Date: Feb 2001
Location: Glasgow, Scotland
Posts: 16,546
diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in
Does #@$&%^ have its base in Esperanto? I seem to understand the meanig somehow
Reply With Quote
  #8  
Old 04-07-2001, 10:56 PM
mmi's Avatar
mmi mmi is offline
tegwar champ
 
Join Date: Oct 2000
Location: is everything
Posts: 8,022
mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman
no substitute for explicit language

unfortunately, I managed to hide the true "meaning" of my post - I want those lists to display in the same space - I haven't been able to pull it off - as they say in this biz, PLLEEEEAAAASSSSSEEEEE HELP, i.e., write the code for me
__________________

"In order to really enjoy a dog, one doesn’t merely try to train him to be semihuman. The point of it is to open oneself to the possibility of becoming partly a dog." — Edward Hoagland
Reply With Quote
  #9  
Old 04-08-2001, 09:04 PM
diades's Avatar
diades diades is offline
Administrator
 
Join Date: Feb 2001
Location: Glasgow, Scotland
Posts: 16,546
diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in
Sorry mmi, been offline formatting my hard drive for fun

I would suggest that you put the class ".contentArea1" to ".contentArea" and make it the class name for both divs. Make the position absolute instead of relative and make the top and left the same. Give each div an inline style attribute of z-index:0 then toggle the zIndex in a function thus:

Code:
function toggleOn(e){
  var e = document.getElementById(e.id);
  el.style.zIndex = 1;
}
function toggleOff(e){
  var e = document.getElementById(e.id);
  el.style.zIndex = 0;
}
hth
Reply With Quote
  #10  
Old 04-09-2001, 01:45 AM
mmi's Avatar
mmi mmi is offline
tegwar champ
 
Join Date: Oct 2000
Location: is everything
Posts: 8,022
mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman
Thumbs up thanks pal!

jeez, I tried most 'a this stuff in different combinations but never put it all together - I was actually making SLOW progress on figuring this out and would have gotten it in another year or two - IOU one
__________________

"In order to really enjoy a dog, one doesn’t merely try to train him to be semihuman. The point of it is to open oneself to the possibility of becoming partly a dog." — Edward Hoagland
Reply With Quote
  #11  
Old 04-09-2001, 07:24 PM
diades's Avatar
diades diades is offline
Administrator
 
Join Date: Feb 2001
Location: Glasgow, Scotland
Posts: 16,546
diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in
Another thought

Give the divs a background-color so they don't show the div on the bottom.
Reply With Quote
  #12  
Old 04-10-2001, 01:05 AM
mmi's Avatar
mmi mmi is offline
tegwar champ
 
Join Date: Oct 2000
Location: is everything
Posts: 8,022
mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman
Exclamation taking a position

I really appreciate your help on this diades, but in applying your solution, I seem to run into the same problem I've been having all along - namely, the positioning - if I set these as absolute values, won't they be "misplaced" when viewed at varying screen resolutions? - if this stuff were up against a left margin, I think I could do what I want easily enough - my problem seems to be (I may be wrong) that I'm trying to reach across a "center column" that is set up to vary its width to fill the screen - maybe I just need to redesign the page, but I'm thinking there must be SOME way of dealing with this
__________________

"In order to really enjoy a dog, one doesn’t merely try to train him to be semihuman. The point of it is to open oneself to the possibility of becoming partly a dog." — Edward Hoagland
Reply With Quote
  #13  
Old 04-10-2001, 07:47 PM
diades's Avatar
diades diades is offline
Administrator
 
Join Date: Feb 2001
Location: Glasgow, Scotland
Posts: 16,546
diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in
Don't despair, I'll take a look a see if I can't really mess it up!
Reply With Quote
  #14  
Old 04-10-2001, 09:22 PM
diades's Avatar
diades diades is offline
Administrator
 
Join Date: Feb 2001
Location: Glasgow, Scotland
Posts: 16,546
diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in diades has a brilliant future when plugged in
Ok, I have just tested this in IE 5.5 and it works. I can't test yet in N4.7 or N6 because I haven't reloaded them yet after formatting my disk.

Change:
Code:
    .contentArea1 {position:relative; visiblity: hidden; width:186px}
    .contentArea2 {position:relative; visiblity: hidden; width:186px}
To:
Code:
    .contentArea {position:relative; display: none; width:186px}
Change:

Code:
function showDivs (divName,divNumber) {
  var divsUsed = 2;
  if (navigator.appName.indexOf ("Microsoft") == 0 || navigator.appName.indexOf ("Netscape") == 0) {
    if (parseInt (navigator.appVersion) >= 4) {
      var cnt = 0;
      for (cnt = 1; cnt <= divsUsed; cnt++) {
        var divCheck = divName + cnt; 
        var divShow = divName + divNumber;
        if (ie) {
          if (divCheck == divShow)  document.all(divShow).style.visibility = visible;
          else document.all(divCheck).style.visibility = hidden;
        }
        if (n) {
          if (divCheck == divShow) document.layers[divShow].visibility = visible;
          else document.layers[divCheck].visibility = hidden;
        }
      }
    }
  }
}
To:

Code:
function showDivs (divName,divNumber) {
  var divsUsed = 2;
  if (navigator.appName.indexOf ("Microsoft") == 0 || navigator.appName.indexOf ("Netscape") == 0) {
    if (parseInt (navigator.appVersion) >= 4) {
      var cnt = 0;
      for (cnt = 1; cnt <= divsUsed; cnt++) {
        var divCheck = divName + cnt; 
        var divShow = divName + divNumber;
        if (ie) {
          if (divCheck == divShow)  document.all(divShow).style.display = "block";
          else document.all(divCheck).style.display = "none";
        }
	if (n) {
          if (divCheck == divShow) document.layers[divShow].display = "block";
          else document.layers[divCheck].display = "none";
        }
      }
    }
  }
}
Change:
Code:
<div id="area_1" class="contentArea1" align="center" style="width: 186px">
<div id="area_1" class="contentArea2" align="center" style="width: 186px">
To:

Code:
<div id="area_1" class="contentArea" align="center" style="width: 186px">
<div id="area_1" class="contentArea" align="center" style="width: 186px">
Light the blue touch paper and retire
Reply With Quote
  #15  
Old 04-11-2001, 04:38 AM
mmi's Avatar
mmi mmi is offline
tegwar champ
 
Join Date: Oct 2000
Location: is everything
Posts: 8,022
mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman mmi has much to be proud of, unbeknownst to the taxman
Wink IE is happy, but...

lookin' good so far, but I'm not getting a display in N4.7 - I'm using this page to troubleshoot the change - N doesn't like the condition
Code:
if (divCheck == divShow) document.layers[divShow].visibility = visible;
producing
Code:
document.layers[divShow] has no properties
- IE was doing the same thing on its line at first - I changed the div id's back to area_1 and area_2 and it was satisfied - N still doesn't like it - [just to be clear, having them both with id="area_1" didn't help N; it simply caused IE to fail] - so it seems like I need to label these divs in a way that N likes - I really appreciate your help, diades, in getting this done - it's been buggin' me - hopefully, a nomenclature that satisfies N's exacting standards will somehow become known to me
__________________

"In order to really enjoy a dog, one doesn’t merely try to train him to be semihuman. The point of it is to open oneself to the possibility of becoming partly a dog." — Edward Hoagland

Last edited by caislander : 06-03-2006 at 07:22 PM.
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
DHTMLTarget window in dhtml menu mcfly DHTML Forum 1 08-16-2005 04:33 AM
JavaScriptHow to adapt a popup box menu script soleestreya JavaScript Forum 5 02-09-2005 07:02 AM
DHTMLJSP or JS drop down menu generation from db in *.jsp celia05es DHTML Forum 1 07-21-2004 08:50 PM
DHTMLdrop down menu aceman DHTML Forum 7 04-27-2004 07:39 PM
Script ReviewDynamic Drop Menu diades JavaScript Forum 8 06-17-2001 10:20 PM


All times are GMT +1. The time now is 04:32 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2010, WebXpertz.com. All Rights Reserved.