472,988 Members | 3,399 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,988 software developers and data experts.

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 4626
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
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
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
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
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
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
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
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
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
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
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
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
3
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be using a very simple database which has Form (clsForm) & Report (clsReport) classes that simply handle making the calling Form invisible until the Form, or all...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
3
by: nia12 | last post by:
Hi there, I am very new to Access so apologies if any of this is obvious/not clear. I am creating a data collection tool for health care employees to complete. It consists of a number of...
0
NeoPa
by: NeoPa | last post by:
Introduction For this article I'll be focusing on the Report (clsReport) class. This simply handles making the calling Form invisible until all of the Reports opened by it have been closed, when it...

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.