Heute hab ich unsere HP mal in verschiedenen Browsern angeschaut und im Firefox, Flock und Opera ist auch alles wunderbar, aber wenn ich da mit dem IE7 drauf gehe bekomme ich augenkrebs. Grund dafür ist die shoutbox, mit der original shoutbox geht es, aber ich will halt unsere da man da seinen Nick nicht ändern kann und man kann sie scrollen (wenn das nicht der fehler ist)
hier nun ein Bild vom fehler

und hier meine shoutbox.php
<center> <?php # Copyright by Manuel # Support www.ilch.de defined ('main') or die ( 'no direct access' ); $datum=date(" j.n.Y"); $zeit=date(" H:i"); if ( loggedin() ) { $shoutbox_VALUE_name = $_SESSION['authname']; } else { $shoutbox_VALUE_name = 'Nickname'; } if ( !empty($_POST['shoutbox_submit']) AND (has_right(-1) OR chk_antispam ('shoutbox')) ) { $shoutbox_nickname = escape($_POST['shoutbox_nickname'],'string'); $shoutbox_nickname = substr($shoutbox_nickname, 0, 15); $shoutbox_textarea = escape($_POST['shoutbox_textarea'],'textarea'); $shoutbox_textarea = preg_replace("/\[.?(url|b|i|u|img|code|quote)[^\]]*?\]/i","",$shoutbox_textarea); $shoutbox_textarea = strip_tags($shoutbox_textarea); if ( !empty($shoutbox_nickname) AND !empty($shoutbox_textarea) ) { db_query('INSERT INTO `prefix_shoutbox` VALUES ( "" , "'.$shoutbox_nickname.''.$zeit.''.$datum.'" , "'.$shoutbox_textarea.'" ) ' ); } } $users = ''; if (has_right(-1)) { $readonly = 'readonly="readonly"'; $user = 'u'; $onfocus = ''; } else { $user = 'g'; $uquery = db_query("SELECT name FROM prefix_user"); while ($uds = db_fetch_object($uquery)) { $username = $uds -> name; if (!empty($users)) $users = $users.', '; $users = $users.'"'.$username.'"'; } $onfocus = 'onFocus="if (value == \''.$shoutbox_VALUE_name.'\') {value = \'\'}" onBlur="if (value == \'\') {value = \''.$shoutbox_VALUE_name.'\'}"'; } echo '<script language="JavaScript" type="text/javascript">'; echo ' user = new Array('.$users.');'; echo ' </script>'; echo ' <script language="JavaScript" src="include/includes/js/comments.js" type="text/javascript"></script>'; echo '<form action="index.php" method="POST" name="shoutbox" onsubmit="return chkShoutbox'.$user.'()">'; echo '<input type="text" size="15" name="shoutbox_nickname" value="'.$shoutbox_VALUE_name.'" '.$onfocus.' maxlength="15" '.$readonly.' >'; echo '<br /><textarea style="width: 90%" cols="15" rows="3" name="shoutbox_textarea"></textarea><br />'; if (!has_right(-1)) echo get_antispam ('shoutbox', 0); echo '<input type="submit" value="'.$lang['formsub'].'" name="shoutbox_submit">'; echo '</form><div style="width:110%; height:210px; overflow:scroll;"><table width="100%" class="Cgray" cellpadding="2" cellspacing="1" border="0">'; $erg = db_query('SELECT * FROM `prefix_shoutbox` ORDER BY id DESC LIMIT 50'); $class = 'Cnorm'; while ($row = db_fetch_object($erg) ) { $class = ( $class == 'Cmite' ? 'Cnorm' : 'Cmite' ); echo '<tr class="'.$class.'"><td><b>'.$row->nickname.':</b> '.preg_replace( '/([^\s]{15})(?=[^\s])/', "$1\n", $row->textarea).'</td></tr>'; } echo '</table></div><a class="box" href="index.php?shoutbox">'.$lang['archiv'].'</a>'; ?> </center>
Bin für jeden Tipp dankbar
Greetz Marv
betroffene Homepage: externer Link
Zuletzt modifiziert von marvman am 03.10.2007 - 14:05:32