I
Ikke
Hi,
Forgive my ignorance, but I'm new to JavaScript.
I've got a little script that slides a table (menu) when the mouse goes over
it. This works fine (see 'test file') but the problem is; when this menu is
loaded in a frame (with a limited width) the menu slides underneath the
other (on the right hand) frame. How do I get this script displaying the
menu over the other frame?
all tips, links, complete solutions
) and help are most welcome...
Thanks,
Ikke
--------------------------------- test
le -------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<style type="text/css" title="untitled" media="screen">
table
{
font-size:12;
color: rgb(124, 224, 224);
font-family: helvetica, sans-serif;
font-style: normal;
}
span
{
border:groove 0px;
padding:0;
font-family:arial;
font-size:12;
width:0;
height:0;
position:absolute;
top:0;
left:-252
}
</style>
<script type="text/javascript">
function showmenu(elmnt)
{
elmnt.style.left="0"
}
function hidemenu(elmnt)
{
elmnt.style.left="-252"
}
</script>
</head>
<body>
<span onmouseover="showmenu(this)" onmouseout="hidemenu(this)">
<table width="300" border="0" frame="above" rules="none" cellspacing="0"
cellpadding="0" align="top" bgcolor="rgb(50,50,84)">
<tr>
<td width="10%" rowspan="3"></td>
<td width="90%"><br /><pre><b><a href="" name="" target="" class="" id=""
style="">Home</a></b></pre></td>
<td valign="bottom" rowspan="3">Untitled</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</span>
</body>
</html>
Forgive my ignorance, but I'm new to JavaScript.
I've got a little script that slides a table (menu) when the mouse goes over
it. This works fine (see 'test file') but the problem is; when this menu is
loaded in a frame (with a limited width) the menu slides underneath the
other (on the right hand) frame. How do I get this script displaying the
menu over the other frame?
all tips, links, complete solutions
Thanks,
Ikke
--------------------------------- test
le -------------------------------------
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title>Untitled</title>
<style type="text/css" title="untitled" media="screen">
table
{
font-size:12;
color: rgb(124, 224, 224);
font-family: helvetica, sans-serif;
font-style: normal;
}
span
{
border:groove 0px;
padding:0;
font-family:arial;
font-size:12;
width:0;
height:0;
position:absolute;
top:0;
left:-252
}
</style>
<script type="text/javascript">
function showmenu(elmnt)
{
elmnt.style.left="0"
}
function hidemenu(elmnt)
{
elmnt.style.left="-252"
}
</script>
</head>
<body>
<span onmouseover="showmenu(this)" onmouseout="hidemenu(this)">
<table width="300" border="0" frame="above" rules="none" cellspacing="0"
cellpadding="0" align="top" bgcolor="rgb(50,50,84)">
<tr>
<td width="10%" rowspan="3"></td>
<td width="90%"><br /><pre><b><a href="" name="" target="" class="" id=""
style="">Home</a></b></pre></td>
<td valign="bottom" rowspan="3">Untitled</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
</span>
</body>
</html>