Her er koden som du har angivet her:
http://www10.brinkster.com/idearussia/XxX.htm
Hvor er Javascript - funktionaliteten? Og hvad er det jeg skal jeg FÅ TIL AT
VIRKE på mit site??
http://www10.brinkster.com/idearussia/defaultsubpagesmenupxl.htm
Mvh
Vahagn
*XxX* wrote in dk.edb.internet.webdesign.clientside:
> nu har jeg jo set lidt på din side og hvordan du løser dine problemer så jeg
> bestemt mig lige for at lave noget til dig som du sikkert kan få noget ud
> af.
>
> <html>
> <head>
> <title>menu test</title>
> <script language="JavaScript1.2">
> <!--
> timeout = Array();
> function show(obj) { // funktion til at vise et submenu objekt
> clearTimeout(timeout[obj]) //strater med at slette timeout for at menuen
> ikke skal forsvinde midt i det hele
> document.getElementById(obj).style.visibility='visible' // laver
submenuer
> synlige
> }
> function hide(obj) { // funktion til at skjule submenu objekter
> timeout[obj] =
> setTimeout("document.getElementById('"+obj+"').style.visibility='hidden'",
> 500) //laver en timeout så menuen ikke forsvinder når man trækker musen
ned
> på submenu obj
> }
> //-->
> </script>
> </head>
>
> <body bgcolor="orange">
> <center>
> <table border="0" width="80%" height="80%" cellspacing="0" bgcolor="white">
>
> <tr>
> <td height="40">
> <table border="0" width="100%" height="100%">
> <tr>
> <td align="left" style="position:relative" width="20%">
> <table border="0" style="position:absolute" width="100%" cellspacing="0"
> cellspanning="0">
> <tr>
> <td align="center" bgcolor="gray"
> onmouseover="show('sub11');show('sub12')"
> onmouseout="hide('sub11');hide('sub12')"
> onclick="//if(document.getElementById('sub11').style.visibility == 'hidden')
> {document.getElementById('sub11').style.visibility='visible';document.getEle
> mentById('sub12').style.visibility='visible'}else{document.getElementById('s
> ub11').style.visibility='hidden';document.getElementById('sub12').style.visi
> bility='hidden'}">menu1</td>
> </tr>
> <tr>
> <td align="center" bgcolor="gray"
> onmouseover="show('sub11');show('sub12')"
> onmouseout="hide('sub11');hide('sub12')" id="sub11"
> style="visibility:hidden">hej2</td>
> </tr>
> <tr>
> <td align="center" bgcolor="gray"
> onmouseover="show('sub11');show('sub12')"
> onmouseout="hide('sub11');hide('sub12')" id="sub12"
> style="visibility:hidden">hej3</td>
> </tr>
> </table>
> </td>
> <td align="left" style="position:relative" width="20%">
> <table border="0" style="position:absolute" width="100%" width="100%"
> cellspacing="0" cellspanning="0">
> <tr>
> <td align="center" bgcolor="gray"
> onmouseover="show('sub21');show('sub22')"
> onmouseout="hide('sub21');hide('sub22')">menu2</td>
> </tr>
> <tr>
> <td align="center" bgcolor="gray"
> onmouseover="show('sub21');show('sub22')"
> onmouseout="hide('sub21');hide('sub22')" id="sub21"
> style="visibility:hidden">hej2</td>
> </tr>
> <tr>
> <td align="center" bgcolor="gray"
> onmouseover="show('sub21');show('sub22')"
> onmouseout="hide('sub21');hide('sub22')" id="sub22"
> style="visibility:hidden">hej3</td>
> </tr>
> </table>
> </td>
> <td align="left" style="position:relative" width="20%">
> <table border="0" style="position:absolute" width="100%" width="100%"
> cellspacing="0" cellspanning="0">
> <tr>
> <td align="center" bgcolor="gray"
> onmouseover="show('sub31');show('sub32')"
> onmouseout="hide('sub31');hide('sub32')">menu3</td>
> </tr>
> <tr>
> <td align="center" bgcolor="gray"
> onmouseover="show('sub31');show('sub32')"
> onmouseout="hide('sub31');hide('sub32')" id="sub31"
> style="visibility:hidden">hej2</td>
> </tr>
> <tr>
> <td align="center" bgcolor="gray"
> onmouseover="show('sub31');show('sub32')"
> onmouseout="hide('sub31');hide('sub32')" id="sub32"
> style="visibility:hidden">hej3</td>
> </tr>
> </table>
> </td>
> <td align="left" style="position:relative" width="20%">
> <table border="0" style="position:absolute" width="100%" width="100%"
> cellspacing="0" cellspanning="0">
> <tr>
> <td align="center" bgcolor="gray"
> onmouseover="show('sub41');show('sub42')"
> onmouseout="hide('sub41');hide('sub42')">menu4</td>
> </tr>
> <tr>
> <td align="center" bgcolor="gray"
> onmouseover="show('sub41');show('sub42')"
> onmouseout="hide('sub41');hide('sub42')" id="sub41"
> style="visibility:hidden">hej2</td>
> </tr>
> <tr>
> <td align="center" bgcolor="gray"
> onmouseover="show('sub41');show('sub42')"
> onmouseout="hide('sub41');hide('sub42')" id="sub42"
> style="visibility:hidden">hej3</td>
> </tr>
> </table>
> </td>
> <td align="left" style="position:relative" width="20%">
> <table border="0" style="position:absolute" width="100%" width="100%"
> cellspacing="0" cellspanning="0">
> <tr>
> <td align="center" bgcolor="gray"
> onmouseover="show('sub51');show('sub52')"
> onmouseout="hide('sub51');hide('sub52')">menu5</td>
> </tr>
> <tr>
> <td align="center" bgcolor="gray"
> onmouseover="show('sub51');show('sub52')"
> onmouseout="hide('sub51');hide('sub52')" id="sub51"
> style="visibility:hidden">hej2</td>
> </tr>
> <tr>
> <td align="center" bgcolor="gray"
> onmouseover="show('sub51');show('sub52')"
> onmouseout="hide('sub51');hide('sub52')" id="sub52"
> style="visibility:hidden">hej3</td>
> </tr>
> </table>
> </td>
> </tr>
> </table>
>
> </td>
> </tr>
> <tr>
> <td></td>
> </tr>
> <tr>
> <td></td>
> </tr>
> <tr>
> <td></td>
> </tr>
> </table>
> </center>
>
> </body>
> </html>
>
> SÅ SE LIGE AT FÅ DIN SIDE TIL AT VIRKE!
>
>
--
Vil du lære at kode HTML, XHTML, CSS, SSI eller ASP?
- Pædagogiske tutorials på dansk
- Kom godt i gang med koderne
KLIK HER! =>
http://www.html.dk/tutorials