Hi,
That’s an ancient script and not the best way to make a dropdowns these days. That page also has loads of errors and a doctype that sends IE into spasms.
There’s too much for me to tidy up at the moment and would be easier to start from scratch than try to fix that page I’m afraid.
You can get the menu working though by closing the table and the divs properly after the menu. The submenu should not be nested in any main containers or it gets its positions wrong.
This is what the bottom of the menu should look like.
<td class="last38"><a id="menu3852" href="#" ><img class="seq1" border="0" src="http://www.ftplogin.info/menu/images/home_d.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /><img class="seq2" border="0" src="http://www.ftplogin.info/menu/images/home.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /></a> </td>
[B] </tr>
</table>
</div></td>
</tr>
</table>
</div>
<div id[/B]="subwrap38">
<script type="text/javascript">
<!--
You probably also need to move the flash inside the container. Here’s the whole code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Untitled</title>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
<meta name="generator" content="Web Page Maker">
<style type="text/css">
div#container {
position:relative;
width: 1024px;
margin-top: 0px;
margin-left: auto;
margin-right: auto;
text-align:left;
}
body {
text-align:center;
margin:0
}
</style>
<style type='text/css'>
<!--
.transMenu38 {
position:absolute;
overflow:hidden;
left:-1000px;
top:-1000px;
}
.transMenu38 .content {
position:absolute;
}
.transMenu38 .items {
width: 160px;
border: 0px solid;
position:relative;
left:0px;
top:0px;
z-index:2;
}
.transMenu38 td {
padding: 5px 5px 5px 5px !important;
font-size: 12px !important;
font-family: Arial, Helvetica, sans-serif !important;
text-align: left !important;
font-weight: normal !important;
color: #000000 !important;
}
#subwrap38 {
text-align: left;
}
.transMenu38 .item.hover td {
color: #FFffff !important;
}
.transMenu38 .item {
height: 20px;
text-decoration: none;
cursor:pointer;
}
.transMenu38 .background {
background-color: #ffffff !important;
position:absolute;
left:0px;
top:0px;
z-index:1;
opacity:0.6;
filter:alpha(opacity=60)
}
.transMenu38 .shadowRight {
position:absolute;
z-index:3;
top:-3000px;
width:2px;
opacity:0.6;
filter:alpha(opacity=60)
}
.transMenu38 .shadowBottom {
position:absolute;
z-index:1;
left:-3000px;
height:2px;
opacity:0.6;
filter:alpha(opacity=60)
}
.transMenu38 .item.hover {
background-color: #666666 !important;
}
.transMenu38 .item img {
margin-left:10px !important;
}
table.menu38 {
top: 0px;
left: 0px;
position:relative;
margin:0px !important;
border: 0px solid;
z-index: 1;
}
table.menu38 a {
margin:0px !important;
padding: 5px 5px 5px 5px !important;
display:block !important;
position:relative !important;
}
div.menu38 a, div.menu38 a:visited, div.menu38 a:link {
font-size: 12px !important;
font-family: Arial, Helvetica, sans-serif !important;
text-align: left !important;
font-weight: normal !important;
text-decoration: none !important;
margin-bottom:0px !important;
display:block !important;
white-space:nowrap;
}
div.menu38 td {
border-bottom: 0px solid;
border-top: 0px solid;
border-left: 0px solid;
background-color: #FFFFFF !important;
}
div.menu38 td.last38 {
border-right: 0px solid;
}
#trans-active38 a {
background-color: #FFFFFF !important;
}
#menu38 a.hover {
background-color: #FFFFFF !important;
display:block;
}
#menu38 span {
display:none;
}
#menu38 a img.seq1, .transMenu38 img.seq1, {
display: inline;
}
#menu38 a.hover img.seq2, .transMenu38 .item.hover img.seq2 {
display: inline;
}
#menu38 a.hover img.seq1, #menu38 a img.seq2, .transMenu38 img.seq2, .transMenu38 .item.hover img.seq1 {
display: none;
}
#trans-active38 a img.seq1 {
display: none;
}
#trans-active38 a img.seq2 {
display: inline;
}
#subwrap38 #TransMenu0-0 {
text-align: left !important;
text-decoration: none !important;
text-transform: none;
white-space: normal;
text-indent: 0px;
padding: 5px 5px 5px 5px !important;
font-size: 12px !important;
font-style: left !important;
font-weight: none !important;
font-family: Arial, Helvetica, sans-serif !important;
border-bottom: 1px solid #333333 !important;
}
#subwrap38 .item.hover #TransMenu0-0, #subwrap38 #TransMenu0-0:hover {
border-bottom: 1px solid #333333 !important;
}
#subwrap38 #TransMenu0-1 {
border-bottom: 1px solid #333333 !important;
}
#subwrap38 .item.hover #TransMenu0-1, #subwrap38 #TransMenu0-1:hover {
border-bottom: 1px solid #333333 !important;
}
#subwrap38 #TransMenu0-2 {
border-bottom: 1px solid #333333 !important;
}
#subwrap38 .item.hover #TransMenu0-2, #subwrap38 #TransMenu0-2:hover {
border-bottom: 1px solid #333333 !important;
}
#subwrap38 #TransMenu0-3 {
border-bottom: 1px solid #333333 !important
}
#subwrap38 .item.hover #TransMenu0-3, #subwrap38 #TransMenu0-3:hover {;
border-bottom: 1px solid #333333 !important
}
#subwrap38 #TransMenu1-0 {
border-bottom: 1px solid #333333 !important;
}
#subwrap38 .item.hover #TransMenu1-0, #subwrap38 #TransMenu1-0:hover {
border-bottom: 1px solid #333333 !important;
}
#subwrap38 #TransMenu1-1 {
border-bottom: 1px solid #333333 !important;
}
#subwrap38 .item.hover #TransMenu1-1, #subwrap38 #TransMenu1-1:hover {
border-bottom: 1px solid #333333 !important;
}
#subwrap38 #TransMenu1-2 {
border-bottom: 1px solid #333333 !important;
}
#subwrap38 .item.hover #TransMenu1-2, #subwrap38 #TransMenu1-2:hover {
border-bottom: 1px solid #333333 !important
}
#subwrap38 .item.hover #TransMenu1-3, #subwrap38 #TransMenu1-3:hover {
}
#subwrap38 #TransMenu2-0 {
border-bottom: 1px solid #333333 !important
}
#subwrap38 .item.hover #TransMenu2-0, #subwrap38 #TransMenu2-0:hover {
border-bottom: 1px solid #333333 !important
}
#subwrap38 #TransMenu2-1 {
border-bottom: 1px solid #333333 !important
}
#subwrap38 .item.hover #TransMenu2-1, #subwrap38 #TransMenu2-1:hover {
border-bottom: 1px solid #333333 !important
}
#subwrap38 #TransMenu2-2 {
border-bottom: 1px solid #333333 !important
}
#subwrap38 .item.hover #TransMenu2-2, #subwrap38 #TransMenu2-2:hover {
border-bottom: 1px solid #333333 !important
}
-->
</style>
</head>
<body background="http://www.ftplogin.info/menu/images/bg.jpg" bgColor="#C0C0C0">
<div id="container">
<div id="image1" style="position:absolute; overflow:hidden; left:-13px; top:-1px; width:145px; height:126px; z-index:0"><img src="http://www.ftplogin.info/menu/images/paste47.jpg" alt="" title="" border=0 width=145 height=126></div>
<table width="1024" border="0" cellspacing="2" cellpadding="2">
<tr> <br>
<br>
<br>
<br>
<br>
<br>
<br>
<td valign="center" width="100%"><!--swMenuPro6.0 transmenu-->
<script type="text/javascript" src="http://www.ftplogin.info/menu/images/transmenu_Packed.js"></script>
<div id="wrap38" class="menu38" align="left">
<table cellspacing="0" cellpadding="0" id="menu38" class="menu38" >
<tr>
<td id='trans-active38'><a id="menu381" href="#" ><img class="seq1" border="0" src="http://www.ftplogin.info/menu/images/home_d.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /><img class="seq2" border="0" src="http://www.ftplogin.info/menu/images/home.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /></a> </td>
<td><a id="menu3826" href="#" ><img class="seq1" border="0" src="http://www.ftplogin.info/menu/images/home_d.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /><img class="seq2" border="0" src="http://www.ftplogin.info/menu/images/home.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /></a> </td>
<td><a id="menu3847" href="#" ><img class="seq1" border="0" src="http://www.ftplogin.info/menu/images/home_d.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /><img class="seq2" border="0" src="http://www.ftplogin.info/menu/images/home.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /></a> </td>
<td><a id="menu3828" href="#" ><img class="seq1" border="0" src="http://www.ftplogin.info/menu/images/home_d.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /><img class="seq2" border="0" src="http://www.ftplogin.info/menu/images/home.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /></a> </td>
<td><a id="menu3848" href="#" ><img class="seq1" border="0" src="http://www.ftplogin.info/menu/images/home_d.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /><img class="seq2" border="0" src="http://www.ftplogin.info/menu/images/home.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /></a> </td>
<td><a id="menu3839" href="#" ><img class="seq1" border="0" src="http://www.ftplogin.info/menu/images/home_d.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /><img class="seq2" border="0" src="http://www.ftplogin.info/menu/images/home.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /></a> </td>
<td class="last38"><a id="menu3852" href="#" ><img class="seq1" border="0" src="http://www.ftplogin.info/menu/images/home_d.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /><img class="seq2" border="0" src="http://www.ftplogin.info/menu/images/home.png" vspace="0" hspace="0" width="43" height="31" align="middle" alt="Home" /></a> </td>
</tr>
</table>
</div></td>
</tr>
</table>
<div id="html1" style="position:absolute; overflow:hidden; left:0px; top:172px; width:1006px; height:444px; z-index:1;">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab
#version=7,0,0,0" width="1006" height="424">
<param name="movie" value="http://www.ftplogin.info/menu/newmain.swf" />
<param name="wmode" value="transparent" />
<param name="play" VALUE="true" />
<param name="loop" VALUE="true" />
<param name="quality" value="low" />
<embed src="http://www.ftplogin.info/menu/newmain.swf" quality="low" wmode="transparent"
pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-
shockwave-flash" width="1006" height="424"> </embed>
</object>
</div>
</div>
<div id="subwrap38">
<script type="text/javascript">
<!--
if (TransMenu.isSupported()) {
var ms = new TransMenuSet(TransMenu.direction.down, 0,4, TransMenu.reference.bottomLeft);
var menu3826 = ms.addMenu(document.getElementById("menu3826"));
menu3826.addItem("Submenu1", "#", "0");
menu3826.addItem("Submenu2", "#", "0");
menu3826.addItem("Submenu3", "#", "0");
menu3826.addItem("Submenu4", "#", "0");
menu3826.addItem("Submenu5", "#", "0");
menu3826.addItem("Submenu6", "#", "0");
var menu3847 = ms.addMenu(document.getElementById("menu3847"));
menu3847.addItem("Submenu1", "#", "0");
menu3847.addItem("Submenu2", "#", "0");
menu3847.addItem("Submenu3", "#", "0");
menu3847.addItem("Submenu4", "#", "0");
var menu3848 = ms.addMenu(document.getElementById("menu3848"));
menu3848.addItem("Submenu1", "#", "0");
menu3848.addItem("Submenu2", "#", "0");
menu3848.addItem("Submenu3", "#", "0");
menu3848.addItem("Submenu4", "#", "0");
function init38() {
if (TransMenu.isSupported()) {
TransMenu.initialize();
document.getElementById("menu381").onmouseover = function() {
ms.hideCurrent();
this.className = "hover";
}
document.getElementById("menu381").onmouseout = function() { this.className = ""; }
menu3826.onactivate = function() {document.getElementById("menu3826").className = "hover"; };
menu3826.ondeactivate = function() {document.getElementById("menu3826").className = ""; };
menu3847.onactivate = function() {document.getElementById("menu3847").className = "hover"; };
menu3847.ondeactivate = function() {document.getElementById("menu3847").className = ""; };
document.getElementById("menu3828").onmouseover = function() {
ms.hideCurrent();
this.className = "hover";
}
document.getElementById("menu3828").onmouseout = function() { this.className = ""; }
menu3848.onactivate = function() {document.getElementById("menu3848").className = "hover"; };
menu3848.ondeactivate = function() {document.getElementById("menu3848").className = ""; };
document.getElementById("menu3839").onmouseover = function() {
ms.hideCurrent();
this.className = "hover";
}
document.getElementById("menu3839").onmouseout = function() { this.className = ""; }
document.getElementById("menu3852").onmouseover = function() {
ms.hideCurrent();
this.className = "hover";
}
document.getElementById("menu3852").onmouseout = function() { this.className = ""; }
}}
TransMenu.spacerGif = "http://www.ftplogin.info/menu/images/x.gif";
TransMenu.dingbatOn = "http://www.ftplogin.info/menu/images/submenu-on.gif";
TransMenu.dingbatOff = "http://www.ftplogin.info/menu/images/submenu-off.gif";
TransMenu.sub_indicator = true;
TransMenu.menuPadding = 0;
TransMenu.itemPadding = 0;
TransMenu.shadowSize = 2;
TransMenu.shadowOffset = 3;
TransMenu.shadowColor = "#888";
TransMenu.shadowPng = "http://www.ftplogin.info/menu/images/grey-40.png";
TransMenu.backgroundColor = "#ffffff";
TransMenu.backgroundPng = "http://www.ftplogin.info/menu/images/white-90.png";
TransMenu.hideDelay = 600;
TransMenu.slideTime = 300;
TransMenu.modid = 38;
TransMenu.selecthack = 0;
TransMenu.autoposition = 0;
TransMenu.renderAll();
if ( typeof window.addEventListener != "undefined" )
window.addEventListener( "load", init38, false );
else if ( typeof window.attachEvent != "undefined" ) {
window.attachEvent( "onload", init38 );
}else{
if ( window.onload != null ) {
var oldOnload = window.onload;
window.onload = function ( e ) {
oldOnload( e );
init38();
}
}else
window.onload = init38();
}
}
-->
</script>
</div>
</body>
</html>
But in all honesty you would be better off using the suckerfish menu (enhanced with [URL=“http://users.tpg.com.au/j_birch/plugins/superfish/”]superfish if you need the extras) and then dropping the tables and using css for the layout. There’s no need for all those nested table and a simple wrapper and menu in a un-ordered list would do.