Witam Chodzi mi o to abu zawartosc w pliku byla wyswietlana pozioma , jedno obok drugiej , a nie tak jak jest jedno pod drugim. I mam pyatnie czy mozna do tego wyswietlania dodac opcje przewijania samoczynnego (marquee)
<?
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript">
function addsmiley(symbol) {
document.postshout.msg.value += symbol;
document.postshout.msg.focus();
}
<!-- Begin
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=300,he
ight=500');");
}
</script>
<link href="default.css" rel="stylesheet" type="text/css">
</head>
<body class="phpshout_body">
<form name="postshout" method="post" action="
<? echo $_SERVER['PHP_SELF']; ?>">
<table align="center" class="phpshout_table">
<tr>
<td class="phpshout_form"><?
include "config.php";
include "functions.php";
banned_user();
if (isset($_POST["Submit"])) {
echo "<p class="error
">Messages.txt doesn't exsist. Please create a file call messages.txt on your server</p>";
} else if ($_POST["name"] == "name" || $_POST["msg"] == "message" || $_POST["name"] == NULL || $_POST["msg"] == NULL) {
echo "<p class="error
"> Steel Radio: Imie oraz tresc sa wymagane - Uzupelnij wszystki pola.</p>";
} else {
$filename = "messages.txt";
$handle = fopen($filename,"r");
if ($read != "" || $read != NULL) {
$array = split("n", $read);
if ($array[0] != NULL || $array[0] != "") {
list
($name, $msg, $time, $ip) = explode("t", $array[0
]);
// Convert timestamp to unix timestamp and get current unix timestamp
$flood_gate_time = $strtime+$floodtime;
$valid = true;
}
if ($ip == $_SERVER['REMOTE_ADDR'] && $flood_gate_time > $curtime) {
echo "<p class="error
">Steel Radio: Poczekaj ".$floodtime." sekund zanim napiszesz ponownie ! </p>"; } else {
writetofile($_POST["name"],$_POST["msg"]);
}
} else {
writetofile($_POST["name"],$_POST["msg"]);
}
} // end if file exists
} // end submit
?>
<?
$filename = "messages.txt";
$handle = fopen($filename, "r"); $x=0;
for($i=0; $i<$numofposts; $i++) {
if ($array[$i] != NULL || $array[$i] != "") {
list
($name, $msg, $date, $ip) = explode("t", $array[$i]);
list
($year,$month,$day,$time) = explode("/", $date);
// convert text to smilies.
$msg = smiles($msg);
// Show date, Yes or No.
if ($showdate == "1") {
$title = "title="Posted ".$day."/".$month."/".$year." ".$time.""";
} else {
$title = "";
}
$x++;
if ( $x % 0 != 0 ) {
echo "<tr><td ".$title." class="phpshout_posts
"><strong>".wordwrap($name,18,"<br>n",1)." : </strong>".ereg_replace("([^ /]{22})","1<wbr>",$msg)."</td></tr>"; } else {
echo "<tr><td ".$title." class="phpshout_2nd_posts
"><strong>".wordwrap($name,18,"<br>n",1)." : </strong>".ereg_replace("([^ /]{22})","1<wbr>",$msg)."</td></tr>"; }
} else {
break;
}
}
}
?>
</table>
</form>
</body>
</html>
<?
?>