zoku2020
Mitglied
Hi! Ich habe iene neue Webseite geschreiben... leider habe ich in der Guestbook-sektion einen Graphikfehler...
Kann mir vielleicht einer Helfen, den zu finden?
Der Link zur Page ist: syntheticheaven
(Sorry, es ist auf Lycos... ich hab den neuen Webspce schon in Aussicht, aber es dauert noch, bis ich ihn bekomme...)
der code im HTML:
Es könnte auch am PHP liegen... hier ist der PHP-Code...:
Ich danke euch schonmal im vorraus für eure hilfe!
gez.: zoku
Kann mir vielleicht einer Helfen, den zu finden?
Der Link zur Page ist: syntheticheaven
(Sorry, es ist auf Lycos... ich hab den neuen Webspce schon in Aussicht, aber es dauert noch, bis ich ihn bekomme...)
der code im HTML:
PHP:
<html>
<head>
<title>SyntheticHeaven</title>
<basefont color='#000000' size='3' face='Arial'>
<script type="text/javascript">
<!--
Normal1 = new Image();
Normal1.src = "gfx/btn/index_n.gif";
Highlight1 = new Image();
Highlight1.src = "gfx/btn/index_o.gif";
Normal2 = new Image();
Normal2.src = "gfx/btn/about_n.gif";
Highlight2 = new Image();
Highlight2.src = "gfx/btn/about_o.gif";
Normal3 = new Image();
Normal3.src = "gfx/btn/gb_n.gif";
Highlight3 = new Image();
Highlight3.src = "gfx/btn/gb_o.gif";
Normal4 = new Image();
Normal4.src = "gfx/btn/wallies_n.gif";
Highlight4 = new Image();
Highlight4.src = "gfx/btn/wallies_o.gif";
Normal5 = new Image();
Normal5.src = "gfx/btn/poems_n.gif";
Highlight5 = new Image();
Highlight5.src = "gfx/btn/poems_o.gif";
Normal6 = new Image();
Normal6.src = "gfx/btn/imprint_n.gif";
Highlight6 = new Image();
Highlight6.src = "gfx/btn/imprint_o.gif";
Normal7 = new Image();
Normal7.src = "gfx/btn/contact_n.gif";
Highlight7 = new Image();
Highlight7.src = "gfx/btn/contact_o.gif";
/* usw. fuer alle weiteren zu benutzenden Grafiken */
function Bildwechsel(Bildnr,Bildobjekt) {
window.document.images[Bildnr].src = Bildobjekt.src;
}
//-->
</script>
</head>
<body link='#aaaaaa' alink='#aaaaaa' vlink='#aaaaaa' bgcolor='#ffffff' text='#000000' style='padding:0px; background-image:url(gfx/bg.gif); background-repeat:no-repeat; background-attachment:fixed;'>
<center>
<img src='gfx/sh_title.gif'><br><br>
<table width='900'>
<tr><td valign='top'>
<!-- MENU -->
<div style='max-width:180px;'>
<img src='gfx/menu_top.gif' border='0'><br>
<div style='background-image:url(gfx/menu_middle.gif); max-width:180px; min-height:400;'>
<a href="index.php?sec=index" onMouseOver="Bildwechsel(2,Highlight1)" onMouseOut="Bildwechsel(2,Normal1)"><img src="gfx/btn/index_n.gif" width="180" height="36" border="0" alt="Index"></a>
<a href="index.php?sec=about" onMouseOver="Bildwechsel(3,Highlight2)" onMouseOut="Bildwechsel(3,Normal2)"><img src="gfx/btn/about_n.gif" width="180" height="36" border="0" alt="About me"></a>
<a href="index.php?sec=guestbook" onMouseOver="Bildwechsel(4,Highlight3)" onMouseOut="Bildwechsel(4,Normal3)"><img src="gfx/btn/gb_n.gif" width="180" height="36" border="0" alt="Guestbook"></a>
<a href="index.php?sec=wallies" onMouseOver="Bildwechsel(5,Highlight4)" onMouseOut="Bildwechsel(5,Normal4)"><img src="gfx/btn/wallies_n.gif" width="180" height="36" border="0" alt="Wallpapers"></a>
<a href="index.php?sec=poems" onMouseOver="Bildwechsel(6,Highlight5)" onMouseOut="Bildwechsel(6,Normal5)"><img src="gfx/btn/poems_n.gif" width="180" height="36" border="0" alt="Poems"></a>
<a href="index.php?sec=contact" onMouseOver="Bildwechsel(7,Highlight7)" onMouseOut="Bildwechsel(7,Normal7)"><img src="gfx/btn/contact_n.gif" width="180" height="36" border="0" alt="Contact"></a>
<a href="index.php?sec=imprint" onMouseOver="Bildwechsel(8,Highlight6)" onMouseOut="Bildwechsel(8,Normal6)"><img src="gfx/btn/imprint_n.gif" width="180" height="36" border="0" alt="Imprint"></a>
</div>
<img src='gfx/menu_bottom.gif' border='0'>
</div>
</td>
<td valign='top' align='left' width='700'>
<!-- INHALT -->
<!-- TEXT -->
<div style='max-width:700px; margin:0px;' align='left'>
<img src='gfx/text_top.gif' style='margin:0px;' border='0'><br>
<div style='background-image:url(gfx/text_middle.gif); max-width:700px; padding-left:30px; padding-right:35px; margin:0px;'>
<form name='newentry' action='index.php'><center><table><tr><td>Name:<br><input type='text' name='name'><br>eMail:<br><input type='text' name='mail'><br>Homepage:<br>http://<input type='text' name='hp'><br></td><td>Text:<br><textarea name='text' cols='40' rows='5'></textarea></td></tr></table><br><input type='hidden' name='sec' value='guestbook'><input type='hidden' name='pos' value=''><input type='hidden' name='ip' value='80.134.62.179'><input type='hidden' name='time' value='1075134144'><input type='hidden' name='save' value='true'><input type='submit' value='Submit'> <input type='reset' value=' Reset '></form><br><br></center><table border='1' width='100%' style='margin:0px;'><tr><th width='200'>Author</th><th>Message</th></tr><tr><td><i>zoku2020</i><br><font size='2'>2004/01/25, 17:53 h</font><br><a href='http://www.syntheticheaven' target='_blank'><img src='scripts/gb/url.gif' border='0'></a><br></td><td>The guestbook is online now! Sign in please, if you are currently on my page!
<br>THX</td></tr></table><br><center>Page 1 of 1<br><a href='index.php?sec=guestbook&pos=0'>1</a> </center> </div>
<img src='gfx/text_bottom.gif' style='margin:0px;' border='0'>
</div>
<!-- /TEXT -->
</td></tr>
</table>
</center>
</body>
</html>
Es könnte auch am PHP liegen... hier ist der PHP-Code...:
PHP:
<?
$grrr = "5"; //Anzahl Einträge pro Seite
//--==::EINGABE::==--\\
echo "<form name='newentry' action='index.php'>";
echo "<center><table><tr><td>";
echo "Name:<br><input type='text' name='name'><br>";
echo "eMail:<br><input type='text' name='mail'><br>";
echo "Homepage:<br>http://<input type='text' name='hp'><br>";
echo "</td>";
echo "<td>";
echo "Text:<br><textarea name='text' cols='40' rows='5'></textarea>";
echo "</td></tr></table><br>";
$time = date(U);
echo "<input type='hidden' name='sec' value='guestbook'>";
echo "<input type='hidden' name='pos' value='$pos'>";
echo "<input type='hidden' name='ip' value='$REMOTE_ADDR'>";
echo "<input type='hidden' name='time' value='$time'>";
echo "<input type='hidden' name='save' value='true'>";
echo "<input type='submit' value='Submit'> <input type='reset' value=' Reset '>";
echo "</form><br><br>";
//echo "<a href='java script:index.php.newentry.submit()'><img src='submit.gif' border='0'></a>";
//echo "<a href='java script:this.newentry.reset()'><img src='reset.gif' border='0'></a>";
echo "</center>";
//--==::EINTRAG SPEICHERN::==--\\
if($save == "true"){
$text = str_replace("\n", "<br>", $text);
$message = "$name~$time~$ip~$mail~$hp~~$text~\n";
//Speichern
$fp = fopen("scripts/gb/data.txt", "a");
fwrite($fp, "$message");
fclose($fp);
}
//--==::DARSTELLUNG::==--\\
$data = file("scripts/gb/data.txt");
$data = array_reverse($data);
$entriescount = count($data);
if($entriescount != "0"){
echo "<table border='1' width='100%' style='margin:0px;'><tr><th width='200'>Author</th><th>Message</th></tr>";
if($pos == ""){ $pos = "0"; }
do{
$entry = explode("~", $data[$pos]);
if($entry[0] != ""){
$time = date("Y/m/d, H:i", "$entry[1]");
echo "<tr><td><i>$entry[0]</i><br><font size='2'>$time h</font><br>";
if($entry[4] != ""){
echo "<a href='http://$entry[4]' target='_blank'><img src='scripts/gb/url.gif' border='0'></a><br>";
}
echo "</td><td>";
echo "$entry[6]";
echo "</td></tr>";
}
$max++;
$pos++;
}while($max < "$grrr");
echo "</table><br>";
$allentries = count($data);
$pagecount = bcdiv($allentries,$grrr,0);
$pagenow = bcdiv($pos,$grrr,0);
if($allentries < $grrr){
$pagecount = "1";
}
echo "<center>Page $pagenow of $pagecount<br>";
$blubb = "1";
$blubb2 = "0";
do{
echo "<a href='index.php?sec=guestbook&pos=$blubb2'>$blubb</a> ";
$blubb++;
$blubb2 = $blubb2 + $grrr;
}while($blubb < $pagecount + 1);
echo "</center>";
}
if($entriescount == "0"){
echo "<center>No entries available! Sign in, please!</center>";
}
?>
Ich danke euch schonmal im vorraus für eure hilfe!
gez.: zoku