Div Menue ein und ausblenden

Borgforum

Mitglied
Hallöchen,

ich hab vor kurzem mich mal an die divs gewagt. Jetz bin ich an ein Problem gestoßen.

Es geht um dieses Menue (Textlinks werden noch ersetzt).

vorher

Wenn mann auf den "Link 2" klickt, soll das Menue so aussehen:

nachher

Also, irgendwie müssen die Links eingeblendet werden, oder so ...

... es soll keine Seperate extra seite werden ... möglichst ;-)

Hier mal der Seiten code:

HTML:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>
<link href="css/style.css" rel="stylesheet" type="text/css" />

</head>
<body>

<div class="main">
<div class="logo"></div>
<div class="menue">

<div class="link"><a href="#">link</a></div>
<div class="gradient"></div>
<div class="link"><a href="#">link 2</a></div>

<div class="menue_klein">

<div class="link_klein"><a href="#">link_klein</a></div>
<div class="link_klein"><a href="#">link_klein</a></div>
<div class="link_klein"><a href="#">link_klein</a></div>
<div class="link_klein"><a href="#">link_klein</a></div>
<div class="link_klein"><a href="#">link_klein</a></div>
<div class="link_klein"><a href="#">link_klein</a></div>
<div class="link_klein"><a href="#">link_klein</a></div>
<div class="link_klein"><a href="#">link_klein</a></div>

</div>

<div class="gradient"></div>
<div class="link"><a href="#">link</a></div>
<div class="gradient"></div>
<div class="link"><a href="#">link</a></div>
<div class="gradient"></div>
<div class="link"><a href="#">link</a></div>
<div class="gradient"></div>
<div class="link"><a href="#">link</a></div>
<div class="gradient"></div>
<div class="link"><a href="#">link</a></div>

</div>

<div class="headtext"></div>
<div class="content"></div>
<div class="bottom">© 2002 - 2006 Heichlinger Druckerei GmbH</div>

</div>

</body>
</html>

und hier der css style:

Code:
body,td,th {
	background-color: #000000;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FFFFFF;
	
}
.main {
	border: 1px solid #FFFFFF;
	position: absolute;
	margin-left: -378px;
	top: 50%;
	margin-top: -339px;
	height: 678px;
	width: 756px;
	left: 50%;
}
.content {
	padding: 10px;
	height: 553px;
	width: 553px;
	border: 1px solid #FFFFFF;
	left: 164px;
	position: absolute;
	top: 68px;
	background-image: url(../img/test.jpg);
	background-repeat: no-repeat;
	background-position: 10px 10px;
	background-color: #000000;
}
.logo {
	background-image: url(../img/logo.gif);
	background-repeat: no-repeat;
	height: 117px;
	width: 117px;
	top: -30px;
	position: absolute;
	left: 23px;
}
.headtext {
	background-image: url(../img/headtext.gif);
	background-repeat: no-repeat;
	height: 21px;
	width: 502px;
	top: 20px;
	position: absolute;
	left: 164px;
}
.bottom {
	position: absolute;
	left: 164px;
	width: 500px;
	top: 652px;
}
a:link {
	color: #005DA8;
	text-decoration: none;
}
a:hover {
	color: #0099FF;
	text-decoration: none;
}
a:visited {
	color: #005DA8;
	text-decoration: none;
}
a:active {
	color: #0099FF;
	text-decoration: none;
}
.gradient {
	background-image: url(../img/gradient.gif);
	background-repeat: no-repeat;
	height: 9px;
	width: 163px;
}
.menue {
	height: 400px;
	width: 163px;
	top: 150px;
	position: absolute;
	left: 1px;
}
.link {
	height: 28px;
	width: 163px;
}
.link_klein {
	height: 24px;
	width: 163px;
}
.menue_klein {
	height: 192px;
	width: 163px;
}

Ich würde mich über hilfe freuen.

MfG Nick
 
Prima, danke, soweit funktioniert das schön ^^

zu sehen hier: Klick

HTML:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>

<script type="text/javascript">
function swap(targetID) {

      obj = document.getElementById(targetID);
      obj.style.display = (obj.style.display == 'none') ? 'block' : 'none';
  }

</script> 

<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body>

<div class="main">
<div class="logo"></div>
<div class="menue">

<div class="link"><a href="#">link</a></div>
<div class="gradient"></div>
<div class="link"><a href="#" onclick="swap('titel1')">link 1</a></div>

<div id="titel1" style="display:none;"><?php echo "inhalt" ; ?></div> 

<div class="gradient"></div>

<div class="link"><a href="#">link</a></div>
<div class="gradient"></div>
<div class="link"><a href="#">link</a></div>
<div class="gradient"></div>
<div class="link"><a href="#">link</a></div>
<div class="gradient"></div>
<div class="link"><a href="#">link</a></div>
<div class="gradient"></div>
<div class="link"><a href="#">link</a></div>

</div>

<div class="headtext"></div>
<div class="content"></div>
<div class="bottom">© 2002 - 2006 Heichlinger Druckerei GmbH</div>

</div>

</body>
</html>

jetz sollte aber das hier eingeblendet werden:

HTML:
<div class="link_klein"><a href="#">link_klein</a></div>
<div class="link_klein"><a href="#">link_klein</a></div>
<div class="link_klein"><a href="#">link_klein</a></div>
<div class="link_klein"><a href="#">link_klein</a></div>
<div class="link_klein"><a href="#">link_klein</a></div>
<div class="link_klein"><a href="#">link_klein</a></div>
<div class="link_klein"><a href="#">link_klein</a></div>
<div class="link_klein"><a href="#">link_klein</a></div>

wie mach ich das?

Und zum zweiten, soll das untermenue, wenn ich auf andere Links klicke geschlossen werden. Ich weiß zwar, das in dem anderen Thread ein script zum ausblenden stzeht, aber das klappt irgendwie nur, wenn ich die anderen Links auch mit untermenues ausstatte, aber das will ich ja nicht ^^

Also, wenn das irgendwie gehen könnte, wär das richtig schön ^^

danch käme ich schon zum nexten problem, aber später mehr ...
 
Basierend auf deinem zuerst gezeigten HTML-Quelltext müßte das dann so aussehen:

HTML:
<div class="menue">

<div class="link"><a href="#">link</a></div>
<div class="gradient"></div>
<div class="link"><a href="#" onclick="swap('titel1')">link 2</a></div>

<div id="titel1" class="menue_klein" style="display:none;">
    <div class="link_klein"><a href="#">link_klein</a></div>
    <div class="link_klein"><a href="#">link_klein</a></div>
    <div class="link_klein"><a href="#">link_klein</a></div>
    <div class="link_klein"><a href="#">link_klein</a></div>
    <div class="link_klein"><a href="#">link_klein</a></div>
    <div class="link_klein"><a href="#">link_klein</a></div>
    <div class="link_klein"><a href="#">link_klein</a></div>
</div>

...

</div>
 
Fein, soweit klappt es ^^

zwei Sachen hätte ich da noch:

1. ich möchte die Links, die ich angeklickt habe, das die im Rollover Blau bleiben (kann ich den Rollover eigentlich auch mit css machen?)

2. Im IE und im Firefox stimmen die Abstände jeweils nicht (also sind unterschiedlich)

3. Das Untermenue soll beim Klick auf andere Links wieder schließen ...

Der aktuelle Code:

HTML:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>

<script type="text/javascript">
<!--
function swap(targetID) {

      obj = document.getElementById(targetID);
      obj.style.display = (obj.style.display == 'none') ? 'block' : 'none';
  }

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script> 

<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body onload="MM_preloadImages('img/m_1_b.gif','img/m_2_b.gif','img/m_3_b.gif','img/m_4_b.gif','img/m_5_b.gif','img/m_6_b.gif','img/m_7_b.gif','img/u_1_b.gif','img/u_2_b.gif','img/u_3_b.gif','img/u_4_b.gif','img/u_5_b.gif','img/u_6_b.gif','img/u_7_b.gif','img/u_8_b.gif')">

<div class="main">
<div class="logo"></div>
<div class="menue">

<div class="link"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('m_1','','img/m_1_b.gif',1)"><img src="img/m_1_a.gif" alt="Home" name="m_1" width="163" height="28" border="0" id="m_1" /></a></div>
<div class="gradient"></div>
<div class="link"><a href="#" onclick="swap('titel1')" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','img/m_2_b.gif',1)"><img src="img/m_2_a.gif" alt="Wohlfuel" name="Image2" width="163" height="28" border="0" id="Image2" /></a></div>

<div id="titel1" class="menue_klein" style="display:none;">
    <div class="space"></div>
    <div class="link_klein"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','img/u_1_b.gif',1)"><img src="img/u_1_a.gif" alt="dfsadg" name="Image8" width="163" height="24" border="0" id="Image8" /></a></div>
    <div class="link_klein"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','img/u_2_b.gif',1)"><img src="img/u_2_a.gif" alt="hkhk" name="Image9" width="163" height="24" border="0" id="Image9" /></a></div>
    <div class="link_klein"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','img/u_3_b.gif',1)"><img src="img/u_3_a.gif" alt="klhl" name="Image10" width="163" height="24" border="0" id="Image10" /></a></div>
    <div class="link_klein"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','img/u_4_b.gif',1)"><img src="img/u_4_a.gif" alt="jlbj" name="Image11" width="163" height="24" border="0" id="Image11" /></a></div>
    <div class="link_klein"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','img/u_5_b.gif',1)"><img src="img/u_5_a.gif" alt="ghlh" name="Image12" width="163" height="24" border="0" id="Image12" /></a></div>
    <div class="link_klein"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','img/u_6_b.gif',1)"><img src="img/u_6_a.gif" alt="ghk" name="Image13" width="163" height="24" border="0" id="Image13" /></a></div>
    <div class="link_klein"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','img/u_7_b.gif',1)"><img src="img/u_7_a.gif" alt="hjljkl" name="Image14" width="163" height="24" border="0" id="Image14" /></a></div>
    <div class="link_klein"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image15','','img/u_8_b.gif',1)"><img src="img/u_8_a.gif" alt="gfjgjg" name="Image15" width="163" height="24" border="0" id="Image15" /></a></div>
    <div class="space"></div>
</div> 

<div class="gradient"></div>

<div class="link"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','img/m_3_b.gif',1)"><img src="img/m_3_a.gif" alt="dg" name="Image3" width="163" height="28" border="0" id="Image3" /></a></div>
<div class="gradient"></div>
<div class="link"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','img/m_4_b.gif',1)"><img src="img/m_4_a.gif" alt="dffdh" name="Image4" width="163" height="28" border="0" id="Image4" /></a></div>
<div class="gradient"></div>
<div class="link"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','img/m_5_b.gif',1)"><img src="img/m_5_a.gif" alt="dfhfh" name="Image5" width="163" height="28" border="0" id="Image5" /></a></div>
<div class="gradient"></div>
<div class="link"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','img/m_6_b.gif',1)"><img src="img/m_6_a.gif" alt="gfjgfj" name="Image6" width="163" height="28" border="0" id="Image6" /></a></div>
<div class="gradient"></div>
<div class="link"><a href="#" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','img/m_7_b.gif',1)"><img src="img/m_7_a.gif" alt="dfhh" name="Image7" width="163" height="28" border="0" id="Image7" /></a></div>

</div>

<div class="headtext"></div>
<div class="content"></div>
<div class="bottom">© 2002 - 2006 Heichlinger Druckerei GmbH</div>

</div>

</body>
</html>

und die CSS

Code:
body,td,th {
	background-color: #000000;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FFFFFF;
	
}
.main {
	border: 1px solid #FFFFFF;
	position: absolute;
	margin-left: -378px;
	top: 50px;
	height: 678px;
	width: 756px;
	left: 50%;
}
.content {
	padding: 10px;
	height: 553px;
	width: 553px;
	border: 1px solid #FFFFFF;
	left: 164px;
	position: absolute;
	top: 68px;
	background-image: url(../img/test.jpg);
	background-repeat: no-repeat;
	background-position: 10px 10px;
	background-color: #000000;
}
.logo {
	background-image: url(../img/logo.gif);
	background-repeat: no-repeat;
	height: 117px;
	width: 117px;
	top: -30px;
	position: absolute;
	left: 23px;
}
.headtext {
	background-image: url(../img/headtext.gif);
	background-repeat: no-repeat;
	height: 21px;
	width: 502px;
	top: 20px;
	position: absolute;
	left: 164px;
}
.bottom {
	position: absolute;
	left: 164px;
	width: 500px;
	top: 652px;
}
a:link {
	color: #005DA8;
	text-decoration: none;
}
a:hover {
	color: #0099FF;
	text-decoration: none;
}
a:visited {
	color: #005DA8;
	text-decoration: none;
}
a:active {
	color: #0099FF;
	text-decoration: none;
}
.gradient {
	background-image: url(../img/gradient.gif);
	background-repeat: no-repeat;
	height: 9px;
	width: 163px;
}
.menue {
	height: 500px;
	width: 163px;
	top: 135px;
	position: absolute;
	left: 1px;
}
.link {
	height: 28px;
	width: 163px;
}
.link_klein {
	height: 24px;
	width: 163px;
}
a {
display:block;
}
#titel1, #titel2 { 
width:163px; 
height:202px; 
}
.space {
	height: 5px;
	width: 163px;
}
.menue_klein {
	height: 202px;
	width: 163px;
}
 
Hallo,

ich mal wieder ... Bin etwas weiter gekommen, jetz hab ich aber wieder Probleme mit dem menue:

Neuer Link: http://www.rednick.de/druckerei/website/

Ich habe folgende Vorgaben:

- der Link, auf den ich geklickt hab, sollte Blau bleiben und nicht anklickbar sein

- das Untermenue sollte "offen" bleiben ^^

- Das Untermenue sollte NUR wieder zu gehen, wenn einer der anderen "äußeren" Links gedrückt wird

Danke im Vorraus

PS.: falls sich jemand wundert, ich bin Grafiker und hab mich etwas "übernommen", zieh das jetz aber duch ohne Programmierer, sonst wird der Kunde böse ;-)

Code:

HTML:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Unbenanntes Dokument</title>

<script type="text/javascript">
<!--
function swap(targetID) {

      obj = document.getElementById(targetID);
      obj.style.display = (obj.style.display == 'none') ? 'block' : 'none';
  }

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}
//-->
</script> 

<link href="css/style.css" rel="stylesheet" type="text/css" />
</head>
<body onload="MM_preloadImages('img/m_1_b.gif','img/m_2_b.gif','img/m_3_b.gif','img/m_4_b.gif','img/m_5_b.gif','img/m_6_b.gif','img/m_7_b.gif','img/u_1_b.gif','img/u_2_b.gif','img/u_3_b.gif','img/u_4_b.gif','img/u_5_b.gif','img/u_6_b.gif','img/u_7_b.gif','img/u_8_b.gif')">

<div class="main">
<div class="logo"></div>
<div class="menue">

<div class="link"><a href="?open=home" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('m_1','','img/m_1_b.gif',1)"><img src="img/m_1_a.gif" alt="Home" name="m_1" width="163" height="28" border="0" id="m_1" /></a></div>
<div class="gradient"></div>
<div class="link"><a href="?open=wohlfuel" onclick="return !swap('titel1')" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image2','','img/m_2_b.gif',1)"><img src="img/m_2_a.gif" alt="Wohlfuel" name="Image2" width="163" height="28" border="0" id="Image2" /></a></div>

<div id="titel1" class="menue_klein" style="display:none;">
    <div class="space"></div>
    <div class="link_klein"><a href="?open=reflex" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image8','','img/u_1_b.gif',1)"><img src="img/u_1_a.gif" alt="dfsadg" name="Image8" width="163" height="24" border="0" id="Image8" /></a></div>
    <div class="link_klein"><a href="?open=erholung" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image9','','img/u_2_b.gif',1)"><img src="img/u_2_a.gif" alt="hkhk" name="Image9" width="163" height="24" border="0" id="Image9" /></a></div>
    <div class="link_klein"><a href="?open=glanz" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image10','','img/u_3_b.gif',1)"><img src="img/u_3_a.gif" alt="klhl" name="Image10" width="163" height="24" border="0" id="Image10" /></a></div>
    <div class="link_klein"><a href="?open=waerme" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image11','','img/u_4_b.gif',1)"><img src="img/u_4_a.gif" alt="jlbj" name="Image11" width="163" height="24" border="0" id="Image11" /></a></div>
    <div class="link_klein"><a href="?open=schlaf" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image12','','img/u_5_b.gif',1)"><img src="img/u_5_a.gif" alt="ghlh" name="Image12" width="163" height="24" border="0" id="Image12" /></a></div>
    <div class="link_klein"><a href="?open=urlaub" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image13','','img/u_6_b.gif',1)"><img src="img/u_6_a.gif" alt="ghk" name="Image13" width="163" height="24" border="0" id="Image13" /></a></div>
    <div class="link_klein"><a href="?open=lebendig" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image14','','img/u_7_b.gif',1)"><img src="img/u_7_a.gif" alt="hjljkl" name="Image14" width="163" height="24" border="0" id="Image14" /></a></div>
    <div class="link_klein"><a href="?open=erfuellung" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image15','','img/u_8_b.gif',1)"><img src="img/u_8_a.gif" alt="gfjgjg" name="Image15" width="163" height="24" border="0" id="Image15" /></a></div>
    <div class="space"></div>
</div> 

<div class="gradient"></div>

<div class="link"><a href="?open=produkte" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image3','','img/m_3_b.gif',1)"><img src="img/m_3_a.gif" alt="dg" name="Image3" width="163" height="28" border="0" id="Image3" /></a></div>
<div class="gradient"></div>
<div class="link"><a href="?open=referenzen" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image4','','img/m_4_b.gif',1)"><img src="img/m_4_a.gif" alt="dffdh" name="Image4" width="163" height="28" border="0" id="Image4" /></a></div>
<div class="gradient"></div>
<div class="link"><a href="?open=finden" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image5','','img/m_5_b.gif',1)"><img src="img/m_5_a.gif" alt="dfhfh" name="Image5" width="163" height="28" border="0" id="Image5" /></a></div>
<div class="gradient"></div>
<div class="link"><a href="?open=kontakt" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image6','','img/m_6_b.gif',1)"><img src="img/m_6_a.gif" alt="gfjgfj" name="Image6" width="163" height="28" border="0" id="Image6" /></a></div>
<div class="gradient"></div>
<div class="link"><a href="?open=impressum" onmouseout="MM_swapImgRestore()" onmouseover="MM_swapImage('Image7','','img/m_7_b.gif',1)"><img src="img/m_7_a.gif" alt="dfhh" name="Image7" width="163" height="28" border="0" id="Image7" /></a></div>

</div>

<div class="headtext"></div>
<div class="content">
  <?PHP
                    // Seite laden
                         if(!isset($_GET['open'])) $_GET['open'] = "home";                         
						       $file = $_GET['open'].".php";                         
                         if(file_exists($file)) include($file);
                         else include("error.php"); 
                         /*
                         if($open=="home") include("home.php");
						 
						 // content
						 
                         elseif($open=="wohlfuel") include("wohlfuel.php");
						 
						 elseif($open=="reflex") include("reflex.php");
						 elseif($open=="erholung") include("erholung.php");
						 elseif($open=="glanz") include("glanz.php");
						 elseif($open=="waerme") include("waerme.php");
						 elseif($open=="schlaf") include("schlaf.php");
						 elseif($open=="urlaub") include("urlaub.php");
						 elseif($open=="lebendig") include("lebendig.php");
						 elseif($open=="erfuellung") include("erfuellung.php");
						 
						 elseif($open=="produkte") include("produkte.php");
	         			 elseif($open=="referenzen") include("referenzen.php"); 
						 elseif($open=="finden") include("finden.php");                         
                         elseif($open=="kontakt") include("kontakt.php");                                         
                         elseif($open=="impressum") include("impressum.php");
						 
						 // error
						 
                         else include("error.php");   */                                                                      
                        ?>
</div>
<div class="bottom">© 2002 - 2006 Heichlinger Druckerei GmbH</div>

</div>

</body>
</html>

CSS:

Code:
body,td,th {
	background-color: #000000;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	color: #FFFFFF;
	
}
.main {
	border: 1px solid #FFFFFF;
	position: absolute;
	margin-left: -378px;
	top: 50px;
	height: 678px;
	width: 756px;
	left: 50%;
}
.content {
	padding: 10px;
	height: 553px;
	width: 553px;
	border: 1px solid #FFFFFF;
	left: 164px;
	position: absolute;
	top: 68px;
	overflow: auto;
	background-color:transparent;
}
.logo {
	background-image: url(../img/logo.gif);
	background-repeat: no-repeat;
	height: 117px;
	width: 117px;
	top: -30px;
	position: absolute;
	left: 23px;
}
.headtext {
	background-image: url(../img/headtext.gif);
	background-repeat: no-repeat;
	height: 21px;
	width: 502px;
	top: 20px;
	position: absolute;
	left: 164px;
}
.bottom {
	position: absolute;
	left: 164px;
	width: 500px;
	top: 652px;
}
a:link {
	color: #005DA8;
	text-decoration: none;
}
a:hover {
	color: #0099FF;
	text-decoration: none;
}
a:visited {
	color: #005DA8;
	text-decoration: none;
}
a:active {
	color: #0099FF;
	text-decoration: none;
}
.gradient {
	background-image: url(../img/gradient.gif);
	background-repeat: no-repeat;
	height: 9px;
	width: 163px;
}
.menue {
	height: 500px;
	width: 163px;
	top: 135px;
	position: absolute;
	left: 1px;
}
.link {
	height: 28px;
	width: 163px;
}
.link_klein {
	height: 24px;
	width: 163px;
}
a {
display:block;
}
#titel1, #titel2 { 
width:163px; 
height:202px; 
}
.space {
	height: 5px;
	width: 163px;
}
.menue_klein {
	height: 202px;
	width: 163px;
}
 
Zuletzt bearbeitet:
Lass die swap()-Funktion mal im Erfolgsfall ein „true“ zurückgeben und ändere den onclick-Attributwerte wie folgt:
HTML:
onclick="return !swap(…)"
 
Ähm, kannst du mir genauer erklären, wie du das meinst? Und welches meiner drei Stichpunkte behebt das?

PS.: hab in meinem Post darüber den HTML Code aktualisiert

PPS.: Versucht mal mich zu behandeln, als hätt ich davon nich viel Ahnung, bitte ;-)
 

Neue Beiträge

Zurück