---
title: "Funkar ej i NS"
type: "forum-thread"
url: "https://www.webforum.nu/amne/javascript/43011-funkar-ej-i-ns"
topic: "JavaScript"
topic_url: "https://www.webforum.nu/amne/javascript"
author: "Asa"
published: "2002-05-03T15:10:15.000Z"
updated: "2002-05-03T15:10:15.000Z"
replies: 0
views: 169
page: 1
pages: 1
language: "sv-SE"
site: "webForum — webforum.nu"
rights: "Upphovsrätten till varje inlägg tillhör dess författare."
attribution: "Citera som: webForum, https://www.webforum.nu/amne/javascript/43011-funkar-ej-i-ns"
---

# Funkar ej i NS

## #1 — Asa, 2002-05-03T15:10Z

Nån som vet vad man ska lägga till i denna kod för att menyn ska funka! Länken till han som gjort scriptet:

<http://www.spelaroll.net/cheguelin/dropmenu-designer/>

\<html\>
 \<head\>
 
\<script language="JavaScript"\>
/\*
By Cheguelin
Copyright © 2002 Peter Wengelin "Cheguelin". ARR.

Dropmenu v1.5 created with DropMenu-Designer v1.5.

Get your own dropdown-menu, visit:
<http://www.spelaroll.net/cheguelin/dropmenu-designer>

This script may be used as long as you keep this
text inside the comment untoughed.

mail: <cheguelin@hotmail.com>
url:  <http://www.spelaroll.net/cheguelin>
\*/

window.onload = function() {
var a = document.getElementsByTagName("A");
	for(var i = 0; i \< a.length; i++) {
		a*.hideFocus = "true";
	}
}

function show(o) {
	o.nextSibling.style.visibility = "visible";
}
function hide(o) {
	if(!o.contains(event.toElement) && o.previousSibling.stay != true) {
		o.style.visibility = "hidden";
	}
}
function toggleStay(o) {
	o.stay = !o.stay;
	if(o.stay == true) {
		o.firstChild.innerHTML = 5;
	} else {
		o.firstChild.innerHTML = 6;
	}
}
\</script\>
 
\<style\>
@media all {
a	{
	color:#006699;
	text-decoration:underline;
}
a:hover {
	text-decoration:none;
}
body {
	margin:10px;
	cursor:default;
	font:8pt Verdana;
}
div {
	cursor:hand;
}
div.parents {
	background-color:#004477;
	border-right:1px solid #005588;
	color:#ffffff;
	filter:progid:DXImageTransform.Microsoft.Gradient(gradientType=0,startColorStr=#006699,endColorStr=#004477);
	font:8pt Verdana;
	padding:2px 3px;
	width:125px;
}
div.parents span.arrow {
	clip:rect(8 8 11 2);
	font:10px Webdings;
	float:right;
	vertical-align:middle;
}
div.children {
	background-color:#006699;
	border:1px solid #005588;
	border-top:none;
	border-bottom:none;
	font:8pt Verdana;
	position:absolute;
	visibility:hidden;
	width:125px;
}
div.children a {
	border-bottom:1px solid #005588;
	color:#ffffff;
	text-decoration:none;
	padding:4px 2px;
	width:100%;
}
div.children a:hover {
	background-color:#efefef;
	color:#006699;
}
}
\</style\>
 
 \</head\>
 \<body\>
 
\<table border="0" cellpadding="0" cellspacing="0"\>
 \<tr\>
  \<td\>
  
  \<div class="parents" onclick="toggleStay(this);" onmouseout="hide(this.nextSibling);" onmouseover="show(this);"\>\<span class="arrow"\>6\</span\>Topic 1\</div\>
  \<div class="children" onmouseout="hide(this);"\>
   \<a href="javascript:void(0);"\>Link 1:1\</a\>
   \<a href="javascript:void(0);"\>Link 1:2\</a\>
   \<a href="javascript:void(0);"\>Link 1:3\</a\>
   \<a href="javascript:void(0);"\>Link 1:4\</a\>
  \</div\>
  
  \</td\>
  \<td\>
  
  \<div class="parents" onclick="toggleStay(this);" onmouseout="hide(this.nextSibling);" onmouseover="show(this);"\>\<span class="arrow"\>6\</span\>Topic 2\</div\>
  \<div class="children" onmouseout="hide(this);"\>
   \<a href="javascript:void(0);"\>Link 2:1\</a\>
   \<a href="javascript:void(0);"\>Link 2:2\</a\>
   \<a href="javascript:void(0);"\>Link 2:3\</a\>
   \<a href="javascript:void(0);"\>Link 2:4\</a\>
  \</div\>
  
  \</td\>
  \<td\>
  
  \<div class="parents" onclick="toggleStay(this);" onmouseout="hide(this.nextSibling);" onmouseover="show(this);"\>\<span class="arrow"\>6\</span\>Topic 3\</div\>
  \<div class="children" onmouseout="hide(this);"\>
   \<a href="javascript:void(0);"\>Link 3:1\</a\>
   \<a href="javascript:void(0);"\>Link 3:2\</a\>
   \<a href="javascript:void(0);"\>Link 3:3\</a\>
   \<a href="javascript:void(0);"\>Link 3:4\</a\>
  \</div\>
  
  \</td\>
 \</tr\>
\</table\>
 
 \</body\>
\</html\>*

Permalänk: https://www.webforum.nu/p/43011

---

Tråden på webben: https://www.webforum.nu/amne/javascript/43011-funkar-ej-i-ns
