Hallo,
ich versuche gerade ein Website für einem Freund zu überarbeiten, weil der Ersteller im Krankenhaus ist.
http://www.schatten-freier-raum.de/index2.php
Problem IE: Das Menü hat einen doppelten Eintag, der manchmal verschwindet. Betrifft den Eintrag "Events"
Problem Firefox: Das ganze Menü kommt doppelt und liegt übereinander, nach dem ersten klick.
Hier meine menue.php
Und die Datenbank
[QUOTEINSERT INTO `caldesia` VALUES (1, 0, ' Events', 'Events');
INSERT INTO `caldesia` VALUES (1, 1, '', 'x');
INSERT INTO `caldesia` VALUES (1, 2, '', 'x');
INSERT INTO `caldesia` VALUES (2, 0, ' Kontakt', 'Kontakt');
INSERT INTO `caldesia` VALUES (2, 1, ' Home', 'Home');
INSERT INTO `caldesia` VALUES (2, 2, ' Foto Download', 'Foto Download');
INSERT INTO `caldesia` VALUES (3, 0, ' Produktion', 'Produktion');
INSERT INTO `caldesia` VALUES (3, 1, '', 'x');
INSERT INTO `caldesia` VALUES (3, 2, '', 'x');
INSERT INTO `caldesia` VALUES (3, 3, '', 'x');
INSERT INTO `caldesia` VALUES (4, 0, ' News', 'News');
INSERT INTO `caldesia` VALUES (4, 1, '', 'x');
INSERT INTO `caldesia` VALUES (4, 2, '', 'x');
INSERT INTO `caldesia` VALUES (4, 3, '', 'x');
INSERT INTO `caldesia` VALUES (4, 4, '', 'x');
INSERT INTO `caldesia` VALUES (4, 5, '', 'x');
INSERT INTO `caldesia` VALUES (4, 6, '', 'x');
INSERT INTO `caldesia` VALUES (4, 7, '', 'x');
INSERT INTO `caldesia` VALUES (5, 0, ' booking', 'booking');
INSERT INTO `caldesia` VALUES (5, 1, ' dee-jay''s', 'dj');
INSERT INTO `caldesia` VALUES (5, 2, ' live-act''s', 'live_acts');
INSERT INTO `caldesia` VALUES (5, 3, '', 'x');
INSERT INTO `caldesia` VALUES (5, 4, '', 'x');
INSERT INTO `caldesia` VALUES (5, 5, '', 'x');
INSERT INTO `caldesia` VALUES (5, 6, '', 'x');
INSERT INTO `caldesia` VALUES (5, 7, '', 'x');
INSERT INTO `caldesia` VALUES (6, 0, ' Shop', 'x');
INSERT INTO `caldesia` VALUES (6, 1, ' vinylpress', 'vinylpress');
INSERT INTO `caldesia` VALUES (6, 2, ' Ton & Kleidung', 'vinylverkauf');
INSERT INTO `caldesia` VALUES (6, 3, '', 'x');
INSERT INTO `caldesia` VALUES (6, 4, '', 'x');
INSERT INTO `caldesia` VALUES (6, 5, '', 'x');
INSERT INTO `caldesia` VALUES (6, 6, '', 'x');
INSERT INTO `caldesia` VALUES (6, 7, '', 'x');
INSERT INTO `caldesia` VALUES (7, 0, ' Gästebuch', 'gaestebuch');
INSERT INTO `caldesia` VALUES (7, 1, '', 'x');
INSERT INTO `caldesia` VALUES (7, 2, '', 'x');
INSERT INTO `caldesia` VALUES (7, 3, '', 'x');
INSERT INTO `caldesia` VALUES (7, 4, '', 'x');
INSERT INTO `caldesia` VALUES (7, 5, '', 'x');
INSERT INTO `caldesia` VALUES (7, 6, '', 'x');
INSERT INTO `caldesia` VALUES (7, 7, '', 'x');
INSERT INTO `caldesia` VALUES (8, 0, ' digital', 'digital');
INSERT INTO `caldesia` VALUES (8, 1, '', 'x');
INSERT INTO `caldesia` VALUES (8, 2, '', 'x');
INSERT INTO `caldesia` VALUES (8, 3, '', 'x');
INSERT INTO `caldesia` VALUES (8, 4, '', 'x');
INSERT INTO `caldesia` VALUES (8, 5, '', 'x');
INSERT INTO `caldesia` VALUES (8, 6, '', 'x');
INSERT INTO `caldesia` VALUES (8, 7, '', 'x');
INSERT INTO `caldesia` VALUES (9, 0, ' links', 'links');
INSERT INTO `caldesia` VALUES (9, 1, '', 'x');
INSERT INTO `caldesia` VALUES (10, 0, ' Cover-Design', 'Cover-Desing');[/QUOTE]
Was ist falsch am Skript.
Bin über jede Hilfe sehr dankbar!!!!!!!
DANKE
ORtchi
ich versuche gerade ein Website für einem Freund zu überarbeiten, weil der Ersteller im Krankenhaus ist.
http://www.schatten-freier-raum.de/index2.php
Problem IE: Das Menü hat einen doppelten Eintag, der manchmal verschwindet. Betrifft den Eintrag "Events"
Problem Firefox: Das ganze Menü kommt doppelt und liegt übereinander, nach dem ersten klick.
Hier meine menue.php
PHP-Code:
<html>
<head>
</head>
<body bgcolor='#000000'>
<?
include("confic.php");
echo"<body><link rel='stylesheet'type='text/css' href='layout.css'><div id='posmenue1'>";
$handle=mysql_connect("$server","$nutzer","$pw");
$sql=mysql_select_db("$db",$handle);
//alle db hauptmenuepunkte
$sql1="SELECT * FROM $tab WHERE u_id LIKE 0 ";
$x=mysql_query($sql1,$handle);
for($i=0;$i < mysql_num_rows($x);$i++)
{$out=mysql_fetch_array($x);
$merker=1;
$id=$out['id'];
if(($out['link'])!="")
$haupt="x";
{echo"<div id='menue'><a href='"."menue.php?id=$id&ziel=$haupt"."'>".$out['link']."</a><br></div>"; }}
$id=$_REQUEST['id'];
$test=$_REQUEST['test'];
//alle db hauptmenuepunkte
//verweiszieldefinieren function target dateiinhalt
if(($_REQUEST['ziel'])=="x")
{$sql2="SELECT * FROM $tab WHERE id LIKE $id AND u_id LIKE '0'
ORDER BY id ";
$x=mysql_query($sql2,$handle);
for($i=0;$i < @mysql_num_rows($x);$i++)
{$out=mysql_fetch_array($x);
echo"<script type='text/javascript'>
<!--
parent.frames[2].window.location = 'master/".$out['datei'].".php';
//-->
</script>";
}}
//funktion schliessen
//hauptmenue_oben
echo"</div><div id='posmenue2'>";
if($id==$_REQUEST['id']&& $test!=2 )
{
$sql2="SELECT * FROM $tab WHERE id <= $id AND u_id LIKE 0
ORDER BY id ";
$x=mysql_query($sql2,$handle);
for($i=0;$i < @mysql_num_rows($x);$i++)
{$out=mysql_fetch_array($x);
$id=$out['id'];
if(($out['link'])!="")
{
if($i< @mysql_num_rows($x)-1)
{echo"<div id='menue'><a href='menue.php?id=$id&ziel=$haupt'>".$out['link']."</a><br></div>";}
}
}
//hauptmenue_oben
//schaltfläche
$sql2="SELECT * FROM $tab WHERE id LIKE $id AND u_id LIKE '0' ORDER BY id ";
$x=mysql_query($sql2,$handle);
for($i=0;$i < @mysql_num_rows($x);$i++)
{$out=mysql_fetch_array($x);
echo"<div id='menue'><a href='menue.php?id=$id&test=2'>".$out['link']."</a><br></div>"; } //funktion schliessen
//schaltfläche
//untermenue
$sql2="SELECT * FROM $tab WHERE id LIKE $id AND u_id != 0 ORDER BY id ";
$x=mysql_query($sql2,$handle);
for($i=0;$i < @mysql_num_rows($x);$i++)
{$out=mysql_fetch_array($x);
if(($out['link'])!="")
{echo"<div id='untermenue'><a href='master/".$out['datei'].".php'target='dateiinhalt'>".$out['link']."</a><br></div>"; }
}
//untermenue
//hauptmenue_unten
$sql2="SELECT * FROM $tab WHERE id > $id AND u_id LIKE 0 ORDER BY id ";
$x=mysql_query($sql2,$handle);
for($i=0;$i < @mysql_num_rows($x);$i++)
{$out=mysql_fetch_array($x);
$id=$out['id'];
if(($out['link'])!="")
{echo"<div id='menue'><a href='menue.php?id=$id&ziel=$haupt'>".$out['link']."</a><br></div>"; }}
}
echo"</div>";
//hauptmenue_unten
mysql_close($handle); caldesia
?>
</body>
</html>
Und die Datenbank
[QUOTEINSERT INTO `caldesia` VALUES (1, 0, ' Events', 'Events');
INSERT INTO `caldesia` VALUES (1, 1, '', 'x');
INSERT INTO `caldesia` VALUES (1, 2, '', 'x');
INSERT INTO `caldesia` VALUES (2, 0, ' Kontakt', 'Kontakt');
INSERT INTO `caldesia` VALUES (2, 1, ' Home', 'Home');
INSERT INTO `caldesia` VALUES (2, 2, ' Foto Download', 'Foto Download');
INSERT INTO `caldesia` VALUES (3, 0, ' Produktion', 'Produktion');
INSERT INTO `caldesia` VALUES (3, 1, '', 'x');
INSERT INTO `caldesia` VALUES (3, 2, '', 'x');
INSERT INTO `caldesia` VALUES (3, 3, '', 'x');
INSERT INTO `caldesia` VALUES (4, 0, ' News', 'News');
INSERT INTO `caldesia` VALUES (4, 1, '', 'x');
INSERT INTO `caldesia` VALUES (4, 2, '', 'x');
INSERT INTO `caldesia` VALUES (4, 3, '', 'x');
INSERT INTO `caldesia` VALUES (4, 4, '', 'x');
INSERT INTO `caldesia` VALUES (4, 5, '', 'x');
INSERT INTO `caldesia` VALUES (4, 6, '', 'x');
INSERT INTO `caldesia` VALUES (4, 7, '', 'x');
INSERT INTO `caldesia` VALUES (5, 0, ' booking', 'booking');
INSERT INTO `caldesia` VALUES (5, 1, ' dee-jay''s', 'dj');
INSERT INTO `caldesia` VALUES (5, 2, ' live-act''s', 'live_acts');
INSERT INTO `caldesia` VALUES (5, 3, '', 'x');
INSERT INTO `caldesia` VALUES (5, 4, '', 'x');
INSERT INTO `caldesia` VALUES (5, 5, '', 'x');
INSERT INTO `caldesia` VALUES (5, 6, '', 'x');
INSERT INTO `caldesia` VALUES (5, 7, '', 'x');
INSERT INTO `caldesia` VALUES (6, 0, ' Shop', 'x');
INSERT INTO `caldesia` VALUES (6, 1, ' vinylpress', 'vinylpress');
INSERT INTO `caldesia` VALUES (6, 2, ' Ton & Kleidung', 'vinylverkauf');
INSERT INTO `caldesia` VALUES (6, 3, '', 'x');
INSERT INTO `caldesia` VALUES (6, 4, '', 'x');
INSERT INTO `caldesia` VALUES (6, 5, '', 'x');
INSERT INTO `caldesia` VALUES (6, 6, '', 'x');
INSERT INTO `caldesia` VALUES (6, 7, '', 'x');
INSERT INTO `caldesia` VALUES (7, 0, ' Gästebuch', 'gaestebuch');
INSERT INTO `caldesia` VALUES (7, 1, '', 'x');
INSERT INTO `caldesia` VALUES (7, 2, '', 'x');
INSERT INTO `caldesia` VALUES (7, 3, '', 'x');
INSERT INTO `caldesia` VALUES (7, 4, '', 'x');
INSERT INTO `caldesia` VALUES (7, 5, '', 'x');
INSERT INTO `caldesia` VALUES (7, 6, '', 'x');
INSERT INTO `caldesia` VALUES (7, 7, '', 'x');
INSERT INTO `caldesia` VALUES (8, 0, ' digital', 'digital');
INSERT INTO `caldesia` VALUES (8, 1, '', 'x');
INSERT INTO `caldesia` VALUES (8, 2, '', 'x');
INSERT INTO `caldesia` VALUES (8, 3, '', 'x');
INSERT INTO `caldesia` VALUES (8, 4, '', 'x');
INSERT INTO `caldesia` VALUES (8, 5, '', 'x');
INSERT INTO `caldesia` VALUES (8, 6, '', 'x');
INSERT INTO `caldesia` VALUES (8, 7, '', 'x');
INSERT INTO `caldesia` VALUES (9, 0, ' links', 'links');
INSERT INTO `caldesia` VALUES (9, 1, '', 'x');
INSERT INTO `caldesia` VALUES (10, 0, ' Cover-Design', 'Cover-Desing');[/QUOTE]
Was ist falsch am Skript.
Bin über jede Hilfe sehr dankbar!!!!!!!
DANKE
ORtchi
Kommentar