Hey.
Jeg har fiflet lidt med en menu. Faktisk downloadet den. Den virker korrekt, men det ser dog ud til, at når jeg linker til en side, hvori koden:
<div align="center" style="display:none;"><ul id="imenus0" style="width:122px">
<li style="width:55px;"><a><font color="#C5CACA">Scripting</font></a>
<div><div style="width:122px;height:2px;top:0px;left:0px;"><ul>
<li><a><font color="#C5CACA">Tutorials</font></a>
<div><div style="width:123px;top:-19px;left:123px;"><ul>
<li><a href="http://www.grineflip.dk/fun-pics/001/xxx-index.html" target="_new"><font color="#C5CACA">Php</font></a></li>
<li><a href="http://www.grineflip.dk/fun-pics/002/xxx-index.html" target="_new"><font color="#C5CACA">Asp</font></a></li>
<li><a href="http://www.grineflip.dk/fun-pics/003/xxx-index.html" target="_new"><font color="#C5CACA">Html</font></a></li>
<li><a href="http://www.grineflip.dk/fun-pics/004/xxx-index.html" target="_new"><font color="#C5CACA">Css</font></a></li>
<li><a href="http://www.grineflip.dk/fun-pics/005/xxx-index.html" target="_new"><font color="#C5CACA">JavaScript</font></a></li>
</ul></div></div></li>
<li><a><font color="#C5CACA">Artikler</font></a>
<div><div style="width:123; top: -18px; left: 123px; height: 1"><ul>
<li><a href="http://www.grineflip.dk/fun-pics/001/xxx-index.html" target="_new"><font color="#C5CACA">Php</font></a></li>
<li><a href="http://www.grineflip.dk/fun-pics/002/xxx-index.html" target="_new"><font color="#C5CACA">Asp</font></a></li>
<li><a href="http://www.grineflip.dk/fun-pics/003/xxx-index.html" target="_new"><font color="#C5CACA">Html</font></a></li>
<li><a href="http://www.grineflip.dk/fun-pics/004/xxx-index.html" target="_new"><font color="#C5CACA">Css</font></a></li>
<li><a href="http://www.grineflip.dk/fun-pics/005/xxx-index.html" target="_new"><font color="#C5CACA">JavaScript</font></a></li>
</ul></div></div></li>
</ul></div></div></li>
<li style="width:55px;"><a><font color="#C5CACA">test1</font></a>
<li style="width:55px;"><a><font color="#C5CACA">test2</font></a>
<div><div style="width:123px;top:;left:;"><ul>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
</ul></div></div></li>
<li style="width:55px;"><a><font color="#C5CACA">test3</font></a>
<div><div style="width:123px;top:;left:;"><ul>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
</ul></div></div></li>
<li style="width:55px;">
<a><font color="#C5CACA">test4</font></a>
<div><div style="width:123px;top:;left:;"><ul>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
</ul></div></div></li>
<li style="width:55px;"><a><font color="#C5CACA">test5</font></a>
<div><div style="width:123px;top:;left:;"><ul>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
<li><a href="sample_link.html" target="_new"><font color="#C5CACA">test</font></a></li>
</ul></div></div></li>
<li style="width:55px;"><a><font color="#C5CACA">test6</font></a>
<div><div style="width:123px;top:;left:;"><ul>
<li><a href="http://www.grineflip.dk/kontakt/kontakt.php" target="_new"><font color="#C5CACA">Mail</font></a></li>
<li><a href="http://www.grineflip.dk/gaestebog/view.php" target="_new"><font color="#C5CACA">Gæstebog</font></a></li>
<li><a href="http://www.grineflip.dk/phpforum/list.php?11" target="_new"><font color="#C5CACA">Forum (jokes)</font></a></li>
<li><a href="http://www.lkpnet.dk/brian/chat/" target="_new"><font color="#C5CACA">Chat</font></a></li>
</ul></div></div></li>
</ul><div style="clear:left;"></div></div>
</center>
<script language="JavaScript">
function imenus_data0(){
this.enable_visual_design_mode = false //turns the visual design pad option on or off
this.main_is_horizontal = true
this.menu_showhide_delay = 150
/*---------------------------------------------
Images (expand and pointer icons)
---------------------------------------------*/
/*---------------------------------------------
Global Menu Styles
---------------------------------------------*/
//Main Menu
this.main_container_styles = "background-color:#000000; border-style:solid; border-color:#000000; border-width:0px; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; "
this.main_item_styles = "color:#e6e6e6; text-align:center; font-family:Arial; font-size:10px; font-weight:bold; text-decoration:none; padding-top:0px; padding-right:0px; padding-bottom:0px; padding-left:0px; border-style:none; border-color:#000000; border-width:0px; "
this.main_item_hover_styles = "background-color:#000000; color:#e6e6e6; "
this.main_item_active_styles = "text-decoration:; "
//Sub Menu
this.subs_container_styles = "background-color:#3b3b3b; border-style:solid; border-color:#000000; border-width:1px; padding-top:5px; padding-right:5px; padding-bottom:5px; padding-left:5px; "
this.subs_item_styles = "color:#929292; text-align:left; font-size:11px; font-weight:normal; text-decoration:none; padding-top:2px; padding-right:5px; padding-bottom:2px; padding-left:5px; border-style:none; border-width:1px; "
this.subs_item_hover_styles = "background-color:#515151; "
this.subs_item_active_styles = "text-decoration:underline; "
}
</script>
<script language="JavaScript">
if(!window.vdt_doc_effects)vdt_doc_effects=new Object();ht_obj=new Object();cm_obj=new Object();x29=null;ulm_playobj=null;ulm_rss=new Object();ulm_version="5.2";ulm_base="http://www.opencube.com/vim5.2/";ulm_ie=window.showHelp;ulm_opera=window.opera;ulm_strict=((ulm_ie || ulm_opera)&&(document.compatMode=="CSS1Compat"));ulm_mac=navigator.userAgent.indexOf("Mac")+1;ulm_navigator=navigator.userAgent.indexOf("Netscape")+1;ulm_version=parseFloat(navigator.vendorSub);ulm_firefox=navigator.userAgent.indexOf("Firefox")+1;ulm_oldnav=(ulm_navigator && ulm_version<7.1);ulm_iemac=(ulm_ie && ulm_mac);ulm_firefox_beta1_5=navigator.userAgent.indexOf("Firefox/1.4")+1;ulm_sep="_";
if(!ulm_ie)ulm_sep="z";ulm_bna=new Array(60,100,105,118,32,115,116,121,108,101,61,34,99,117,114,115,111,114,58,104,97,110,100,59,32,119,104,105,116,101,45,115,112,97,99,101,58,110,111,119,114,97,112,59,98,97,99,107,103,114,111,117,110,100,45,99,111,108,111,114,58,35,101,101,101,101,101,101,59,112,97,100,100,105,110,103,58,49,112,120,59,112,97,100,100,105,110,103,45,108,101,102,116,58,53,112,120,59,112,97,100,100,105,110,103,45,114,105,103,104,116,58,53,112,120,59,98,111,114,100,101,114,45,119,105,100,116,104,58,49,112,120,59,98,111,114,100,101,114,45,99,111,108,111,114,58,35,51,51,51,51,51,51,59,98,111,114,100,101,114,45,115,116,121,108,101,58,115,111,108,105,100,59,102,111,110,116,45,115,105,122,101,58,49,49,112,120,59,102,111,110,116,45,102,97,109,105,108,121,58,65,114,105,97,108,59,34,62,66,117,121,32,78,111,119,46,46,46,60,47,100,105,118,62);ulm_display="block";
if(ulm_iemac)ulm_display="inline-block";
if(ulm_iemac && document.doctype){tval=document.doctype.name.toLowerCase();
if((tval.indexOf("dtd")>-1)&&((tval.indexOf("http")>-1)||(tval.indexOf("xhtml")>-1)))ulm_strict=1;}x0=1;
if(ulm_ie)x0=x10();x1=document.getElementsByTagName("UL");for(mi=0;mi<x1.length;mi++){if((x2=x1[mi].id)){if(x2.indexOf("imenus")>-1){x2=x2.substring(6);dto=new window["imenus_data"+x2];imenus_create_menu(x1[mi].childNodes,x2+ulm_sep,dto,x2);
if(!ulm_oldnav && window.imenus_add_pointer_image)imenus_add_pointer_image(x1[mi].parentNode.parentNode,dto,0);x6(x2,dto);(ap1=x1[mi].parentNode).id="imouter"+x2;ap1.parentNode.id="imcontainer2"+x2;(ap2=ap1.parentNode.parentNode).id="imcontainer1"+x2;x1[mi].parentNode.style.display=ulm_display;ap2.style.width=x1[mi].parentNode.offsetWidth+"px";ap2.style.height=ap1.parentNode.offsetHeight+"px";ap2.setAttribute("align","left");
if(ulm_ie && !ulm_mac){var x32=document.getElementsByTagName("iframe");for(var i=0;i<x32.length;i++){if(x32[i].getAttribute("x31")){var x33=x32[i].parentNode.children[1];x32[i].style.height=x33.offsetHeight;x32[i].style.width=x33.offsetWidth;}}}if(ulm_firefox){for(var i=0;i<(ifrm=document.getElementsByTagName("iframe")).length;i++){ifrm[i].onmouseover=function(){for(var f in cm_obj){x34(cm_obj[f],dto.menu_showhide_delay);
if((pls=cm_obj[f].getElementsByTagName("UL")).length){if((pols=pls[0].parentNode.lastChild).getAttribute("ispointer"))pols.style.visibility="hidden";}}}}}if(((ulm_ie)&&(!ulm_mac))&&(window.vdt_doc_effects && dto.enable_visual_design_mode)){vdt_doc_effects[x1[mi].id]=x1[mi].id.substring(0,6);sd='<sc'+'ript language="JScript.Encode" src="vimenus.js"></sc'+'ript>';
if(!window.vdt_doc_effects.initialized){sd+='<sc'+'ript language="JScript.Encode" src="vdesigntool.js"></sc'+'ript>';window.vdt_doc_effects.initialized=1;}document.write(sd);}if(((ulm_ie)&&(!ulm_mac))&&(x0 || dto.enable_visual_design_mode)){var x5t="";for(us in ulm_bna)x5t+=String.fromCharCode(ulm_bna[us]);
if(!dto.enable_visual_design_mode)uoff=-20;else {x5t='';uoff=-15;}(x7=x1[mi].parentNode).insertAdjacentHTML("afterBegin",'<div onmousemove="event.cancelBubble=1" style="position:absolute;visibility:hidden;top:'+uoff+'px;left:0px;"></div>');
if(!dto.enable_visual_design_mode){ap1.onmouseover=function(){if(x29)clearTimeout(x29);x7.firstChild.style.visibility="visible";};ap1.onmouseout=function(){x29=setTimeout("x8(window."+this.id+")",dto.menu_showhide_delay);};}else x7.firstChild.style.visibility="visible";}}}};function x8(x9){x9.firstChild.style.visibility="hidden";};function x10(){if((x11=window.location.hostname)!=""){if(!window.list7){mval=0;for(i=0;i<(x11).length;i++)mval+=x11.charCodeAt(i);mval+="-u";x12=0;while((a_val=window["unl"+"ock"+x12])){if(mval==a_val)return false;x12++;}return "ulm_ie";}}};function imenus_create_menu(nodes,prefix,dto,d_toid,sid){this.counter=0;
if(sid)this.counter=sid;for(this.li=0;this.li<nodes.length;this.li++){if(nodes[this.li].tagName=="LI"){this.bc="ulitem"+prefix+this.counter;nodes[this.li].id=this.bc;this.ac="ulaitem"+prefix+this.counter;nodes[this.li].firstChild.id=this.ac;nodes[this.li].level=(this.level=prefix.split(ulm_sep).length-1);nodes[this.li].dto=d_toid;nodes[this.li].x4=prefix;nodes[this.li].sid=this.counter;
if(ulm_ie && !ulm_mac)nodes[this.li].style.height="1px";nodes[this.li].onkeydown=function(e){if(ulm_ie)e=window.event;
if(e.keyCode==13)hover_handle(this,1);};nodes[this.li].onmouseover=function(){if(this.firstChild.className.indexOf("iactive")==-1)this.firstChild.className="ihover";
if(ht_obj[this.level])clearTimeout(ht_obj[this.level]);ht_obj[this.level]=setTimeout("hover_handle(document.getElementById('"+this.id+"'),1)",dto.menu_showhide_delay);};nodes[this.li].onmouseout=function(){x34(this,dto.menu_showhide_delay);};this.x30=nodes[this.li].childNodes;for(this.ti=0;this.ti<this.x30.length;this.ti++){if(this.x30[this.ti].tagName=="DIV"){if(ulm_ie && !ulm_mac)this.x30[this.ti].firstChild.insertAdjacentHTML("afterBegin","<iframe src='z' x31=1 style='position:absolute;border-style:none;width:1px;height:1px;filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=0);' frameborder='0'></iframe>");
if(!(ulm_iemac)|| this.level>1 || !dto.main_is_horizontal)this.x30[this.ti].style.zIndex=this.level;this.x30[this.ti].setAttribute("align","left");this.cx1=this.x30[this.ti].getElementsByTagName("UL");
if(this.cx1.length){x4="sub";
if(this.level==1)x4="main";
if((iname=dto[x4+"_expand_image"])&&(!ulm_firefox_beta1_5)){x14=dto[x4+"_expand_image_hover"];x15=new Array(dto[x4+"_expand_image_width"],dto[x4+"_expand_image_height"]);tewid="100%";
if(ulm_ie)tewid="0px";x16='<div style="visibility:hidden;position:absolute;text-align:right;top:0px;left:0px;width:'+tewid+';"><img style="border-style:none;" level='+this.level+' imexpandicon=2 src="'+x14+'" width='+x15[0]+' height='+x15[1]+' border=0></div>';nodes[this.li].firstChild.innerHTML='<div imexpandarrow=1 style="position:relative;text-align:left;"><div style="position:absolute;width:100%;cursor:hand;cursor:pointer;text-align:right;"><div style="position:relative;width:'+tewid+';height:0px; text-align:right;top:'+dto[x4+"_expand_image_offy"]+'px;left:'+dto[x4+"_expand_image_offx"]+'px;">'+x16+'<img style="border-style:none;" imexpandicon=1 level='+this.level+' src="'+iname+'" width='+x15[0]+' height='+x15[1]+' border=0></div></div></div>'+nodes[this.li].firstChild.innerHTML;}this.cx1[0].parentNode.className="imsubc";this.cx1[0].id="x1ub"+prefix+this.counter;new imenus_create_menu(this.cx1[0].childNodes,prefix+this.counter+ulm_sep,dto,d_toid);
if(!ulm_oldnav && window.imenus_add_pointer_image)imenus_add_pointer_image(this.cx1[0].parentNode,dto,this.level);}}}if((!sid)&&(!ulm_navigator)&&(!ulm_iemac)&&(rssurl=nodes[this.li].getAttribute("rssfeed"))&&(window.imenus_get_rss_data))imenus_get_rss_data(nodes[this.li],rssurl);this.counter++;}}};function x34(x35,x36){if(x35.firstChild.className.indexOf("iactive")==-1)x35.firstChild.className="";clearTimeout(ht_obj[x35.level]);ht_obj[x35.level]=setTimeout("hover_handle(document.getElementById('"+x35.id+"'))",x36);};function hover_handle(hobj,show){if(ulm_ie && !ulm_mac){try{if(show){if((plobj=(uobj=hobj.getElementsByTagName("UL")[0]).filters[0])){if(uobj.parentNode.currentStyle.visibility=="hidden"){if(ulm_playobj)ulm_playobj.stop();plobj.apply();plobj.play();ulm_playobj=plobj;}}}}catch(e){}}if(cm_obj[hobj.level]!=null){cm_obj[hobj.level].className="";cm_obj[hobj.level].firstChild.className="";}if(show){if(!hobj.getElementsByTagName("UL")[0])return;hobj.firstChild.className="ihover iactive";hobj.className="ishow";cm_obj[hobj.level]=hobj;}};function x6(id,dto){x19="#imenus"+id;sd="<style id='ssimenus"+id+"' type='text/css'>";x20=0;di=0;while((x21=document.getElementById("ulitem"+id+ulm_sep+di))){if(dto.main_is_horizontal){if(ulm_iemac)x21.style.display="inline-block";else sd+="#ulitem"+id+ulm_sep+di+" {float:left;}";
if((tgw=x21.style.width))x20+=parseInt(tgw);}else {x20=parseInt(document.getElementById("imenus"+id).style.width);x21.style.width="100%";}di++;}document.getElementById("imenus"+id).style.width=x20+"px";
if(!ulm_opera)document.getElementById("imenus"+id).parentNode.style.width=x20+"px";var adpr="relative";
if(ulm_oldnav)adpr="absolute";sd+="#imcontainer1"+id+" {z-index:"+(999999-id)+";position:"+adpr+";"+ulm_display+"}";sd+="#imcontainer2"+id+" {position:absolute;}";sd+=x19+",#imenus"+id+" ul{margin:0;list-style:none;}";sd+="#imouter"+id+" {text-align:left;"+dto.main_container_styles+"}";sd+=x19+" {padding:0px;}";posp="relative";
if(ulm_ie && !ulm_mac)posp="absolute";sd+=x19+" ul {padding:0px;"+dto.subs_container_styles+"position:"+posp+";top:0px;left:0px;}";sd+=x19+" li div {position:absolute;}";sd+=x19+" li .imsubc {position:absolute;visibility:hidden;}";ubt="";lbt="";x23="";x24="";x22=10;for(hi=1;hi<x22;hi++){ubt+="li ";lbt+=" li";x23+=x19+" li.ishow "+ubt+" .imsubc";x24+=x19+lbt+".ishow .imsubc";
if(hi!=(x22-1)){x23+=",";x24+=",";}}sd+=x23+"{visibility:hidden;}";sd+=x24+"{visibility:visible;}";sd+=x19+","+x19+" li {font-size:1px}";sd+=x19+","+x19+" ul{text-decoration:none;}";sd+=x19+" ul li a.ihover {"+dto.subs_item_hover_styles+"}";sd+=x19+" li a.ihover {"+dto.main_item_hover_styles+"}";sd+=x19+" li a.iactive {"+dto.main_item_active_styles+"}";sd+=x19+" ul li a.iactive{"+dto.subs_item_active_styles+"}";sd+=x19+" li a.iactive div img{visibility:visible;}";ulp="";ulmp="";
if(ulm_ie && !ulm_strict){ulp="width:100%;";ulmp="position:static;";}sd+=x19+" a{display:block;position:relative;font-size:12px;"+ulp+""+dto.main_item_styles+"}";sd+=x19+" ul a{display:block;"+ulmp+" "+"font-size:12px;"+dto.subs_item_styles+"}";sd+=x19+" li{cursor:hand;cursor:pointer;}";document.write(sd+"</style>");}</script>
Indgår, så loader siden 9 gange?
Kan ses her:
http://cybersmile.dk/ocs/website/admin.php