Autor Zpráva
Miraj23
Profil
Ahoj potřeboval bych pomoc jsem uplný nováček a už si nevím rady.Potřebuju meníčko horizontálně a už nevím co s tím vyzkoušel jsem snad všechyn věci co jsem našel :)
Nic nefunguje proot budu rád za každou radu díky moc.


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<style type="text/css">
body
{
background-color: #000000;
color: #FFFFFF;
}
</style>
<style type="text/css">
p, span, div, ol, ul, li, td, button, input, textarea, form
{
margin: 0;
padding: 0;
}
a
{
color: #FFFFFF;
outline: none;
text-decoration: underline;
}
a:visited
{
color: #C8D7EB;
}
a:active
{
color: #C8D7EB;
}
a:hover
{
color: #376BAD;
text-decoration: underline;
}

</style>
</head>
<body>
<div id="Html1" style="position:absolute;left:308px;top:97px;width:478px;height:178px;z-index:0">
<style type="text/css">
.menutitle {
text-align:center;
width: 100%;
font-family: Arial, Helvetica, sans-serif;
font-size:10px; </*pismo*/>
font-weight: 500;
font-style:bold;
text-decoration: none;
}
.menutitle {
float: none;
padding: 9px 10px;
text-decoration: none;
border-right-width: 3px;
border-right-style: 3px;
border-right-color: #000000;
cursor:pointer;
margin-bottom: 20px;
background-color:#3366CC;
color:#FFFFFF;
width:75px;
font-weight:bold;
/*/*/border:2px solid #FFFFFF;/* */
}
.submenu{
margin-bottom: 0.5em;
color:#000000;

}
</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="yes" //"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">

<div class="menutitle" onclick="SwitchMenu('sub1')">Hlavní Stránka</div>
<span class="submenu" id="sub1">
<a href="new.htm">Domů</a>
<a href="http://banlist.cszona.eu/">Banlist</a>
<a href="http://psychostats.cszona.eu/">Psychostats</a>
<a href="http://cszona.eu/pravidla.html">Pravidla</a>
<a href="http://www.cszona.eu/pages/vip/vyhody.php">VIP Výhody</a>
<a href="http://souteze.cszona.eu/">Soutěže</a>
</span>

<div class="menutitle" onclick="SwitchMenu('sub2')">VIP Systém</div>
<span class="submenu" id="sub2">
<a href="http://cszona.eu/pages/vip/vyhody.php">Výhody</a>
<a href="http://cszona.eu/vipaktivace.html">Aktivace</a>
<a href="http://cszona.eu/vippodpora.html">Podpora</a>
<a href="http://cszona.eu/souteze/">VIP Zdarma</a>
</span>

<div class="menutitle" onclick="SwitchMenu('sub3')">Spolupráce</div>
<span class="submenu" id="sub3">
<a href="http://cszona.eu/osponzorech.html">Sponzoři</a>
<a href="http://cszona.eu/opartnerech.html">Partneři</a>
<a href="http://cszona.eu/spoluprace.html"><---></a>
<a href="http://cszona.eu/chcisponzorovat.html">Sponzoring</a>
<a href="http://cszona.eu/chcibytpartner.html/">Partnerství</a>
<a href="http://cszona.eu/podportenas.html">Podpořte Nás</a>
</span>

<div class="menutitle" onclick="SwitchMenu('sub4')">Soutěže</div>
<span class="submenu" id="sub4">
<a href="http://cszona.eu/souteze.html">Soutěže</a>
<a href="http://cszona.eu/soutezeceny.html">Ceny</a>
<a href="http://cszona.eu/pravidla.html">Ceny</a>

</span>
<div class="menutitle" onclick="SwitchMenu('sub5')">Fórum</div>
<span class="submenu" id="sub5">
<a href="http://forum.cszona.eu/">Fórum</a>

</span>

</div></div>
</body>
</html>

Vaše odpověď

Mohlo by se hodit

Neumíte-li správně určit příčinu chyby, vkládejte odkazy na živé ukázky.
Užíváte-li nějakou cizí knihovnu, ukažte odpovídajícím, kde jste ji vzali.

Užitečné odkazy:

Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0