HTML beginner |
|
ik heb wel zoiets dergelijks gedownload ergens,komt ie:
<!--Links used to initiate the sub menus. Pass in the desired submenu index numbers (ie: 0, 1) -->
<table width="100%" height="20" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan=2 height="2" bgcolor="#000000"></td>
</tr>
<tr>
<td height=18 width=30></td>
<td valign="top"><font size=2>
<a class=link href="?id=1">Home</a> |
<img src=pics/arrow-down.bmp><a class=link href="?id=31" onMouseover="showit(1)">News</a> |
<img src=pics/arrow-down.bmp><a class=link href="?id=121" onMouseover="showit(0)">Members</a> |
<img src=pics/arrow-down.bmp><a class=link href="" onMouseover="showit(2)">Info</a> |
<a class=link href="forum/">Forum</a> |
</font></td>
</tr>
</table>
<!-- Edit the dimensions of the below, plus background color-->
<ilayer width=100% height=32 name="dep1" bgcolor="000000">
<layer name="dep2" width=100% height=32> </layer>
</ilayer>
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan=2 height=2 bgcolor="1b1b1b"></td>
</tr>
<tr>
<td width=50 bgcolor="1d1d1d" background="pics/menu-bar.bmp"></td>
<td valign="bottom" background="pics/menu-bar.bmp"><div align="left" id="describe" style="height:20px" onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div></td>
</tr>
</table>
<script language="JavaScript1.2">
/*
Tabs Menu (mouseover)- By Dynamic Drive
For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
This credit MUST stay intact for use
*/
var submenu=new Array()
//Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors.
submenu[0]='<font size=-1><b><a class=link href="?id=121">Members</a> | <a class=link href="?id=122">Join us</a> | <a class=link href="?id=123">Try outs</a></b></font>'
submenu[1]='<font size=-1><b><a class=link href="?id=31">News</a> | <a class=link href="?id=32">News Archief</a></b></font>'
submenu[2]='<font size=-1><b><a class=link href="?id=131">Clan info</a> | <a class=link href="?id=132">Server Info</a></b></font>'
submenu[10]='<font size=-1><b><a class=link href="forum/profile.php?mode=register">Register</a> | <a class=link href="forum/profile.php?mode=sendpassword">Forgot Password</a></b></font>'
//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=1000
/////No need to edit beyond here
var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : ""
function showit(which){
clear_delayhide()
thecontent=(which==-1)? "" : submenu[which]
if (document.getElementById||document.all)
menuobj.innerHTML=thecontent
else if (document.layers){
menuobj.document.write(thecontent)
menuobj.document.close()
}
}
function resetit(e){
if (document.all&&!menuobj.contains(e.toElement))
delayhide=setTimeout("showit(-1)",delay_hide)
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget))
delayhide=setTimeout("showit(-1)",delay_hide)
}
function clear_delayhide(){
if (window.delayhide)
clearTimeout(delayhide)
}
function contains_ns6(a, b) {
while (b.parentNode)
if ((b = b.parentNode) == a)
return true;
return false;
}
</script>
<!--Links used to initiate the sub menus. Pass in the desired submenu index numbers (ie: 0, 1) --> <table width="100%" height="20" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan=2 height="2" bgcolor="#000000"></td> </tr> <tr> <td height=18 width=30></td> <td valign="top"><font size=2> <a class=link href ="?id=1">Home </a > | <img src =pics /arrow -down .bmp ><a class=link href ="?id=31" onMouseover ="showit(1)">News </a > | <img src =pics /arrow -down .bmp ><a class=link href ="?id=121" onMouseover ="showit(0)">Members </a > | <img src =pics /arrow -down .bmp ><a class=link href ="" onMouseover ="showit(2)">Info </a > | <a class=link href ="forum/">Forum </a > | </font></td> </tr> </table> <!-- Edit the dimensions of the below, plus background color--> <ilayer width=100% height=32 name="dep1" bgcolor="000000"> <layer name="dep2" width=100% height=32> </layer> </ilayer> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan=2 height=2 bgcolor="1b1b1b"></td> </tr> <tr> <td width=50 bgcolor="1d1d1d" background="pics/menu-bar.bmp"></td> <td valign="bottom" background="pics/menu-bar.bmp"><div align="left" id="describe" style="height:20px" onMouseover="clear_delayhide()" onMouseout="resetit(event)"></div></td> </tr> </table> <script language="JavaScript1.2"> /* Tabs Menu (mouseover)- By Dynamic Drive For full source code and more DHTML scripts, visit http://www.dynamicdrive.com This credit MUST stay intact for use */ //Set submenu contents. Expand as needed. For each content, make sure everything exists on ONE LINE. Otherwise, there will be JS errors. submenu[0]='<font size=-1><b><a class=link href="?id=121">Members</a> | <a class=link href="?id=122">Join us</a> | <a class=link href="?id=123">Try outs</a></b></font>' submenu[1]='<font size=-1><b><a class=link href="?id=31">News</a> | <a class=link href="?id=32">News Archief</a></b></font>' submenu[2]='<font size=-1><b><a class=link href="?id=131">Clan info</a> | <a class=link href="?id=132">Server Info</a></b></font>' submenu[10]='<font size=-1><b><a class=link href="forum/profile.php?mode=register">Register</a> | <a class=link href="forum/profile.php?mode=sendpassword">Forgot Password</a></b></font>' //Set delay before submenu disappears after mouse moves out of it (in milliseconds) var delay_hide=1000 /////No need to edit beyond here var menuobj=document.getElementById? document.getElementById("describe") : document.all? document.all.describe : document.layers? document.dep1.document.dep2 : "" function showit(which){ clear_delayhide() thecontent=(which==-1)? "" : submenu[which] if (document.getElementById||document.all) menuobj.innerHTML=thecontent else if (document.layers){ menuobj.document.write(thecontent) menuobj.document.close() } } function resetit(e){ if (document.all&&!menuobj.contains(e.toElement)) delayhide=setTimeout("showit(-1)",delay_hide) else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)) delayhide=setTimeout("showit(-1)",delay_hide) } function clear_delayhide(){ if (window.delayhide) clearTimeout(delayhide) } function contains_ns6(a, b) { while (b.parentNode) if ((b = b.parentNode) == a) return true; return false; } </script>
Ik heb ff geen tijd om het uit te leggen, misschien heb je er iets aan
ThAlmighty |