|
#1
|
|||
|
|||
|
Hi,
Currently I am using this script to display a drop down menu onClick upon user onClick a button. The problem now is in IE, the menu will hide behind combo drop down. I am attaching an image for easy visualization for you all. One more issue, can we kind of "force" the menu to drop down in one way, in this case, i want it to drop down on the bottom way instead of showing on top of the button when the browser's space is limited on the bottom part. Thanks for your help! |
|
#2
|
|||
|
|||
|
Is there somebody helping on this?
|
|
#3
|
||||
|
||||
|
Are those form boxes? If so, the best work around is to have them become invisible while the menu is dropping down.
__________________
WWWWWWWWWWWW - John________________________ Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate |
|
#4
|
|||
|
|||
|
Quote:
|
|
#5
|
||||
|
||||
|
Have a look at this post and the thread it is in. A slightly different script but, the same solution. Let me know if you have more questions.
http://www.dynamicdrive.com/forums/s...ad.php?p=11343
__________________
WWWWWWWWWWWW - John________________________ Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate |
|
#6
|
|||
|
|||
|
Quote:
HTML Code:
//Contents for Management: var menu5=new Array() menu5[0]='<ul><li><a href="view_users.php" class="menuskin">.: View Users</a></li></ul>' menu5[1]='<ul><li><a href="add_user.php" class="menuskin">.: Add User</a></li></ul>' menu5[2]='<ul><li><a href="work_log.php" class="menuskin">.: Staff Work Report</a></li></ul>' menu5[3]='<ul><li><a href="upload_file.php" class="menuskin">.: Upload File</a></li></ul>' menu5[4]='<ul><li><a href="view_uploads.php" class="menuskin">.: View Uploaded Files</a></li></ul>' var menuwidth='165px' //default menu width var menubgcolor='#ccc' //menu bgcolor var disappeardelay=250 //menu disappear speed onMouseout (in miliseconds) var hidemenu_onclick="yes" //hide menu when user clicks within menu? /////No further editting needed var ie4=document.all var ns6=document.getElementById&&!document.all if (ie4||ns6) // Original script: //document.write('<div id="menuskin" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="clearhidemenu()" onMouseout="dynamichide(event)"></div>') // Applying your suggestion: document.write('<div id="menuskin" style="visibility:hidden;width:'+menuwidth+';background-color:'+menubgcolor+'" onMouseover="if (document.all&&!window.opera){document.all('category').style.visibility='hidden'};clearhidemenu()" onMouseout="dynamichide(event);if (document.all&&!window.opera){document.all('category').style.visibility='visible'};"></div>') I'm pretty sure I'm doing something wrong because the dropdown is still showing behind the <select> tag. |
|
#7
|
||||
|
||||
|
If it is only one drop box named 'category' you are hiding, this method will work well - find this line in the script:
Code:
function dropdownmenu(obj, e, menucontents, menuwidth){
Code:
if (document.all&&!window.opera){document.all('category').style.visibility='hidden'};
Code:
function hidemenu(e){
Code:
if (document.all&&!window.opera){document.all('category').style.visibility='visible'};
__________________
WWWWWWWWWWWW - John________________________ Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate |
|
#8
|
|||
|
|||
|
Hello jscheuer1!
First of all thanks for your time in helping me with this problem. Really appreciate it. I tried your suggestion. However, the "anylink dropdown" menu would not show at all. Here's the web page so you can see: 1) Before applying your suggestion: http://admin.saipanmall-net.com/original.php 2) After applying your suggestion: http://admin.saipanmall-net.com/problem.php Note: The AnyLink DropDown Menu works fine with Mozilla Firefox 5.0 without making the changes you suggested. But its not working w/ IE 6.0 (the one that's installed in my computer). |
|
#9
|
||||
|
||||
|
Quote:
Code:
if (document.all&&!window.opera){document.all('category').style.visibility='hidden'};
Code:
if (document.all&&!window.opera){document.all('boxOne').style.visibility='hidden';document.all('boxTwo').style.visibility='hidden'};
Code:
if (document.all&&!window.opera){document.all('category').style.visibility='visible'};
Code:
if (document.all&&!window.opera){document.all('boxOne').style.visibility='visible';document.all('boxTwo').style.visibility='visible'};
HTML Code:
<select name="category" size="1" onChange="document.change_cat.submit();">
HTML Code:
<select id="boxOne" name="category" size="1" onChange="document.change_cat.submit();">
HTML Code:
<tr><td><b>Sub Category:</b> </td><td><select name="subcategory" size="1" onChange="document.change_scat.submit();"> HTML Code:
<tr><td><b>Sub Category:</b> </td><td><select id="boxTwo" name="subcategory" size="1" onChange="document.change_scat.submit();"> HTML Code:
<small>Please fill in the following form.<br> <br>Only the Description field is optional.<br> <br>All others are required to successfully add your item to the database.</small>
__________________
WWWWWWWWWWWW - John________________________ Really Show Your Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate Last edited by jscheuer1; 06-29-2005 at 09:31 AM. |
|
#10
|
|||
|
|||
|
It worked!! Thanks so much! Your suggestion on making the form farther down the page makes sense too. I'm leaning towards that, but I want to thank you all the same for showing me how to fix this (I really like learning new things).
Thanks for finding those small errors too (<html> and the misspelled word). One last thing, I saw in some forums like codeguru (http://www.codeguru.com/forum/) that their menu has a dropdown too, but it doesn't disappear when you move the mouse pointer away from it. How do I do this? (Try clicking on their "QuickLinks" menu). Thanks again!!
Last edited by che_rish; 06-30-2005 at 12:26 AM. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
|
|