Watusimann
Erfahrenes Mitglied
Hallo Gemeinde
Ich habe mir mal eine Navi gebaut, nur ich find sie relativ groß und ich denke, das dies etwas einfach zu handhaben ist
ich könnte mir vorstellen, das ein array evtl abhilfe schaffen könnte?
der Grundgedanke war halt, eine Navi zu erstellen, wo sich der Bereich indem man sich befindet nicht mehr anklicken läßt.
evtl hat einer ne Idee dazu? ich muß zugeben - ich komm mit den array´s noch nicht so wirklich klar *seufz*
Ich habe mir mal eine Navi gebaut, nur ich find sie relativ groß und ich denke, das dies etwas einfach zu handhaben ist
ich könnte mir vorstellen, das ein array evtl abhilfe schaffen könnte?
der Grundgedanke war halt, eine Navi zu erstellen, wo sich der Bereich indem man sich befindet nicht mehr anklicken läßt.
PHP:
<?php
//------------------VARIABLEN-----------------
$td_on = "bgcolor='#EDEDDC'";
$td_off = "bgcolor='#f9f9f9'";
$point = "<font color='#ff0000'> • </font> ";
$point_off = "<font color='#999999'> • </font> ";
//--------------------------------------------
if($section==""){header ("location:http://www.dener-sound.de/index.php?section=Home");}
//--------SECTION HOME------------------------
if($section=="Home"){
echo "<table width='125' border='0'>
<tr><td ".$td_on.">".$point."Home</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Music'>Music</a></td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=AboutMe'>About Me</a></td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Member'>Member</a></td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Links'>Links</a></td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Contact'>Contact</a></td></tr>
</table>";}
//----------MUSIC-----------------------------
if($section=="Music"){
echo "<table width='125' border='0'>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Home'>Home</td></tr>
<tr><td ".$td_on.">".$point."Music</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=AboutMe'>About Me</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Member'>Member</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Links'>Links</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Contact'>Contact</td></tr>
</table>";}
//---------ABOUT ME--------------------------------------
if($section=="AboutMe"){
echo "<table width='125' border='0'>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Home'>Home</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Music'>Music</td></tr>
<tr><td ".$td_on.">".$point."About Me</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Member'>Member</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Links'>Links</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Contact'>Contact</td></tr>
</table>";}
//------------------------------------------------
if($section=="Member"){
echo "<table width='125' border='0'>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Home'>Home</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Music'>Music</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=AboutMe'>About Me</td></tr>
<tr><td ".$td_on.">".$point."Member</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Links'>Links</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Contact'>Contact</td></tr>
</table>";}
//-----------------------------------------------
if($section=="Links"){
echo "<table width='125' border='0'>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Home'>Home</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Music'>Music</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=AboutMe'>About Me</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Member'>Member</td></tr>
<tr><td ".$td_on.">".$point."Links</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Contact'>Contact</td></tr>
</table>";}
//------------------------------------------------
if($section=="Contact"){
echo "<table width='125' border='0'>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Home'>Home</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Music'>Music</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=AboutMe'>About Me</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Member'>Member</td></tr>
<tr><td ".$td_off.">".$point_off."<a href='index.php?section=Links'>Links</td></tr>
<tr><td ".$td_on.">".$point."Contact</td></tr>
</table>";}
$section = $_GET['section'];
if ($section == "") {
$section = 0;
}
if(!isset($_GET["section"]))
{
$_GET["section"]=0;
}
switch ($section) {
case "0":
break;
case "Music":
break;
case "Home":
break;
case "Member":
break;
case "AboutMe":
break;
case "Links":
break;
case "Contact":
break;
default:
break;
}
?>
evtl hat einer ne Idee dazu? ich muß zugeben - ich komm mit den array´s noch nicht so wirklich klar *seufz*