<!--Links used to initiate the sub menus. Pass in the desired submenu index numbers (ie: 0, 1) -->
<a href="
http://domaene.dk/sub.asp" id="a0" onMouseover="showit(0);col(this);">Link 1</a> |
<a href="
http://domaene.dk/sub.asp" id="a1" onMouseover="showit(1);col(this);">Link 2</a> |
<a href="
http://domaene.dk/sub.asp" id="a2" onMouseover="showit(2);col(this);">Link 3</a> |
<!-- Edit the dimensions of the below, plus background color-->
<ilayer width=968 height=32 name="dep1" bgColor="#E6E6FF">
<layer name="dep2" width=968 height=32>
</layer>
</ilayer>
<div id="describe" style="background-color:#E6E6FF;width:400px;height:32px" onMouseover="clear_delayhide()" onMouseout="resetit(this,event)"></div>
<font style="position:relative;left:100px;" size="2" face="Verdana">
<script type="text/javascript" language="JavaScript1.2">
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="2" style="position:relative;left:0px;" face="Verdana"><i><b><a href="
http://dom.dk/sub.asp">Next item 1</a> | <a href="
http://dom.dk/sub.asp">Next item 2</a> | <a href="
http://dom.dk/sub.asp">Next item 3</a>
submenu[1]='<font size="2" style="position:relative;left:50px;" face="Verdana"><i><b><a href="
http://dom.dk/sub.asp">Next item 1</a> | <a href="
http://dom.dk/sub.asp">Next item 2</a> | <a href="
http://dom.dk/sub.asp">Next item 3</a>
submenu[2]='<font size="2" style="position:relative;left:100px;" face="Verdana"><i><b><a href="
http://www.dom.dk/subsub.asp">Next item 1</a>
//Set delay before submenu disappears after mouse moves out of it (in milliseconds)
var delay_hide=500
/////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 col(elm){
for(i=0;i<2;i++){
document.getElementById('a' + i).style.backgroundColor="";
}
elm.style.backgroundColor="#E6E6FF";
}
function noColor(){
for(i=0;i<2;i++){
document.getElementById('a' + i).style.backgroundColor="";
}
}
function resetit(elm,e){
if (document.all&&!menuobj.contains(e.toElement)){
delayhide=setTimeout("showit(-1);noColor()",delay_hide);
}
else if (document.getElementById&&e.currentTarget!= e.relatedTarget&& !contains_ns6(e.currentTarget, e.relatedTarget)){
delayhide=setTimeout("showit(-1);noColor()",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>