Del af menu åbner ikke.
Jeg har gennemgået min menu hvor punktet 'Special tilbud' og punktet Golf under Sport ikke åbner sig.Sitet er www.orkiderejser.dk
Er der en venlig sjæl der kan se hvad fejlen er:
Javascript koden er:
foer = null;
function fold(id) {
obj = document.getElementById(id);
if (foer != null && foer != obj)
foer.style.display = "none";
obj.style.display = (obj.style.display == "none") ? "inline" : "none";
foer = obj;
}
html koden:
<div id="menu">
<div class='padi'>
<p> </p></div>
<div onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" class="padi"><img src='/img/arrow.gif' alt="Rejsebureau" id="a_1" onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" /> <a class='menu' href='/index.php'>Forside</a></div>
<div onclick="fold('destdiv'); return false;" onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" class="padi"><img src='/img/arrow.gif' alt="Rejsebureau" id="a_2" onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" /> <a href="#" class="menu">Thailand »</a></div>
<div id='destdiv' style='display:none;'>
<div class='padi'><a class='menu' href='/dest/chiangmai.php'>Chiang Mai</a> </div>
<div class='padi'><a class='menu' href='/dest/bangkok.php'>Bangkok</a> </div>
<div class='padi'><a class='menu' href='/dest/huahin.php'> Hua Hin</a> </div>
<div class='padi'><a class='menu' href='/dest/chumphon.php'> Chumphon</a> </div>
<div class='padi'><a class='menu' href='/dest/kohsamui.php'>Koh Samui</a> </div>
<div class='padi'><a class='menu' href='/dest/kohtao.php'>Koh Tao</a> </div>
<div class='padi'><a class='menu' href='/dest/kohphangan.php'>Koh Phangan</a> </div>
<div class='padi'><a class='menu' href='/dest/krabi.php'>Krabi</a> </div>
<div class='padi'><a class='menu' href='/dest/phiphi.php'>Phi Phi</a> </div>
<div class='padi'><a class='menu' href='/dest/kohlanta.php'>Koh Lanta</a> </div>
<div class='padi'><a class='menu' href='/dest/kohngai.php'>Koh Ngai</a> </div>
<div class='padi'><a class='menu' href='/dest/kohsamet.php'>Koh Samet</a> </div>
<div class='padi'><a class='menu' href='/dest/kohchang.php'>Koh Chang</a> </div>
<div class='padi'><a class='menu' href='/dest/phuket.php'>Phuket</a> </div>
<div class='padi'><a class='menu' href='/dest/khaolak.php'>Khao Lak</a> </div>
</div>
<div onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" class="padi"><img src='/img/arrow.gif' alt="Charter eller personlig rejse" id="a_3" onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" /> <a href="/html/rejseformer.php" class="menu">Rejsetips</a> </div>
<div onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" class="padi"><img src='/img/arrow.gif' alt="Rejsebureau" id="a_4" onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" /> <a href="/flybooking.php" class="menu">Søg flybillet</a></div>
<div onclick="fold('sportdiv'); return false;" onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" class="padi"><img src='/img/arrow.gif' alt="Rejsebureau" id="a_5" onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" /> <a href="#" class="menu">Sport »</a></div>
<div id='sportdiv' style='display:none;'>
<div class='padi'><a class='menu' href='/html/dyk.php'>Dykning</a> </div>
<div class='padi'><a class='menu' href='/html/rundrejser/thailandgolf.php'>Golf</a> </div>
<div class='padi'><a class='menu' href='/html/rundrejser/turefaldskaerm.php'>Faldskærm</a> </div>
</div>
<div onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" class="padi"><img src='/img/arrow.gif' alt="Rejsebureau" id="a_6" onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" /> <a href="/kataloglaes.php">Katalog</a></div>
<div onclick="fold('sptilbuddiv'); return false;" onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" class="padi"><img src='/img/arrow.gif' alt="Prag og Spa-ophold" id="a_7" onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" /> <a href="#">Special tilbud »</a></div>
<div id='sptilbuddiv' style='display:none;'>
<div class='padi'><a href='/nyhedsbrev14.html' class='menu'>Sidste Nyhedsbrev</a></div>
<div class='padi'><a href='/nyhedsbrev3.html' class='menu'>Nyhedsbrev 2011</a></div>
<div class='padi'><a href='/nyhedsbrev2.html' class='menu'>Nyhedsbrev 2010</a></div>
<div class='padi'><a class='menu' href='/annonce.php'>Vore annoncer</a> </div>
<div class='padi'><a class='menu' href='/hotel/praghotel.php'>Prag</a> </div>
<div class='padi'><a class='menu' href='/html/spaophold.php'>Spa-ophold</a> </div>
</div>
<div class="padi"> </div>
<div onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" class="padi"><img src='/img/arrow.gif' alt="Rejse spørgsmål" id="a_8" onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" /> <a href="/beskeder/pz7u83.php" class="menu">Ris og ros</a></div>
<div onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" class="padi"><img src='/img/arrow.gif' alt="Rejse spørgsmål" id="a_9" onmouseover="this.firstChild.src=pic[0].src" onmouseout="this.firstChild.src=pic[1].src" /> <a href="/statistik.php" class="menu">Har du 2 min ?</a></div>