473,508 Members | 2,295 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Suckerfish drop-downs over iframe in FireFox

Hello-

I was amazed at the suckerfish drop-downs from AListApart.com. They
work great except for one thing, if I position the drop-downs over an
iframe element, on mouseover the menus disappear. It works fine in IE,
but not FireFox. I would like to implement these menus, but if I can't
get this to work, I gotta look at something else.

If anyone has some suggestions, I would appreciate it.

Thanks,
ANdrew Maddox

*******************HERE IS THE
CODE******************************************
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xml:lang="en"><head><title>the Suckerfish</title>
<meta http-equiv="Content-Language" content="en-gb">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<style type="text/css">

body {
font-family: arial, helvetica, serif;
font-size: 80%;
background: white url(images/ddbg3.gif) no-repeat 6000px 6000px;
padding: 2em;
margin: 0;
}

#content {
width: 34em;
background-color: #f4ecd9;
padding: 1em 0;
border: 6px double #7d6340;
margin: auto;
voice-family: "\"}\"";
voice-family:inherit;
width: 32em;
}
html>body #content {
width: 32em;
}

a {
text-decoration: none;
}

a:link {
color: #080;
}

a:visited {
color: #790;
}

a:active {
color: red;
}

a:hover {
text-decoration: underline;
}

h1 {
text-align: center;
padding: 0 0 0.25em 0;
margin: 0;
}

ul {
list-style: none;
padding: 0;
margin: 0;
}

#nav a {
font-weight: bold;
color: green;
}

#nav a {
text-decoration: none;
}

#nav li li a {
display: block;
font-weight: normal;
color: #060;
padding: 0.2em 10px;
}

#nav li li a:hover {
padding: 0.2em 5px;
border: 5px solid #7d6340;
border-width: 0 5px;
}
li {
float: left;
position: relative;
width: 10em;
text-align: center;
cursor: default;
background-color: white;
border: 1px solid #7d6340;
border-width: 1px 0;
}

li#first {
border-left-width: 1em;
}

li#last {
border-right-width: 1em;
}

/*
li ul{
display: none;
position: absolute;
top: 100%;
left: 0;

font-weight: normal;
background: url(images/ddbg3.gif) bottom left no-repeat;
padding: 0.5em 0 1em 0;
border-right: solid 1px #7d6340;
}
*/

li ul{
display:none;
position: absolute;
clear: right;
top: 100%;
left: 0;
font-weight: normal;
background: url(images/ddbg3.gif) bottom left no-repeat;
padding: 0.5em 0 1em 0;
border-right: solid 1px #7d6340;
z-index:9;
}

iframe {
position: absolute;
//align: left;
//top: 10px;
//left: 0;
z-index: 1;
}

li>ul {
top: auto;
left: auto;
}

li li {
display: block;
float: none;
background-color: transparent;
border: 0;
}

li:hover ul, li.over ul {
display: block;
}

hr {
display: none;
}

p {
clear: left;
background: url(images/remora.gif) center left no-repeat;
padding: 1em 1em 0 1em;
margin: 0;
}

p.image {
float: right;
font-size: 0.8em;
text-align: center;
color: #7d6340;
padding: 1.25em 1.25em 0.25em 0.25em;
}

p.image img {
display: block;
border: 1px solid #7d6340;
}

</style>

<script type="text/javascript"><!--//--><![CDATA[//><!--

startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
}
node.onmouseout=function() {
this.className=this.className.replace(" over", "");
}
}
}
}
}
window.onload=startList;

//--><!]]></script></head>
<body>

<div id="content">

<h1><img src="the%20Suckerfish_files/logo2.gif" width="262"
height="103" alt="the Suckerfish"></h1>

<hr>

<ul id="nav" >

<li id="first">
<div><a href="http://www.cnn.com">Overview</a></div>
<ul>
<li><a href="http://www.cnn.com">Classification</a></li>
<li><a href="http://www.cnn.com">Physcial Characteristics</a></li>
<li><a href="http://www.cnn.com">Habitat</a></li>
<li><a href="http://www.cnn.com">Lifestyle</a></li>
<li><a href="http://www.cnn.com">Evolution</a></li>
<li><a href="http://www.cnn.com">Distribution</a></li>
</ul>
</li>

<li>
<div><a href="http://www.cnn.com">Species</a></div>
<ul>
<li><a href="http://www.cnn.com">Ceylonese remora</a></li>
<li><a href="http://www.cnn.com">Remora remora</a></li>
<li><a href="http://www.cnn.com">Sharksucker</a></li>
<li><a href="http://www.cnn.com">Slender remora</a></li>
<li><a href="http://www.cnn.com">Spearfish remora</a></li>
<li><a href="http://www.cnn.com">Whitefin sharksucker</a></li>
<li><img src="the%20Suckerfish_files/remora6.gif" width="59"
height="80" alt="The top of a remoras head"></li>
</ul>
</li>

<li id="last">
<div><a href="http://www.cnn.com">Links</a></div>
<ul>
<li><a href="http://www.itis.usda.gov/servlet/SingleRpt/SingleRpt?amp;search_topic=TSN&amp;search_value=16 8567">Remoras
at ITIS</a></li>
<li><a href="http://animaldiversity.ummz.umich.edu/accounts/remora/r._remora.html">Remora
remora at ADW</a></li>
<li><a href="http://www.oceanlight.com/html/remora_sp.html">Phillip
Colla photographs</a></li>
<li><img src="the%20Suckerfish_files/remora3.gif" width="100"
height="35" alt="Remora"></li>
<li><a href="http://www.amonline.net.au/fishes/fishfacts/fish/enaucrates.htm">Slender
suckerfish at Australian Museum Online</a></li>
<li><a href="http://www.colzoo.org/animalareas/shores/remora.html">Remora
at Columbus Zoo</a></li>

</ul>
</li>

</ul>

<hr>

</div>
<iframe src="contents.htm" frameborder=0></iframe>

</body></html>

************************************************** *************************
Jul 20 '05 #1
1 4656
Martial Spirit wrote:
Hello-

I was amazed at the suckerfish drop-downs from AListApart.com. They
work great except for one thing, if I position the drop-downs over an
iframe element, on mouseover the menus disappear. It works fine in IE,
but not FireFox. I would like to implement these menus, but if I can't
get this to work, I gotta look at something else.

If anyone has some suggestions, I would appreciate it.


Validate your markup. For example, IFRAME is not allowed in XHTML
Strict, and there's a whole bunch of other problems.

And are you sure it's a CSS problem? After all, the drop-down is done
with Javascript, not CSS.
Matthias

Jul 20 '05 #2

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

Similar topics

10
5971
by: Richard | last post by:
The style sheet shown below is from the suckerfish vertical menu. http://www.htmldog.com/articles/suckerfish/dropdowns/example/vertical.html I've added in a few minor changes to color code the...
23
2782
by: timmy | last post by:
Anyone knows if the htmldog suckerfish menu can be done in a more fluid way: http://www.htmldog.com/articles/suckerfish/dropdowns/ Or more precisely, the 2-level menu:...
2
12595
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...
3
1693
by: j0nharris | last post by:
I'm using the suckerfish vertical menu, & the positioning is working like a charm in every browser except IE6 -- go figure! The menu is sitting on its own page for now on...
5
3953
by: z | last post by:
I'm using a horizontal CSS-based dropdown menu based on this code: http://www.weblens.org/templates/sample_menu.html Is there a relatively easy way to add a slight delay to the menu with...
1
1829
by: boien | last post by:
I have 4 buttons from images i created via Photoshop, now i want to get a drop down kind of popout menu when you go to them just like the ones in http://geeksontime.com/ on the left hand column,...
4
9273
by: TycoonUK | last post by:
Hi, As I do not have IE7 on my computer, I was wondering if there is a fault in my CSS Menu when using IE7. Please can someone look at my site - http://www.worldofmonopoly.co.uk and tell me...
1
2212
by: =?iso-8859-1?q?Jean-S=E9bastien?= | last post by:
i'm using suckerfish dropdowns, for my menus. it looks nice. but i have a problem: when i get a div with overflow: hidden property after it, the menu is overdrawed by this div.
0
1982
by: Aljosa Mohorovic | last post by:
i have a problem with suckerfish dropdowns (a variation) in ie6, flickering/flashing/... bug? don't know how to call it but you can see it at http://obi-wan.inside-server.com/~crash/hr original...
1
2708
by: phpmagesh | last post by:
Can any one guide me how to create sucker fish menu step by step. i seen in Son of Suckerfish Dropdowns | HTML Dog but i cant able to do where to start and where to write which code. can any...
0
7228
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7128
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...
0
7332
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7393
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...
1
7058
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...
0
7502
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4715
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...
0
3206
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...
0
1565
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 ...

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.