Also, jeder Menüpunkt hat einen bestimmten Wert (1,2,3,4, usw)
Wenn ich dich richtig verstanden habe, dann kannst du hiermit evtl. was anfangen:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<script type="text/javascript">
[code lang=javascript] function zeigeNaviWert(navID) {
document.getElementById("showID").value = navID;
}
</script>
<style type="text/css">
~~~css
body { margin:0px; padding:0px; }
li { cursor:pointer; }
#navi { text-align:center; }
#showID { width:150px; height:20px; }
</style>
</head>
<body>
<div id="navi">
<ul>
<li id="1" onclick="zeigeNaviWert(this.id);">Thema 1</li>
<li id="2" onclick="zeigeNaviWert(this.id);">Thema 2</li>
<li id="3" onclick="zeigeNaviWert(this.id);">Thema 3</li>
<li id="4" onclick="zeigeNaviWert(this.id);">Thema 4</li>
<li id="5" onclick="zeigeNaviWert(this.id);">Thema 5</li>
</ul><br /><br />
<input type="text" value="" id="showID" />
</div>
</body>
</html>
[/code]