Javascript

Overzicht Reageren

Sponsored by: Vacatures door Monsterboard

Bart

Bart

24/02/2006 14:50:00
Quote Anchor link
Hoi, mijn drop down menu werkt bijna..

Dit is nu wat ik heb;

na een aantal aanpassingen werkte het bijna, noujah het werkt half.. hij klapt wel open, maar vervolgens niet meer dicht.. waar zit het laatste foutje?

<HTML>
<HEAD>
<style type="text/css">
body {background-repeat: repeat-x}
</style>

<style>
<!--
a.nav:link { font-family: Verdana,Arial,San Serif; font-size: 10px; text-decoration: none; color: #000000}
a.nav:visited { font-family: Verdana,Arial,San Serif; font-size: 10px; text-decoration: none; color: #000000}
a.nav:active { font-family: Verdana,Arial,San Serif; font-size: 10px; text-decoration: none; color: #2F4F4F }
a.nav:hover { font-family: Verdana,Arial,San Serif; font-size: 10px; text-decoration: underline; color: #2F4F4F }
.HEADING { cursor: pointer; font-family: Verdana,Arial,San Serif; font-size: 12px; font-weight: bold; text-decoration: none; color: #000000 }
.EXCEPT { cursor: pointer; font-family: Verdana,Arial,San Serif; font-size: 12px; font-weight: bold; text-decoration: none; color: #DCDCDC }
.LINKSOFF { display: none; font-family: Verdana,Arial,San Serif; font-size: 12px}
.LINKSON { display: inline; font-family: Verdana,Arial,San Serif; font-size: 12px}
-->
</style>

<Script type="text/javascript">
<!--
function ShowHide(menuID)
{
var menuObj = "Link" + menuID;
// CHECK IF OPEN
if (document.getElementById(menuObj).className = "LINKSON")
{
document.setElementById(menuObj).className = "LINKSOFF";
}
else
{
document.setElementById(menuObj).className = "LINKSON";
}
}
-->
</Script>

<Script Language="JavaScript">
<!--
function load(url)
{
parent.main.location.href= url;
}
function load2(url)
{
parent.menu.location.href= url;
}
// -->
</SCRIPT>
</HEAD>



<BODY BACKGROUND="images/bgmenu.bmp">
<div align="center">
<center>
<BR>
<table>
<TR>
<TD ALIGN="left"><A class="HEADING" HREF="javascript:load('home.htm')">Home </A>
</TD>
</TR>

<tr>
<td ID="head0" ALIGN="left" CLASS="HEADING" ONCLICK="ShowHide(0)">Ons Bedrijf</td>
</tr>
<tr>
<td ALIGN="left">
<div ID="Link0" CLASS="LINKSOFF">
<a CLASS="nav" href="javascript:load('boerderij.htm')">- De Boerderij</a><br>
<a CLASS="nav" href="javascript:load('kaasmakerij.htm')">- De Kaasmakerij</a><br>
</div>
</td>
</tr>

<TR>
<td ID="head1" ALIGN="left" width="113" height="15" CLASS="HEADING" ONCLICK="ShowHide(1)">De Kazen</td>
</tr>
<tr>
<td ALIGN="left">
<div ID="Link1" CLASS="LINKSOFF">
<a CLASS="nav" href="javascript:load('goudse.htm')">- Goudse</a><br>
<a CLASS="nav" href="javascript:load('edam.htm')">- Edammer</a><br>
<a CLASS="nav" href="javascript:load('vetarm.htm')">- Vetarm</a><br>
<a CLASS="nav" href="javascript:load('zoutarm.htm')">- Zoutarm</a><br>
<a CLASS="nav" href="javascript:load('kruiden.htm')">- Kruiden</a><br>
</div>
</td>
</tr>

<tr>
<td ID="head2" ALIGN="left" CLASS="HEADING" ONCLICK="ShowHide(2)">Maaltijden</td>
</tr>
<tr>
<td ALIGN="left">
<div ID="Link2" CLASS="LINKSOFF">
<a CLASS="nav" href="javascript:load('scorel.htm')">- Picknick "Scorel"</a><br>
<a CLASS="nav" href="javascript:load('ganzeveld.htm')">- Lunch "Ganzeveld"</a><br>
</div>
</td>
</tr>

<TR>
<TD ALIGN="left"><A class="HEADING" HREF="javascript:load('prijzen.htm')">Prijzen</A>
</TD>
</TR>

<tr>
<td ID="head3" ALIGN="left" CLASS="HEADING" ONCLICK="ShowHide(3)">Routes</td>
</tr>
<tr>
<td ALIGN="left">
<div ID="Link3" CLASS="LINKSOFF">
<a CLASS="nav" href="javascript:load('mountainroute.htm')">- Mountain Bike</a><br>
<a CLASS="nav" href="javascript:load('brededuinenroute.htm')">- Brede Duinen Route</a><br>
</div>
</td>
</tr>

<TR>
<TD ALIGN="left"><A class="HEADING" HREF="javascript:load('reserveerform.htm')">Reserveren</A>
</TD>
</TR>

<TR>
<TD ALIGN="left"><A class="HEADING" HREF="javascript:load('contact.htm')">Contact</A>
</TD>
</TR>
<TR><td></td></TR>
<TR><td></td></TR>
<TR><td></td></TR>
<TR><td></td></TR>


<TR>
<TD ALING="left"><A class="nav" HREF="javascript:load2('menu2.htm')">Menu werkt niet</A>
</TD>
</TR>
</table>
</center>


</BODY>
</HTML>
 
Er zijn nog geen reacties op dit bericht.



Overzicht Reageren

 
 

Om de gebruiksvriendelijkheid van onze website en diensten te optimaliseren maken wij gebruik van cookies. Deze cookies gebruiken wij voor functionaliteiten, analytische gegevens en marketing doeleinden. U vindt meer informatie in onze privacy statement.