JS rollover Navi doesn't work
Posted: Tue 8. Feb 2005, 17:54
I have a daywasting problem with a JS-rollover Navigation.
I put this in the head-section of the template:
and this in the respective templatefield:
The links are working, but the rollover doesn't. (i.e. hover and active pics are not shown)
This is the site in developement:http://v145225.dd7722.kasserver.com/php ... ,7,0,0,1,0
Cause I'm just a "drag'n'dropper", I dont know what's wrong here.
So, perhaps there is some help out there...
aborre
I put this in the head-section of the template:
Code: Select all
<script language="JavaScript">
agent = navigator.userAgent;
yes = 0;
if(agent.substring(0,7) == "Mozilla")
{
if( parseInt(agent.substring(8,9)) >= 3)
{
yes = 1;
}
}
if(yes)
{
pc1n = new Image();
pc1n.src = "./picture/pcpa1.gif";
pc1h = new Image();
pc1h.src = "./picture/pcpah1.gif";
pc2n = new Image();
pc2n.src = "./picture/pcpa2.gif";
pc2h = new Image();
pc2h.src = "./picture/pcpah2.gif";
pc3n = new Image();
pc3n.src = "./picture/pcpa3.gif";
pc3h = new Image();
pc3h.src = "./picture/pcpah3.gif";
pc4n = new Image();
pc4n.src = "./picture/pcpa4.gif";
pc4h = new Image();
pc4h.src = "./picture/pcpah4.gif";
pm0n = new Image();
pm0n.src = "./picture/phomes.gif";
pm0h = new Image();
pm0h.src = "./picture/phomes.gif";
pm1n = new Image();
pm1n.src = "./picture/pmt1.gif";
pm1h = new Image();
pm1h.src = "./picture/pmth1.gif";
pm2n = new Image();
pm2n.src = "./picture/pmt2.gif";
pm2h = new Image();
pm2h.src = "./picture/pmth2.gif";
pm3n = new Image();
pm3n.src = "./picture/pmt3.gif";
pm3h = new Image();
pm3h.src = "./picture/pmth3.gif";
pm4n = new Image();
pm4n.src = "./picture/pmt4.gif";
pm4h = new Image();
pm4h.src = "./picture/pmth4.gif";
pm5n = new Image();
pm5n.src = "./picture/pmt5.gif";
pm5h = new Image();
pm5h.src = "./picture/pmth5.gif";
pm6n = new Image();
pm6n.src = "./picture/pmt6.gif";
pm6h = new Image();
pm6h.src = "./picture/pmth6.gif";
pm7n = new Image();
pm7n.src = "./picture/pmt7.gif";
pm7h = new Image();
pm7h.src = "./picture/pmth7.gif";
pm8n = new Image();
pm8n.src = "./picture/pmt8.gif";
pm8h = new Image();
pm8h.src = "./picture/pmth8.gif";
pm9n = new Image();
pm9n.src = "./picture/pmt9.gif";
pm9h = new Image();
pm9h.src = "./picture/pmth9.gif";
}
function CI(imgNum,imgName)
{
if(yes)
{
document.picture[imgNum].src = eval(imgName + ".src")
}
}
</script>
and this in the respective templatefield:
Code: Select all
<table border="0" cellpadding="0" cellspacing="0" width="150">
<tr>
<td><a href="http://v145225.dd7722.kasserver.com/phpwcms/index.php?id=10,7,0,0,1,0" onmouseover="CI('pm0','pm0h');return true" onmouseout="CI('pm0','pm0n');return true""><img src="./picture/phomes.gif" width="150" height="20" name="pm0" alt="" border="0"></a></td>
</tr>
<tr>
<td><a href="http://v145225.dd7722.kasserver.com/phpwcms/index.php?id=2,8,0,0,1,0" onmouseover="CI('pm1','pm1h');return true" onmouseout="CI('pm1','pm1n');return true"><img src="./picture/pmt1.gif" width="150" height="20" name="pm1" alt="" border="0"></a></td>
</tr>
<tr>
<td><a href="http://v145225.dd7722.kasserver.com/phpwcms/index.php?id=3,9,0,0,1,0" onmouseover="CI('pm2','pm2h');return true" onmouseout="CI('pm2','pm2n');return true"><img src="./picture/pmt2.gif" width="150" height="20" name="pm2" alt="" border="0"></a></td>
</tr>
<tr>
<td><a href="http://v145225.dd7722.kasserver.com/phpwcms/index.php?id=4,10,0,0,1,0" onmouseover="CI('pm3','pm3h');return true" onmouseout="CI('pm3','pm3n');return true"><img src="./picture/pmt3.gif" width="150" height="20" name="pm3" alt="" border="0"></a></td>
</tr>
<tr>
<td><a href="http://v145225.dd7722.kasserver.com/phpwcms/index.php?id=5,11,0,0,1,0" onmouseover="CI('pm4','pm4h');return true" onmouseout="CI('pm4','pm4n');return true"><img src="./picture/pmt4.gif" width="150" height="20" name="pm4" alt="" border="0"></a></td>
</tr>
<tr>
<td><a href="http://v145225.dd7722.kasserver.com/phpwcms/index.php?id=6,12,0,0,1,0" onmouseover="CI('pm5','pm5h');return true" onmouseout="CI('pm5','pm5n');return true"><img src="./picture/pmt5.gif" width="150" height="20" name="pm5" alt="" border="0"></a></td>
</tr>
<tr>
<td><a href="http://v145225.dd7722.kasserver.com/phpwcms/index.php?id=7,13,0,0,1,0" onmouseover="CI('pm6','pm6h');return true" onmouseout="CI('pm6','pm6n');return true"><img src="./picture/pmt6.gif" width="150" height="20" name="pm6" alt="" border="0"></a></td>
</tr>
<tr>
<td><a href="http://www.iivs.de/home/kirchenbau.ampfing/" onmouseover="CI('pm7','pm7h');return true" onmouseout="CI('pm7','pm7n');return true"><img src="./picture/pmt7.gif" width="150" height="20" name="pm7" alt="" border="0"></a></td>
</tr>
<tr>
<td><a href="http://v145225.dd7722.kasserver.com/phpwcms/index.php?id=9,15,0,0,1,0" onmouseover="CI('pm8','pm8h');return true" onmouseout="CI('pm8','pm8n');return true"><img src="./picture/pmt8.gif" width="150" height="20" name="pm8" alt="" border="0"></a></td>
</tr>
<tr>
<td><img src="./picture/pcp.gif" width="10" height="40" alt="" border="0"></td>
</tr>
<tr>
<td><img src="./picture/pnvsp.gif" width="150" height="20" alt="" border="0"></td>
</tr>
<tr>
<td><a href="http://v145225.dd7722.kasserver.com/phpwcms/index.php?id=11,16,0,0,1,0" onmouseover="CI('pc1','pc1h');return true" onmouseout="CI('pc1','pc1n');return true"><img src="./picture/pcpa1.gif" width="150" height="20" name="pc1" alt="" border="0"></a></td>
</tr>
<tr>
<td><a href="http://v145225.dd7722.kasserver.com/phpwcms/index.php?id=12,17,0,0,1,0" onmouseover="CI('pc2','pc2h');return true" onmouseout="CI('pc2','pc2n');return true"><img src="./picture/pcpa2.gif" width="150" height="20" name="pc2" alt="" border="0"></a></td>
</tr>
<tr>
<td><a href="http://v145225.dd7722.kasserver.com/phpwcms/index.php?id=14,18,0,0,1,0" onmouseover="CI('pc3','pc3h');return true" onmouseout="CI('pc3','pc3n');return true"><img src="./picture/pcpa3.gif" width="150" height="20" name="pc3" alt="" border="0"></a></td>
</tr>
<tr>
<td><a href="http://v145225.dd7722.kasserver.com/phpwcms/index.php?id=15,19,0,0,1,0" onmouseover="CI('pc4','pc4h');return true" onmouseout="CI('pc4','pc4n');return true"><img src="./picture/pcpa4.gif" width="150" height="20" name="pc4" alt="" border="0"></a></td>
</tr>
<tr>
<td><img src="./picture/pcp.gif" width="10" height="40" alt="" border="0"></td>
</tr>
</table>
This is the site in developement:http://v145225.dd7722.kasserver.com/php ... ,7,0,0,1,0
Cause I'm just a "drag'n'dropper", I dont know what's wrong here.
So, perhaps there is some help out there...
aborre