kimikai
04-17-2012, 09:02 AM
Last problem that i faced on my website:
I made a menu, Dropdown, with java and CSS
Now im putting in all the links that are needed with a normal <a href> and target to my iframe named content.
It wont link tho...
and i have no idea how this is possible.
<ul id="accordion">
<li>
<a href="home.html" target="content" class="item Home" rel="Home"></a>
</li>
<li>
<a href="aboutus.html" target="content" class="item Overons" rel="Overons"></a>
</li>
<li>
<a href="reuen.html" target="content"class="item Honden" rel="Honden"></a>
<ul>
<li><a href="reuen.html" target="content" class="item Reuen" rel="Reuen"></a></li>
<li><a href="#" class="item Teven" rel="Teven"></a></li>
<li><a href="#" class="item InMemoriam" rel="InMemoriam"></a></li>
</ul>
</li>
<li>
<a href="#" class="item Puppies" rel="Puppies"></a>
<ul>
<li><a href="#" class="item Beschikbaar" rel="Beschikbaar"></a></li>
<li><a href="#" class="item Verwacht" rel="Verwacht"></a></li>
<li><a href="#" class="item VorigeNesten" rel="VorigeNesten"></a></li>
</ul>
</li>
<li>
<a href="#" class="item Shows" rel="Shows"></a>
<ul>
<li><a href="#" class="item Twaalf" rel="item Twaalf"></a></li>
<li><a href="#" class="item Elf" rel="item Elf"></a></li>
<li><a href="#" class="item Tien" rel="item Elf"></a></li>
<li><a href="#" class="item VorigeJaren" rel="item VorigeJaren"></a></li>
<li><a href="#" class="item Handling" rel="item Handling"></a></li>
</ul>
</li>
<li>
<a href="#" class="item Fotos" rel="Fotos"></a>
</li>
<li>
<a href="#" class="item Links" rel="Links"></a>
<ul>
<li><a href="#" class="item LhasaApso" rel="LhasaApso"></a></li>
<li><a href="#" class="ShihTzu" rel="ShihTzu"></a></li>
<li><a href="#" class="OverigeRassen" rel="OverigeRassen"></a></li>
<li><a href="#" class="Clubs" rel="Clubs"></a></li>
<li><a href="#" class="OverigeLinks" rel="OverigeLinks"></a></li>
</ul>
</li>
<li>
<a href="#" class="item Contact" rel="Contact"></a>
<ul>
<li><a href="#" class="item Gastenboek" rel="Gastenboek"></a></li>
</ul>
</li>
</ul>
Thats the coding, i havent put links in all of em yet because i already found out it wasnt linkin after making the first few.
Anyone knows what went wrong here??
Ive tried alittle more and figured that when i change class="item home" into class="home" it does work. Same goes for the ones with submenus, although when i change class for example from: class="item Honden" to class="Honden" the dropdown function isnt there anymore.
So basically when i keep the item part i will have the dropdown part but no link, and when i dont keep the item part, i will have the link but no dropdown part.
How am i gonna make it that both work
I made a menu, Dropdown, with java and CSS
Now im putting in all the links that are needed with a normal <a href> and target to my iframe named content.
It wont link tho...
and i have no idea how this is possible.
<ul id="accordion">
<li>
<a href="home.html" target="content" class="item Home" rel="Home"></a>
</li>
<li>
<a href="aboutus.html" target="content" class="item Overons" rel="Overons"></a>
</li>
<li>
<a href="reuen.html" target="content"class="item Honden" rel="Honden"></a>
<ul>
<li><a href="reuen.html" target="content" class="item Reuen" rel="Reuen"></a></li>
<li><a href="#" class="item Teven" rel="Teven"></a></li>
<li><a href="#" class="item InMemoriam" rel="InMemoriam"></a></li>
</ul>
</li>
<li>
<a href="#" class="item Puppies" rel="Puppies"></a>
<ul>
<li><a href="#" class="item Beschikbaar" rel="Beschikbaar"></a></li>
<li><a href="#" class="item Verwacht" rel="Verwacht"></a></li>
<li><a href="#" class="item VorigeNesten" rel="VorigeNesten"></a></li>
</ul>
</li>
<li>
<a href="#" class="item Shows" rel="Shows"></a>
<ul>
<li><a href="#" class="item Twaalf" rel="item Twaalf"></a></li>
<li><a href="#" class="item Elf" rel="item Elf"></a></li>
<li><a href="#" class="item Tien" rel="item Elf"></a></li>
<li><a href="#" class="item VorigeJaren" rel="item VorigeJaren"></a></li>
<li><a href="#" class="item Handling" rel="item Handling"></a></li>
</ul>
</li>
<li>
<a href="#" class="item Fotos" rel="Fotos"></a>
</li>
<li>
<a href="#" class="item Links" rel="Links"></a>
<ul>
<li><a href="#" class="item LhasaApso" rel="LhasaApso"></a></li>
<li><a href="#" class="ShihTzu" rel="ShihTzu"></a></li>
<li><a href="#" class="OverigeRassen" rel="OverigeRassen"></a></li>
<li><a href="#" class="Clubs" rel="Clubs"></a></li>
<li><a href="#" class="OverigeLinks" rel="OverigeLinks"></a></li>
</ul>
</li>
<li>
<a href="#" class="item Contact" rel="Contact"></a>
<ul>
<li><a href="#" class="item Gastenboek" rel="Gastenboek"></a></li>
</ul>
</li>
</ul>
Thats the coding, i havent put links in all of em yet because i already found out it wasnt linkin after making the first few.
Anyone knows what went wrong here??
Ive tried alittle more and figured that when i change class="item home" into class="home" it does work. Same goes for the ones with submenus, although when i change class for example from: class="item Honden" to class="Honden" the dropdown function isnt there anymore.
So basically when i keep the item part i will have the dropdown part but no link, and when i dont keep the item part, i will have the link but no dropdown part.
How am i gonna make it that both work