20. juni 2002 - 15:50
Der er
21 kommentarer og 2 løsninger
menu
Hej Er der nogen der kan lave en menu som skal ligge i bunden af mit site. Der skal være fem hovedpunkter. Jeg skal så kunne tilføje alle de underpunkter jeg vil til de 5 hovedpunkter. mvh Tingleff
Annonceindlæg fra SuperOffice
okay der skal nok lidt mere forklaring til, skal det være en som kan foldes ud, eller ????
Ja...når man kører musen henover skal der foldes/fades en menu opad... skriv hvis du skal bruge mere info
altså når man kører musen hen over et hovedpunkt skal underpunkterne foldes/fades opad
er der nogen der kan hjælpe mig? eller kan det ikke lade sig gøre? plezzzzzzz
jo, det kan godt lade sig gøre, hvis du kan vente til imorgen skal jeg nok lave noget kode til dig..
cooooool.....det kan jeg i hvert fald :-)
har lidt problemer så det kan godt være den bliver lidt forsinket.
ok....:-)...nogen tid horisont??
nej, ikke helt det er som om det bare ikke vil lykkedes for mig, men tror jeg bliver færdig idag - imorgen, håber ihvert fald på det.
22. juni 2002 - 15:37
#10
Så er den her koden, er det sådan noget her du har brug for ? Altså bar i bunden i stedet for i toppen. -----------------------------------dropdown----------------------------------- <html> <head> <title>Ny side 1</title> <script language="javaScript" type="text/javascript"> function vis(lagnavn,a,b) { if (this.className = 'Tder2'){ document.all[lagnavn].style.display='block'; document.all[a].style.display='none'; document.all[b].style.display='none'; aktiv = 1; } } function fjern(lagnavn) { if (aktiv != "1"){ aktiv = 0; document.all[lagnavn].style.display = 'none'; } else { document.all[lagnavn].style.display='block';} } function divs(lagnavn){ aktiv = 0; document.all[lagnavn].style.display = 'none'; } function link(id,url){ document.getElementById(id).src=url; } </script> <style> .TDer{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;border-right:1px solid White;border-bottom:1px solid White;} .TDer1{background-color : #0075E6;color : White;TEXT-ALIGN: center; border:1px solid white;} .TDer2{background-color : #BACEEF;color : Black;TEXT-ALIGN: center;border-left:1px solid black;border-right:1px solid black;border-bottom:1px solid black;} .TDer21{background-color : #BACEEF;color : Black;TEXT-ALIGN: center;border:1px solid black;} .FUNC1{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=5);} .FUNC2{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=15);} .FUNC3{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=50);} .FUNC4{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=100);} </style> </head> <body> <div align="left"> <table border="0" width="100%" height="20" cellspacing="1" cellpadding="0"> <tr> <td width="188" height="19" style="position:absolute;left:1px;top:1px;" class="TDer" onmouseover="vis('first','second','third'); this.className='TDer2';" onmouseout="fjern('first'); this.className = 'Tder'">1</td> <td width="188" height="19" style="position:absolute;left:190px;top:1px;" class="TDer" onmouseover="vis('second','first','third'); this.className='TDer2';" onmouseout="fjern('second'); this.className='TDer';">2</td> <td width="189" height="19" style="position:absolute;left:380px;top:1px;" class="TDer" onmouseover="vis('third','first','second'); this.className='TDer2';" onmouseout="fjern('third'); this.className='TDer';">3</td> </tr> </table> </div> <div align="left" name="1" id="first" style="Display:none;position:absolute;left:0px;top:20px;z-index:2;" onmouseover="vis('first','second','third','fourth','fifth');" onmouseout="divs('first');"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td width="188" height="19" class="TDer1" onmouseover="this.className='TDer21';" onmouseout="this.className='TDer1';" onclick="link('iframen','ny2.htm');">1</td></tr> <tr><td width="188" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">2</td></tr> <tr><td width="188" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">3</td></tr> </table> </div> <div align="left" name="1" id="second" style="Display:none;position:absolute;left:190px;top:20px;z-index:2;" "vis('second','first','third','fourth','fifth');" onmouseout="divs('second');"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td width="188" height="19" class="TDer1" onmouseover="this.className='TDer21';" onmouseout="this.className='TDer1';">1</td></tr> </table> </div> <div align="left" name="1" id="third" style="Display:none;position:absolute;left:380px;top:20px;z-index:2;" onmouseover="vis('third','first','second','fourth','fifth');" onmouseout="divs('third');"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td width="189" height="19" class="TDer1" onmouseover="this.className='TDer21';" onmouseout="this.className='TDer1';">1</td></tr> </table> </div> <div align="left" name="1" id="seks" style="postition:absolute;left:0px;top:0px; z-index:1;" width="100%" height="400"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr><td width="100%" height="400" bgcolor="#CCCC99"> <iframe src="ny1.htm" width="400" heigth="300" frameborder="no" name="iframen" id="main"></iframe></td></tr> </table> </div> </body> </html> -----------------------------------slut---------------------------------------
22. juni 2002 - 18:18
#11
fedt.... men hvad er det for et layer i midten??
22. juni 2002 - 20:22
#12
en iframe hvor man kan linke til.
22. juni 2002 - 20:25
#13
det skal ikke linke der til...menu'en skal være på alle sider. Der skulle også være 5 hovedpunkter....der er kun 3 nu også ligger den ikke i bunden af siden og og folder sig ikke ud opad?? Kan du forklarer lidt om hvor jeg ændre koden, så der kommer flere punkter...osv
22. juni 2002 - 22:04
#14
laver den om til imorgen så, så skal jeg nok forklare hvad du skal gøre for flere punkter, osv.
22. juni 2002 - 22:24
#15
Fedt...takker :-)
23. juni 2002 - 13:13
#16
Sådan skal koden se ud <html> <head> <title>Ny side 1</title> <script language="javaScript" type="text/javascript" src="drop.js"></script> <style> .TDer{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;border-right:1px solid White;border-bottom:1px solid White;} .TDer2{background-color : #BACEEF;color : Black;TEXT-ALIGN: center;border-left:1px solid black;border-right:1px solid black;border-bottom:1px solid black;} .FUNC1{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=5);} .FUNC2{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=15);} .FUNC3{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=50);} .FUNC4{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=100);} </style> </head> <body> <!-- Hoved punkterne--> <div align="left"> <table border="0" width="100%" height="20" cellspacing="1" cellpadding="0"> <tr> <td width="188" height="19" style="position:absolute;left:1px;bottom:1px;" class="TDer" onmouseover="vis('first','second','third','fourth','fifth'); this.className='TDer2';" onmouseout="fjern('first'); this.className = 'Tder'">1</td> <td width="188" height="19" style="position:absolute;left:190px;bottom:1px;" class="TDer" onmouseover="vis('second','first','third','fourth','fifth'); this.className='TDer2';" onmouseout="fjern('second'); this.className='TDer';">2</td> <td width="189" height="19" style="position:absolute;left:380px;bottom:1px;" class="TDer" onmouseover="vis('third','first','second','fourth','fifth'); this.className='TDer2';" onmouseout="fjern('third'); this.className='TDer';">3</td> <td width="189" height="19" style="position:absolute;left:570px;bottom:1px;" class="TDer" onmouseover="vis('fourth','first','second','third','fifth'); this.className='TDer2';" onmouseout="fjern('fourth'); this.className='TDer';">4</td> <td width="189" height="19" style="position:absolute;left:760px;bottom:1px;" class="TDer" onmouseover="vis('fifth','first','second','third','fourth'); this.className='TDer2';" onmouseout="fjern('fifth'); this.className='TDer';">5</td> </tr></table></div> <!-- Hoved punkterne slut--> <!-- under punkterne --> <div align="left" name="1" id="first" style="Display:none;position:absolute;left:0px;bottom:20px;z-index:2;" onmouseover="vis('first','second','third','fourth','fifth');" onmouseout="divs('first');"> <table border="0" cellspacing="0" cellpadding="0"> <!--et underpunkt--> <tr><td width="188" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">1</td></tr> <!--et underpunkt slut--> <tr><td width="188" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">2</td></tr> <tr><td width="188" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">3</td></tr> </table></div> <div align="left" name="1" id="second" style="Display:none;position:absolute;left:190px;bottom:20px;z-index:2;" "vis('second','first','third','fourth','fifth');" onmouseout="divs('second');"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td width="188" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">1</td></tr> </table></div> <div align="left" name="1" id="third" style="Display:none;position:absolute;left:380px;bottom:20px;z-index:2;" onmouseover="vis('third','first','second','fourth','fifth');" onmouseout="divs('third');"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td width="189" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">1</td></tr> </table></div> <div align="left" name="1" id="fourth" style="Display:none;position:absolute;left:570px;bottom:20px;z-index:2;" onmouseover="vis('fourth','first','second','third','fifth');" onmouseout="divs('fourth');"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td width="189" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">1</td></tr> <tr><td width="189" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">2</td></tr> <tr><td width="189" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">3</td></tr> </table></div> <div align="left" name="1" id="fifth" style="Display:none;position:absolute;left:761px;bottom:20px;z-index:2;" onmouseover="vis('fifth','first','second','third','fourth');" onmouseout="divs('fifth');"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td width="189" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">1</td></tr> <tr><td width="189" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">2</td></tr> </table></div> <!-- under punkterne slut --> </body> </html>
23. juni 2002 - 13:16
#17
Du kan se underpunkterne mellem <!--underpunkterne-->.
23. juni 2002 - 13:17
#18
og et underpunkt ser sådan her ud : <!--et underpunkt--> <tr><td width="188" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">1</td></tr> <!--et underpunkt slut-->
23. juni 2002 - 13:19
#19
øhhh....der sker ikke rigtig noget??....undermenuerne kommer ikke op?
23. juni 2002 - 22:30
#20
ups den skal se sådan her ud, havde bare glemt scriptet (drop.js) <html> <head> <title>Ny side 1</title> <script language="javaScript" type="text/javascript"> function vis(lagnavn,a,b,c,d) { if (this.className = 'Tder2'){ document.all[lagnavn].style.display='block'; document.all[a].style.display='none'; document.all[b].style.display='none'; document.all[c].style.display='none'; document.all[d].style.display='none'; aktiv = 1; } } function fjern(lagnavn) { if (aktiv != "1"){ aktiv = 0; document.all[lagnavn].style.display = 'none'; } else { document.all[lagnavn].style.display='block';} } function divs(lagnavn){ aktiv = 0; document.all[lagnavn].style.display = 'none'; } function link(id,url){ document.getElementById(id).src=url; } </script> <style> .TDer{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;border-right:1px solid White;border-bottom:1px solid White;} .TDer2{background-color : #BACEEF;color : Black;TEXT-ALIGN: center;border-left:1px solid black;border-right:1px solid black;border-bottom:1px solid black;} .FUNC1{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=5);} .FUNC2{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=15);} .FUNC3{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=50);} .FUNC4{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=100);} </style> </head> <body> <!-- Hoved punkterne--> <div align="left"> <table border="0" width="100%" height="20" cellspacing="1" cellpadding="0"> <tr> <td width="188" height="19" style="position:absolute;left:1px;bottom:1px;" class="TDer" onmouseover="vis('first','second','third','fourth','fifth'); this.className='TDer2';" onmouseout="fjern('first'); this.className = 'Tder'">1</td> <td width="188" height="19" style="position:absolute;left:190px;bottom:1px;" class="TDer" onmouseover="vis('second','first','third','fourth','fifth'); this.className='TDer2';" onmouseout="fjern('second'); this.className='TDer';">2</td> <td width="189" height="19" style="position:absolute;left:380px;bottom:1px;" class="TDer" onmouseover="vis('third','first','second','fourth','fifth'); this.className='TDer2';" onmouseout="fjern('third'); this.className='TDer';">3</td> <td width="189" height="19" style="position:absolute;left:570px;bottom:1px;" class="TDer" onmouseover="vis('fourth','first','second','third','fifth'); this.className='TDer2';" onmouseout="fjern('fourth'); this.className='TDer';">4</t
24. juni 2002 - 09:38
#21
hovsa kun halvdelen, <html> <head> <title>Ny side 1</title> <script language="javaScript" type="text/javascript"> function vis(lagnavn,a,b,c,d) { if (this.className = 'Tder2'){ document.all[lagnavn].style.display='block'; document.all[a].style.display='none'; document.all[b].style.display='none'; document.all[c].style.display='none'; document.all[d].style.display='none'; aktiv = 1; } } function fjern(lagnavn) { if (aktiv != "1"){ aktiv = 0; document.all[lagnavn].style.display = 'none'; } else { document.all[lagnavn].style.display='block';} } function divs(lagnavn){ aktiv = 0; document.all[lagnavn].style.display = 'none'; } function link(id,url){ document.getElementById(id).src=url; } </script> <style> .TDer{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;border-right:1px solid White;border-bottom:1px solid White;} .TDer2{background-color : #BACEEF;color : Black;TEXT-ALIGN: center;border-left:1px solid black;border-right:1px solid black;border-bottom:1px solid black;} .FUNC1{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=5);} .FUNC2{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=15);} .FUNC3{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=50);} .FUNC4{background-color : #0075E6;color : White;TEXT-ALIGN: center; border-left:1px solid White;filter:alpha(opacity=100);} </style> </head> <body> <!-- Hoved punkterne--> <div align="left"> <table border="0" width="100%" height="20" cellspacing="1" cellpadding="0"> <tr> <td width="188" height="19" style="position:absolute;left:1px;bottom:1px;" class="TDer" onmouseover="vis('first','second','third','fourth','fifth'); this.className='TDer2';" onmouseout="fjern('first'); this.className = 'Tder'">1</td> <td width="188" height="19" style="position:absolute;left:190px;bottom:1px;" class="TDer" onmouseover="vis('second','first','third','fourth','fifth'); this.className='TDer2';" onmouseout="fjern('second'); this.className='TDer';">2</td> <td width="189" height="19" style="position:absolute;left:380px;bottom:1px;" class="TDer" onmouseover="vis('third','first','second','fourth','fifth'); this.className='TDer2';" onmouseout="fjern('third'); this.className='TDer';">3</td> <td width="189" height="19" style="position:absolute;left:570px;bottom:1px;" class="TDer" onmouseover="vis('fourth','first','second','third','fifth'); this.className='TDer2';" onmouseout="fjern('fourth'); this.className='TDer';">4</td> <td width="189" height="19" style="position:absolute;left:760px;bottom:1px;" class="TDer" onmouseover="vis('fifth','first','second','third','fourth'); this.className='TDer2';" onmouseout="fjern('fifth'); this.className='TDer';">5</td> </tr></table></div> <!-- Hoved punkterne slut--> <!-- under punkterne --> <div align="left" name="1" id="first" style="Display:none;position:absolute;left:0px;bottom:20px;z-index:2;" onmouseover="vis('first','second','third','fourth','fifth');" onmouseout="divs('first');"> <table border="0" cellspacing="0" cellpadding="0"> <!--et underpunkt--> <tr><td width="188" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">1</td></tr> <!--et underpunkt slut--> <tr><td width="188" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">2</td></tr> <tr><td width="188" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">3</td></tr> </table></div> <div align="left" name="1" id="second" style="Display:none;position:absolute;left:190px;bottom:20px;z-index:2;" "vis('second','first','third','fourth','fifth');" onmouseout="divs('second');"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td width="188" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">1</td></tr> </table></div> <div align="left" name="1" id="third" style="Display:none;position:absolute;left:380px;bottom:20px;z-index:2;" onmouseover="vis('third','first','second','fourth','fifth');" onmouseout="divs('third');"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td width="189" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">1</td></tr> </table></div> <div align="left" name="1" id="fourth" style="Display:none;position:absolute;left:570px;bottom:20px;z-index:2;" onmouseover="vis('fourth','first','second','third','fifth');" onmouseout="divs('fourth');"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td width="189" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">1</td></tr> <tr><td width="189" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">2</td></tr> <tr><td width="189" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">3</td></tr> </table></div> <div align="left" name="1" id="fifth" style="Display:none;position:absolute;left:761px;bottom:20px;z-index:2;" onmouseover="vis('fifth','first','second','third','fourth');" onmouseout="divs('fifth');"> <table border="0" cellspacing="0" cellpadding="0"> <tr><td width="189" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">1</td></tr> <tr><td width="189" height="19" class="TDer" onmouseover="this.className='TDer2';" onmouseout="this.className='TDer';">2</td></tr> </table></div> <!-- under punkterne slut --> </body> </html>
25. juni 2002 - 15:38
#22
har du fået den til at virke?????
25. juni 2002 - 16:50
#23
ja, men det var ikke noget jeg kunne bruge, men du får da 50 point for forsøget :-) Tak for hjælpen
Vi tilbyder markedets bedste kurser inden for webudvikling