gmx: switch-menue

Beitrag lesen

hallo,

hallo habe mir ein swicht-menue gemacht das aber nu  untereinander ist, ich hätte es gerne aber nebeneinander... .wie kann ich es machen ?

Vertikal mit der Gartenschere auseinanderschnipseln und horizontal wieder zusammenkleben (mit UHU).

Na gut, etwas ernsthafter: Glaubst du denn, daß man aus deiner Fragestellung auch nur ansatzweise erfahren könnte, was du da gemacht hast? Um dir deine Frage zu beantworten, muß man den Code kennen, den du dir gebastelt hast. Also mach ihn irgendwie zugänglich.

Grüße aus Berlin

Christoph S.

hi, sry hatte ich vergessen  ::::::::::

:::::::::::::::::::::: hier nun meine " bastelei"

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

<style type="text/css"> .menutitle{ cursor:pointer; margin-bottom: 5px; background-color:#blue; color:#blue; width:140px; padding:2px; text-align:center; font-weight:bold; ///border:1px solid #blue;/* */ }

.submenu{ margin-bottom: 0.5em; } </style>

<script type="text/javascript">

/***********************************************

  • Switch Menu script- by Martial B of http://getElementById.com/
  • Modified by Dynamic Drive for format & NS4/IE4 compatibility
  • Visit http://www.dynamicdrive.com/ for full source code ***********************************************/

var persistmenu="n" //"yes" or "no". Make sure each SPAN content contains an incrementing ID starting at 1 (id="sub1", id="sub2", etc) var persisttype="sitewide" //enter "sitewide" for menu to persist across site, "local" for this page only

if (document.getElementById){ //DynamicDrive.com change document.write('<style type="text/css">\n') document.write('.submenu{display: none;}\n') document.write('</style>\n') }

function SwitchMenu(obj){  if(document.getElementById){  var el = document.getElementById(obj);  var ar = document.getElementById("masterdiv").getElementsByTagName("span"); //DynamicDrive.com change   if(el.style.display != "block"){ //DynamicDrive.com change    for (var i=0; i<ar.length; i++){     if (ar[i].className=="submenu") //DynamicDrive.com change     ar[i].style.display = "none";    }    el.style.display = "block";   }else{    el.style.display = "none";   }  } }

function get_cookie(Name) { var search = Name + "=" var returnvalue = ""; if (document.cookie.length > 0) { offset = document.cookie.indexOf(search) if (offset != -1) { offset += search.length end = document.cookie.indexOf(";", offset); if (end == -1) end = document.cookie.length; returnvalue=unescape(document.cookie.substring(offset, end)) } } return returnvalue; }

function onloadfunction(){ if (persistmenu=="yes"){ var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname var cookievalue=get_cookie(cookiename) if (cookievalue!="") document.getElementById(cookievalue).style.display="block" } }

function savemenustate(){ var inc=1, blockid="" while (document.getElementById("sub"+inc)){ if (document.getElementById("sub"+inc).style.display=="block"){ blockid="sub"+inc break } inc++ } var cookiename=(persisttype=="sitewide")? "switchmenu" : window.location.pathname var cookievalue=(persisttype=="sitewide")? blockid+";path=/" : blockid document.cookie=cookiename+"="+cookievalue }

if (window.addEventListener) window.addEventListener("load", onloadfunction, false) else if (window.attachEvent) window.attachEvent("onload", onloadfunction) else if (document.getElementById) window.onload=onloadfunction

if (persistmenu=="yes" && document.getElementById) window.onunload=savemenustate

</script>

<!-- Keep all menus within masterdiv--> <div id="masterdiv"> <font color="blue"size="3">      <div class="menutitle" onclick="SwitchMenu('sub1')">ALLGEMEINES</font></a></div> <span class="submenu" id="sub1">

  • <a href="revised.htm"><font color=DB7093><b><a target=MAIN <href="http://www.myleague.com/php/page.php?p=signup&t=myleague&lng=eng&l=zockermafia&g=strategy&svr=cgi6&pl=" ><font color="CC3366" size="3"><b>Anmeldung</font></a><br><b></a>   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href="http://freenet-homepage.de/zockermafia//content.htm" ><font color="CC3366" size="3"><b>Ligaseite</font></a><br></b></a> </span> <font color="blue"size="3">  <div class="menutitle" onclick="SwitchMenu('sub2')">LIGA</font></div> <span class="submenu" id="sub2">   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/php/page.php?p=report&t=myleague&lng=eng&l=zockermafia&g=strategy&svr=cgi6&pl=><font color="CC3366" size="3"><b>Report Loss</font></a></b></a><br>   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/php/page.php?p=plsearch&t=myleague&lng=eng&l=zockermafia&g=strategy&svr=cgi6&pl=><font color="CC3366" size="3"><b>Suche Spieler</font></a></b></a><br>   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/php/page.php?p=search&t=myleague&lng=eng&l=zockermafia&g=strategy&svr=cgi6&pl=><font color="CC3366" size="3"><b>T&auml;gl. Resultate</font></a></b></a><br>   - <a href="morezone/"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/php/page.php?p=lad_frame&t=myleague&lng=eng&l=zockermafia&g=strategy&svr=cgi6&pl=><font color="CC3366" size="3"><b>Rangliste</font></a></b></a><br>
  • <a href="morezone/"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/php/page.php?p=rankcalc&t=myleague&lng=eng&l=zockermafia&g=strategy&svr=cgi6&pl=><font color="CC3366" size="3"><b>Rangkalkulator</font></a></b></a><br
  • <a href="morezone/"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/php/page.php?p=challenge&t=myleague&lng=eng&l=zockermafia&g=strategy&svr=cgi6&pl=><font color="CC3366" size="3">Herausforderung</font></a></b></a>  </span> <font color="blue"size="3">  <div class="menutitle" onclick="SwitchMenu('sub3')">TURNIERE</font></a></div>  <span class="submenu" id="sub3">   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://www4.igl.net/cgi-bin/tourney/gencalendar.cgi?path=zockermafia><font color="CC3366" size="3"><b><b>Turnierkalender</font></a></b></a><br>   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://cgi6.igl.net/ts/buxlog.php?l=zockermafia><font color="CC3366" size="3"><b>Turnierbux</font></a></b></a><br>                 - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://cgi6.igl.net/ts/displaywinners.php?path=zockermafia><font color="CC3366" size="3"><b>Gewinner</font></a></b></a><br>   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://cgi6.igl.net/ts/tdlisting.php?l=zockermafia><font color="CC3366" size="3"><b>Turnierleiter </font></a></b></a><br>   - <a href="morezone/"><font color=DB7093><b><font color="CC3366" size="3"><b> JUMP</font> <input size=4 name=trn type=text style="background-color:FFCC66"  ;height: 18;border-style: dashed; border-width: thin;font-family:Arial;font-size:8pt;color:#cecece;"></font></b></a>  </span> <font color="blue"size="3">  <div class="menutitle" onclick="SwitchMenu('sub4')">GEMEINSCHAFT</font></div>  <span class="submenu" id="sub4">   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/php/page.php?p=session&t=myleague&lng=eng&l=zockermafia&g=strategy&svr=cgi6&pl=><font color="CC3366" size="3"><b>Wer ist online</font></a></b></a><br>

</span>  <font color="blue"size="3">  <div class="menutitle" onclick="SwitchMenu('sub5')">ACCOUNT</font></div>  <span class="submenu" id="sub5">   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/php/page.php?p=edit&t=myleague&lng=eng&l=zockermafia&g=strategy&svr=cgi6&pl=><font color="CC3366" size="3"><b>Mein Account</font></a></b></a><br>                 - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://www.igl.net/gold/?premium=zockermafia><font color="CC3366" size="3"><b>Member-Info</font></a></b></a><br>   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/bux/?ldr=zockermafia><font color="CC3366" size="3"><b>Ladderbux</font></a></b></a><br>   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/php/page.php?p=lost&t=myleague&lng=eng&l=zockermafia&g=strategy&svr=cgi6&pl=><font color="CC3366" size="3"><b>Passwort verloren</font></a></b></a><br>   - <a href="morezone/"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/php/page.php?p=withdraw&t=myleague&lng=eng&l=zockermafia&g=strategy&svr=cgi6&pl=><font color="CC3366" size="3"><b>Sich l&ouml;schen</font></a></b></a>  </span>

<font color="blue"size="3">   <div class="menutitle" onclick="SwitchMenu('sub6')">SUPPORT</font></div>  <span class="submenu" id="sub6">   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/php/page.php?p=unrep&t=myleague&lng=eng&l=zockermafia&g=strategy&svr=cgi6&pl=><font color="CC3366" size="3"><b>unrep. Match</font></a></b></a><br>   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/php/page.php?p=mail&t=myleague&lng=eng&l=zockermafia&g=strategy&svr=cgi6&pl=><font color="CC3366" size="3"><b>Kontakt Admin</font></a></b></a><br>   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/php/page.php?p=admins&t=myleague&lng=eng&l=zockermafia&g=strategy&svr=cgi6&pl=><font color="CC3366" size="3"><b>Admin-Liste</font></a></b></a>

</span>  <font color="blue"size="3">    <div class="menutitle" onclick="SwitchMenu('sub7')">COMPANY</font></div>  <span class="submenu" id="sub7">   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/moreinfo/linktous.html><font color="CC3366" size="3"><b>Linkt to us</font></a></b></a><br>   - <a href="revised.htm"><font color=DB7093><b><a target=_top href=/corp/><font color="CC3366" size="3"><b>More info</font></a></b></a><br>   - <a href="revised.htm"><font color=DB7093><b><a target=MAIN href=http://www.igl.net/gold/?premium=zockermafia><font color="CC3366" size="3"><b>Buy Membership</font></a></b></a><br>   - <a href="morezone/"><font color=DB7093><b><a target=MAIN href=http://www.myleague.com/premium/salessupport.php><font color="CC3366" size="3"><b>Pemium Support</font></a></b></a>  </span>

</div>