Gästebuch mit Scrollbalken

china

Mitglied
Hallo,

möchte gerne dieses Gästebuch http://www.cocrusader.de/almbook1.0/index.php
mit Scrollbalken in eine Tabelle einfügen die eine
Breite von 375px hat wo,was und wie muß ich den scroll befehl einfügen

<?php
include("config.php");
?>
<html>
<head>

<title><? echo $titel ?></title>

<style type="text/css">
<!--
body {
background-color:#FFFFFF;
}

th {
font-family: Verdana, sans-serif;
font-size: 11px;
font-weight: none;
color: #FFFFFF;
}

td {
font-family: Verdana, sans-serif;
font-size: 10px;
font-weight: none;
color: #000000;
}

textarea {
font-family: Verdana, sans-serif;
font-size: 10px;
color: #505050;
background-color:#B9D6E7;
scrollbar-base-color:#89A6B7;
scrollbar-arrow-color:#B9D6E7;
border-color:#89A6B7;
}

input {
font-family: Verdana, sans-serif;
font-size: 10px;
color: #505050;
background-color: #B9D6E7;
border-color: #89A6B7;
}
-->
</style>

<script language="JavaScript">
<!--
function AddText(NewCode,theform) {
theform.comment.value = theform.comment.value + NewCode;
}
function smilie(thesmilie) {
AddSmile = " "+thesmilie+" ";
theform = guestbook;
AddText(AddSmile,theform);
}
//-->
</script>

</head>
<body>

<!--
########################################
# AlmBook v1.1 #
# © '02 by Almaron #
# http://www.corepages.de #
########################################
-->

<div align="center">

<table border="0" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" width="300" align="center">
<form name="guestbook" method="post" action="<? echo $PHP_SELF;?>">
Ihr Name:<br>
<input type="text" name="name" size="50" maxlength="30">
</td>
</tr>
<tr>
<td colspan="2" align="center">
Ihre E-Mail:<br>
<input type="text" name="email" size="50" maxlength="50">
</td>
</tr>
<tr>
<td colspan="2" align="center">
Ihre Homepage:<br>
<input type="text" name="homepage" size="50" value="http://" maxlength="50">
</td>
</tr>
<tr>
<td colspan="2" align="center">
Ihre ICQ-Nummer:<br>
<input type="text" name="icq" size="50" maxlength="15"><br>
</td>
</tr>
<tr>
<td align="center" width="236">
Ihre Nachricht:<br>
<textarea name="comment" cols="35" rows="7"></textarea>
</td>
<td align="center" width="64" valign="top">
Smilies:<br>
<a href="javascript:smilie(':D')"><img src="gb/smilies/biggrin.gif" border="0"></a><a href="javascript:smilie(':)')"><img src="gb/smilies/smile.gif" border="0"></a><br>
<a href="javascript:smilie(':(')"><img src="gb/smilies/sad.gif" border="0"></a><a href="javascript:smilie(':p')"><img src="gb/smilies/tongue.gif" border="0"></a><br>
<a href="javascript:smilie(':cry:')"><img src="gb/smilies/cry.gif" border="0"></a><a href="javascript:smilie(';)')"><img src="gb/smilies/wink.gif" border="0"></a>
</td>
</tr>
<tr>
<td colspan="2" align="center">
<br>
<input type="submit" name="submit" value="Submit">
<input type="reset" name="reset" value="Delete">
</form>
</td>
</tr>
</table>


<?

$data=fopen("data.ab","r");
$datafile="";

while($line=fgets($data,500))
$datafile.=$line;

if(isset($name)&&isset($comment)) {

$name=strip_tags($name);
$comment=strip_tags($comment);

$datafile="
<table cellspacing=\"2\" cellpadding=\"2\" border=\"0\">
<tr>
<th width=\"440\" bgcolor=\"$hd_bg\" align=\"left\">
<b>$name</b> schrieb am <b>".date("d.m.y")."</b> um <b>".date("H:i")."Uhr</b>:
</th>
<th width=\"60\" bgcolor=\"$hd_bg\" align=\"right\">
<a href=\"mailto:$email\"><img src=\"gb/email.gif\" border=\"0\" alt=\"Schreibe $name eine eMail!\"></a>
<a href=\"$homepage\"><img src=\"gb/homepage.gif\" border=\"0\" alt=\"Besuche $name's Homepage!\"></a>
<a href=\"http://wwp.icq.com/scripts/search.dll?to=$icq\"><img src=\"http://wwp.icq.com/scripts/online.dll?icq=$icq&img=5\" border=\"0\"></a>
</th>
</tr>
<tr>
<td colspan=\"2\" width=\"500\" bgcolor=\"$gb_bg\" valign=\"top\">
$comment
</td>
</tr>
</table><br>
".$datafile;

fclose($data);
$data=fopen("data.ab","w");
fputs($data,$datafile);
}

$code =
array(":D",":)",":(",":p",":cry:",";)");
$smilies =
array("<img src=\"gb/smilies/biggrin.gif\">","<img src=\"gb/smilies/smile.gif\">","<img src=\"gb/smilies/sad.gif\">","<img src=\"gb/smilies/tongue.gif\">","<img src=\"gb/smilies/cry.gif\">","<img src=\"gb/smilies/wink.gif\">");

echo str_replace ($code, $smilies, $datafile);
fclose($data);

?>

</body>
</html>


MFG China
 
hallo!
ich denke mal die beste möglichkeit das gb mit scrollbalken in diese tabelle einzufügen ist - indem du ein iframe nimmst (HTML) - da bist du da etwas falsch.
mfg flo
 
ja das geht natürlich auch,wobei halt die iframe sache einfacher ist....die bleibt immer konstant - per containern is es manchmal so,dass es auf die aufösung ankommt....glaube ich!
 
wende ich mich am besten im HTML Forum, wie man es mit iframe macht

oder könnt ihr mir hier weiter Helfen

MFG China
 
so das hat geklappt mit dem iFrame, nur wie mach ich jetzt die Scrollbalken Farbig
Funktioniert das mit diesem script hier wenn ja wie und wo muß ich es einfügen


td.scroll
{
width: 375px;
height: 275px;
border: 0px solid #ffffff;
font-family: verdana;
font-size: 10px;
color: #ccddee;
background-color: #ffffff;
scrollbar-base-color: #EDEDED;
scrollbar-3d-light-color: #a0bbd4;
scrollbar-arrow-color: #a0bbd4;
scrollbar-darkshadow-color: #EDEDED;
scrollbar-face-color: #ffffff;
scrollbar-highlight-color: #809bb4;
scrollbar-shadow-color: #809bb4;
scrollbar-track-color: #ffffff;
}
</style>


MFG China
 
Zurück