Finde Fehler im Code nicht!

Hi Leute! Ich sitze jetzt schon ne ganze zeit lang an dem Sch*** Code vom Menü meiner homepage, aber ich schaffe es nicht, dass sich ein link nur im mainFrame aufbaut und nicht auch im menü!

Hier mal die Auszüge aus dem Frameset:

index.html:

Code:
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<frameset rows="180,*" cols="180,*" frameborder="NO" border="0" framespacing="0"> 
  <frame name="cornerFrame" scrolling="NO" noresize src="corner.html" >
  <frame name="topFrame" scrolling="NO" noresize src="top.html" >
  <frame name="leftFrame" scrolling="NO" noresize src="menue.html">
  <frame name="mainFrame" src="hauptseite.html">
</frameset>
<noframes><body bgcolor="#FFFFFF" text="#000000">

</body></noframes>
</html>

und vom menü:

Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Menue</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY bgColor=#ff4800 leftMargin=0 topMargin=0 MARGINHEIGHT="0" MARGINWIDTH="0"><base target="mainFrame">
<style type="text/css">
<!--

.Navlink {COLOR: #FFFFFF; TEXT-DECORATION: none; font-family: verdana; font-size: 12pt; font-weight: bold;}
a:link.Navlink  {color : #FFFFFF;}
a:visited.Navlink  {color : #FFFFFF;}
a:active.Navlink  {text-decoration: none;}
a:hover.Navlink  {text-decoration: none;}

-->
</style>
<script language = "javascript">
<!--

function LmOver(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#FFFFFF";
elem.style.cursor = 'hand'}

function LmOut(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#FFFFFF";}

function LmDown(elem, clr)
{elem.style.backgroundColor = clr;
elem.children.tags('A')[0].style.color = "#FFFFFF";}

function LmUp(path)
{location.href = path;}

//-->
</script>

<table border="0" width="120" bgcolor="#000000" cellspacing="0" cellpadding="0">
<tr><td width="100%">

<table border="0" width="100%" cellspacing="2" cellpadding="2">
<tr><td width="100%" onMouseover="LmOver(this, '#0066CB')" onMouseout="LmOut(this, '#FF4800')" onMouseDown="LmDown(this, '#0066CB')" 
onMouseUp="LmUp('http://www.sunsetclub69.de/index.html')" bgcolor="#FF4800"><A HREF="index.html" TARGET="mainFrame" Class="navlink">  Start</a></td></tr>
<tr><td width="100%" onMouseover="LmOver(this, '#0066CB')" onMouseout="LmOut(this, '#FF4800')" onMouseDown="LmDown(this, '#0066CB')" 
onMouseUp="LmUp('http://www.sunsetclub69.de/mitglieder/uebersicht.html')" bgcolor="#FF4800"><A HREF="http://www.sunsetclub69.de/mitglieder/uebersicht.html" TARGET="mainFrame" Class="navlink">  Mitglieder</a></td></tr>
<tr><td width="100%" onMouseover="LmOver(this, '#0066CB')" onMouseout="LmOut(this, '#FF4800')" onMouseDown="LmDown(this, '#0066CB')" 
onMouseUp="LmUp('http://www.sunsetclub69.de/bilder/uebersicht.html')" bgcolor="#FF4800"><A HREF="http://www.sunsetclub69.de/bilder/uebersicht.html" TARGET="mainFrame" Class="navlink">  Bilder</a></td></tr>
<tr><td width="100%" onMouseover="LmOver(this, '#0066CB')" onMouseout="LmOut(this, '#FF4800')" onMouseDown="LmDown(this, '#0066CB')" 
onMouseUp="LmUp('http://www.sunsetclub69.de/gaestebuch/')" bgcolor="#FF4800"><A HREF="http://www.sunsetclub69.de/gaestebuch/" TARGET="mainFrame" Class="navlink">  Gästebuch</a></td></tr>
<tr><td width="100%" onMouseover="LmOver(this, '#0066CB')" onMouseout="LmOut(this, '#FF4800')" onMouseDown="LmDown(this, '#0066CB')" 
onMouseUp="LmUp('http://www.sunsetclub69.de/links/links.html')" bgcolor="#FF4800"><A HREF="http://www.sunsetclub69.de/links/links.html" TARGET="mainFrame" Class="navlink">  Links</a></td></tr>
<tr><td width="100%" onMouseover="LmOver(this, '#0066CB')" onMouseout="LmOut(this, '#FF4800')" onMouseDown="LmDown(this, '#0066CB')" 
onMouseUp="LmUp('http://www.sunsetclub69.de/kontakt/kontakt.html')" bgcolor="#FF4800"><A HREF="http://www.sunsetclub69.de/kontakt/kontakt.html" TARGET="mainFrame" Class="navlink">  Kontakt</a></td></tr>
</table>
</BODY></HTML>

Falls ihr noch irgendwelche Angaben braucht, sagt mir bitte einfach bescheid! Bin schon am verzweifeln! (Darum auch der seeeehr späte Beitrag! 00:52 Uhr)

THX
 
Mach mal in der menue.html in Zeile 34 aus :

{location.href = path;}

ein

{parent.mainFrame.location.href = path;}

Dann werden die Links im Frame "mainFrame" aufgerufen.

Des weiteren sollte der Link für "Start" nicht auf die index.html zeigen, sondern auf die hauptseite.html, weil du sonst eine unerwünschte Verschachtelung erhältst. Ansonsten sollten natürlich noch die Dateien existieren, auf die die Links verweisen. ;-)
 
Herzlichen Dank! Hat alles funktioniert! Kenn mich mit php kein bisschen aus!
Danke auch für den Tipp mit der index.html, hatte das noch schnell geändert, bevor ich es gepostet hab, um schnell was auszuprobieren!

THX
 
...einen hab ich noch!

Hi, ein kleines Prob habe ich noch! Wie schon erwähnt, bin ich ein ziemlicher lamer, in sachen php! Nun wollte ich folgenden Code:

Code:
<?php 
//Geben Sie hier den Titel der Diashow ein
$titel = "Waging 2002";
//Ab hier nichts mehr ändern
$id = $_GET['id'];
if(!isset($id))
{
$id = "0";
[COLOR=red]$verz = opendir('.');[/COLOR]
while($file = readdir($verz)) 
{  
$info = @getimagesize($file);  
if($file != "." && $file != ".." && $file!="navigation.gif" && $file!="close.gif"  &&  !is_dir($file) && $info[2] == "1" || $info[2] == "2" || $info[2] == "3" || $info[2] == "4" ) 
{
$b .= "$file\n";
}
}
closedir($verz); 
$b1 = @fopen("diashow.txt", "w");
flock($b1,2);
fputs($b1, $b);
flock($b1,3);
fclose($b1);
}
$daten = "diashow.txt";
$bilder = file($daten);
$ende1 = count($bilder);
$ende = "$ende1"-"1";
$no = $id;
$bild = $bilder[$no];
$bild = chop($bild);
$anzeige = "$no"+"1";

//$preload = file_get_contents($daten);
$pre = fopen($daten, "r");
$preload = fread($pre, filesize($daten));
fclose($pre);

$preload = chop($preload);
$preload = ereg_replace("\n", "','", $preload);
$preload = "'"."$preload"."'";
?>
<html>
<head>
<title><?php echo $titel ?></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
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 tmt_winControl(id,c){ 
	var d=eval(id)==null||eval(id+".closed");
	if(!d){eval(id+"."+c);}
}
//-->
</script>
<!--  
artmedic diashow 1.0, Copyright Ellen Baitinger 2003, artmedic webdesign, [URL]http://www.artmedic.de[/URL]
Dieses Programm ist Freeware und kann kostenlos für kommerzielle und private Zwecke 
verwendet und adaptiert werden, solange die Links auf artmedic webdesign und die Hinweise auf die Autorenschaft und das Copyright intakt bleiben.
Dieses Programm darf nicht gegen Geld veräußert oder anderweitig zu Geld gemacht werden.
-->
</head>
<body bgcolor="#ff4800" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0" onLoad="MM_preloadImages(<?php echo $preload ?>)">
<table width="100%" border="0" align="center" cellpadding="4" cellspacing="0">
      <td width="86%"><font color="#CCCCCC" size="3" face="Arial, Helvetica, sans-serif"><?php echo $titel ?></font></td>
    <td width="14%" align="right" valign="top" nowrap><a href="http://www.artmedic.de" target="_blank"><font color="#666666" size="1" face="Arial, Helvetica, sans-serif">script
          by artmedic webdesign</font></a><a href="javascript:;" onClick="tmt_winControl('self','close()')"><br>
<img src="close.gif" alt="Fenster schließen" width="45" height="45" border="0"></a></td>
  </tr>
  <tr>
    <td colspan="2" align="center"><table border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>
		<?php 
		$size= getimagesize($bild);
		$width = $size[0];
		$height = $size[1];  
		echo "<img src=\"$bild\" width=\"$width\" height=\"$height\" border=\"0\">";
		?>
		<br>      <font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif">Dia <?php echo "$anzeige von $ende1"; ?></font></td>
      </tr>
    </table>      </td>
  </tr>
  <tr align="right">
    <td colspan="2"><p><img src="navigation.gif" width="151" height="49" border="0" usemap="#Map"><br>
      <font color="#FFFFFF" size="2" face="Arial, Helvetica, sans-serif"><font size="1">Copyright by Sk6</font></font>    </p>
    </td>
  </tr>
</table>
<map name="Map">
<area shape="circle" coords="26,24,13" href="indexdia.php?id=0" alt="Start">
<area shape="circle" coords="59,25,14" href="indexdia.php?id=<?php 
		if($no > 0){$id = "$no"-"1";}
		else{$id="0";}
		echo $id;?> " alt="Zurück">
<area shape="circle" coords="92,25,14" href="indexdia.php?id=<?php 
if($no<$ende){$id = "$no"+"1";}
		else{$id = $ende;}
		echo $id;?> " alt="Weiter">
<area shape="circle" coords="127,25,16" href="indexdia.php?id=<?php echo $ende;?>" alt="Ende">

an der markierten Stelle so abändern, damit er in der Diashow die Bilder aus den Verzeichnissen "/01", "/02", "/03" und "/04" liest, allerdings weiß ich nicht genau, wie ich das anstellen muss! Muss ich an der markierten Stelle jeweils für jeden Ordner opendir('01'); eingeben, oder muss ich es anders machen? Ich hab schon einiges durchprobiert, aber noch nie zu dem gewünschten Ergebniss gekommen, da ich überhaupt nicht weiß, wie man die einzelnen Argumente abtrennt, oder aneinanderfügt!

Ich hoffe jemand ist so gütig und hilft mir!
 
Zurück
Oben