Mouseover virker ikke når header er del af portal!
Jeg har et underligt problem her.Jeg vil bruge denne effekt (mouseover på menupunkter til venstre) på en portal der bruger phpnuke: http://www.tabulaportal.info/hd/header.html
Som man kan se, så virker det udmærket her, men ligeså snart header.html bliver en del af portal-siden, så virker denne effekt ikke: http://www.tabulaportal.info/hd/
Her er koden fra header.html:
<!--Header-->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td style="background-image: url(none); background-repeat: repeat-x;"> </td>
<td width="800"><center>
<style type="text/css">
<!--
body {
background-color: #333333;
margin-top: 0px;
}
-->
</style>
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_swapImgRestore() { //v3.0
var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}
function MM_preloadImages() { //v3.0
var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
function MM_findObj(n, d) { //v4.01
var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
if(!x && d.getElementById) x=d.getElementById(n); return x;
}
function MM_swapImage() { //v3.0
var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script></head><style type="text/css">
<!--
body,td,th {
color: #333333;
}
-->
</style><style type="text/css">
<!--
a:link {
color: #333333;
}
a:visited {
color: #333333;
}
a:hover {
color: #333333;
}
-->
</style><style type="text/css">
<!--
body,td,th {
color: #000000;
}
body {
background-color: #000000;
}
a:link {
color: #000000;
}
a:visited {
color: #000000;
}
a:hover {
color: #000000;
}
-->
</style>
<body onload="MM_preloadImages('http://www.tabulaportal.info/home2.jpg','http://www.tabulaportal.info/forums2.jpg','http://www.tabulaportal.info/cal2.jpg')">
<table align="center" border="0" cellpadding="0" cellspacing="0" width="800">
<!--DWLayoutTable-->
<tbody><tr>
<td valign="top" width="119"><a href="http://www.tabulaportal.com/hd/" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image1','','http://www.tabulaportal.info/home2.jpg',1)"><img src="http://www.tabulaportal.info/home1.jpg" name="Image1" border="0" height="80" width="119"></a></td>
<td rowspan="3" valign="top" width="681"><img src="http://www.tabulaportal.info/main2.jpg" height="213" width="685"></td>
</tr>
<tr>
<td valign="top"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','http://www.tabulaportal.info/forums2.jpg',1)"><img src="http://www.tabulaportal.info/forums1.jpg" name="Image2" border="0" height="56" width="119"></a></td>
</tr>
<tr>
<td valign="top"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','http://www.tabulaportal.info/cal2.jpg',1)"><img src="http://www.tabulaportal.info/cal1.jpg" name="Image3" border="0" height="77" width="119"></a></td>
</tr>
</tbody></table>
</body></html>
</center></td>
<td style="background-image: url(none); background-repeat: repeat-x;"> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td> </td>
<td width="800"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
</tr>
</table></td>
<td> </td>
</tr>
</table>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><table width="826" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td width="1"><img src="themes/Nuke5-oct-07/images/top-left.gif" width="29" height="19" /></td>
<td width="100%" background="themes/Nuke5-oct-07/images/top-center.gif"> </td>
<td width="1"><img src="themes/Nuke5-oct-07/images/top-right.gif" width="29" height="19" /></td>
</tr>
<tr>
<td background="themes/Nuke5-oct-07/images/center-left.gif"> </td>
<td height="450" valign="top" bgcolor="fcf8ea"><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td valign="top" style="padding: 5px 10px 5px 5px;">
<!--Header-->