473,804 Members | 2,205 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Drop Down help

Hey there, I have been piecing this menu system together from a couple
of different sources and can almost see the end the of the tunnel.

This is based on the Suckerfish Dropdowns which then incorporates an
iframe to allow the menu to be over the form. (See links)

http://www.htmldog.com/articles/suckerfish/dropdowns/
http://homepage.mac.com/igstudio/des...ls-iframe.html

These are the issues that I am having -

1. my top menu (Percoidei, Anabantoidei) has the rollover change the
background from white to maroon, I cannot get the text to change from
black to white on the rollover

2. I have a fixed width for the drop down menus, I would like to have
this expand to be just the width (plus some padding) of the longest
text.

below is the code for my page -

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dt d">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"
/>
<title>Untitl ed Document</title>
<style type="text/css">
body {
margin: 0px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 11px;
}

/** Nav Dropdowns **/
#nav{
padding: 0 0 0 10px;
margin: 0;
list-style: none;
float: left;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #294D84;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: #999999;
}

#nav ul { /* all lists */
padding: 0;
margin: 0;
list-style: none;
float: left;
width: 110px;
}
#nav li { /* main list items */
float: left;
padding: 0 9px 0 8px;
}
#nav li a{ /* main list items */
text-decoration: none;
color:#000000;
display: block;
padding: 3px 7px 4px 7px;
}
#nav li a:hover, li.iehover a { /* main list items */
text-decoration: none;
color:#FFFFFF;
background-color: #9C2021;
display: block;
padding: 3px 7px 4px 7px;
}
#nav ul li { /* sunmenu list items */
position: relative;
float: left;
width: 139px;
padding: 0;
}
#nav li ul { /* second-level lists */
position: absolute;
left: -1000px;
margin-left: 0px;
margin-top: 0px;
}
#nav li ul ul { /* third-and-above-level lists */
left: -1000px;
}
#nav ul li a {
display: block;
text-decoration: none;
padding: 5px 7px 6px 7px;
background-color:#CCCCCC;
}
#nav ul li a:hover {
background-color: #9C2021;
padding: 5px 7px 6px 7px;
color: #FFFFFF;
}

#nav li:hover ul ul, #nav li:hover ul ul ul, #nav li:hover ul ul ul ul,
#nav li.iehover ul ul, #nav li.iehover ul ul ul, #nav li.iehover ul ul
ul ul {
left: -1000px;
}
#nav li:hover ul, #nav li li:hover ul, #nav li li li:hover ul, #nav li
li li li:hover ul, #nav li.iehover ul, #nav li li.iehover ul, #nav li
li li.iehover ul, #nav li li li li.iehover ul { /* lists nested under
hovered list items */
left: auto;
background-color:#CCCCCC;
width: 139px;
border-style: solid;
border-color: #999999;
border-width: 1px;
}

/** Support for the "nav_menu.j s" **/
#nav iframe {
position: absolute;
left: 0;
top: 0;
z-index: 0;
filter: progid:DXImageT ransform.Micros oft.Alpha(style =0,opacity=0);
margin-left: -1px;
}
/** end **/

</style>
<script type="text/javascript">
ieHover = function() {
var ieLIs = document.getEle mentById('nav') .getElementsByT agName('li');
for (var i=0; i<ieLIs.length ; i++) if (ieLIs[i]) {
ieLIs[i].onmouseover=fu nction() {

var ieUL = this.getElement sByTagName('ul' )[0];
if (ieUL) {
var ieMat = document.create Element('iframe ');
ieMat.style.wid th=ieUL.offsetW idth + 2 + "px";
ieMat.style.hei ght=ieUL.offset Height + 2 + "px";
ieUL.insertBefo re(ieMat,ieUL.f irstChild);
ieUL.style.zInd ex="99";
}

this.className+ =" iehover";
}
ieLIs[i].onmouseout=fun ction() {
this.className= this.className. replace(' iehover', '');
}
}
}

if (window.attachE vent) window.attachEv ent('onload', ieHover);
</script>
</head>
<body>
<ul id="nav">
<li><a href="#">Percoi dei</a>
<ul>
<li><a href="#">Remora s</a></li>
<li><a href="#">Tilefi shes</a></li>
<li><a href="#">Bluefi shes</a></li>
<li><a href="#">Tigerf ishes</a></li>
</ul>
</li>
<li><a href="#">Anaban toidei</a>
<ul>
<li><a href="#">Climbi ng perches</a></li>
<li><a href="#">Labyri nthfishes</a></li>
<li><a href="#">Kissin g gouramis</a></li>
<li><a href="#">Pike-heads</a></li>
<li><a href="#">Giant gouramis</a></li>
</ul>
</li>
</ul>
<br />
<br />
<br />
<br />
<p></p>
<form>
<select>
<option>This is a &lt;select&g t; form element...</option>
<option>Norma l browsers would have no problem rendering it within
document stacking order...</option>
<option>IE, however, would display it through any other HTML
element, positioned over it.</option>
</select>
</form>
<p></p>
</body>
</html>
Your help is greatly appreciated.
Dan

Feb 16 '06 #1
5 2061
Help would be nice here!
Dan

Feb 17 '06 #2
Fig
On Fri, 17 Feb 2006 17:20:10 -0000, <ds*******@gmai l.com> wrote:
Help would be nice here!
Dan


Dan,
Most respondants to this group will not cut & past your code from your
post. Get it on a web server and post again with a link.
http://www.spartanicus.utvinternet.i...s_help_you.htm

--
Fig
Feb 17 '06 #3
ds*******@gmail .com wrote:
Help would be nice here!


FYI, this is a discussion group, not a help desk.

Maybe no one has responded because they aren't very interested in your
particular dilemma. It is also very possible that, since you're posting
from google groups, you're being killfiled right off the bat. ;)

--
Reply email address is a bottomless spam bucket.
Please reply to the group so everyone can share.
Feb 17 '06 #4
Wow, sorry about that, I had no idea. I thought post to google groups
was posting to google groups.

Any suggestion on where I can go to get help in this instance.

Thanks,
Dan

Feb 17 '06 #5
idano wrote:
Wow, sorry about that, I had no idea. I thought post to google groups
was posting to google groups.
This is Usenet.
http://en.wikipedia.org/wiki/Usenet

Google Groups is merely a web-based interface to it, and a poor one at
that. Get a newsreader and sign up. Your ISP may even have free access.
Any suggestion on where I can go to get help in this instance.


If it's about stylesheets, this is a good place, here in
comp.infosystem s.www.authoring.stylesheets

alt.html is a good newsgroup as well.

And, as Fig said, put your page on your web server first and post the
URL. Try validation, too.
http://validator.w3.org/
http://jigsaw.w3.org/css-validator/validator-uri.html

--
-bts
-Warning: I brake for lawn deer
Feb 17 '06 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

46
5150
by: Kingdom | last post by:
In my data base I have a list of componet types e.g. type A - I have 8 off - type B I have 12 off etc. I'm using Set objRS = objDC.Execute("Select DISTINCT Component_Type FROM Parts_Table") to populate a drop down but would like to use several drop downs restricting the contents of each drop down to the records pertaining to one
2
11064
by: ehm | last post by:
I am working on creating an editable grid (for use in adding, deleting, and editing rows back to an Oracle database). I have a JSP that posts back to a servlet, which in turns posts to a WebLogic SFSB and, from there, to the database. On the front end, all cells appear as text fields. However, for certain cells, when the user clicks on the cell, the text field turns into a drop-down field (i.e. Select object), defaulting to the value...
4
6317
by: Dan | last post by:
Can anyone offer suggestions on how to do this or if it is possible? I have a form that uses a drop down box and 2 text fields. What I am trying to do is have the value of each text box set by the choice from the drop down box. Something like: <form name="populatefrm" id="contactfrm" method="post"
3
14225
by: Miguel Dias Moura | last post by:
Hello, i have an ASP.NET / VB page where i have a few 4 groups of Drop Down Lists. Each group of Drop Down Lists include 3 Drop Down Lists for date such as: DAY, MONTH, and YEAR. I don't want to insert the values and text to each drop down list. So i want to create a script that populates a certain Drop Down List with certain values when page loads such as:
3
6168
by: Don Wash | last post by:
Hi There! I have a Server-side Drop-down box in ASP.NET (VB) page. What do I do to widen the Drop down box's Pull-Down list's width? I'm not talking about the Drop-down box's width but the box that appear when user clicks the drop-down arrow button. Because items in the Drop down list are a little long, user can't see the full thing when they pull down the items from the drop down list.
2
12626
by: Yoshitha | last post by:
hi I have 2 drop down lists in my application.1st list ontains itmes like java,jsp,swings,vb.net etc.2nd list contains percentage i.e it conatains the items like 50,60,70,80,90,100. i will select any skill in 1st drop down list then i'll select % of this skill in the 2nd list box , based on the percentage i've selected in the 2nd list box it has to display 2 sets of drop down list boxes at run time one for selecting skill and
5
4234
by: Vigneshwar Pilli via DotNetMonster.com | last post by:
string connectionString1 = "server=(local); user=sa;password=sa; database=sonic"; System.Data.SqlClient.SqlConnection dbConnection1 = new System.Data.SqlClient.SqlConnection(connectionString1); System.Data.SqlClient.SqlCommand dbCommand1 = new System.Data.SqlClient.SqlCommand();
7
2440
by: callawayglfr | last post by:
I am building a database in access where I have a drop down box that relates to a text box, that part I have working but when someone selects information from the first drop down I need it to limit the second drop down to just the related information. Explaining this is obviously challeging. So I'll try to draw a picture: (drop down 1) Select number --- once selected description is populated in text box (drop down 2) based on first...
1
6470
by: ashok893 | last post by:
I'm using two drop down list in a form. I have generated the first drop down list from MySQL database with the help of PHP. When i select an option from first drop down list, i have to generate second drop down list options by the selected value of first drop down list from MySQL database. For example, the first drop down list contains Animals, Birds... If i select the Animal option, the second drop down list should show like Lion,...
3
7362
by: penny111 | last post by:
Hi there, For my application, i need to have 3 drop down lists 1. drop down list of folder names 2. drop down list of documents in the folder selected 3. drop down list of instances of the document selected (my application uses the BusinessObjects Java Web Services SDK) The 2nd list is dependent on the 1st, while the 3rd list is dependent on the 2nd. In other words, this is what i want my application to do -select a folder from the...
0
9595
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10352
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10354
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7642
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6867
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5535
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4313
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3835
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3002
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.