Supportnet Computer
Planet of Tech

Supportnet / Forum / Skripte(PHP,ASP,Perl...)

Problem im HTML/PHP script





Frage

Hallo, ich habe ein Problem in dem Folgendem Script , die Seite wird nicht bei allen Leuten richtig angezeigt also z.b. bei leuten mit einer kleineren Bildschrimauflösung , die müssne scrollen und bei Leuten mit einem Großem Bildschrim vergrößert sich die Seite nicht , also bleibt bei einer Größe , woran kann das liegen ? Hoffe auf sehr schnelle Antwort , ist sehr wichtig MFG Manuel <?php require ('../_config.inc.php'); if ($_REQUEST['bake'] == '1') { setcookie ('jatsche_user', $_REQUEST['name'], time () + 86400 * 90, '/'); setcookie ('jatsche_pass', $_REQUEST['pwd'], time () + 86400 * 90, '/'); } else { setcookie ('jatsche_user', '', time (), '/'); setcookie ('jatsche_pass', '', time (), '/'); } $cid = md5 (rand (1, 9999999)); $iid = sha1 (rand (1, 9999999)); echo '<?xml version="1.0" encoding="ISO-8859-1"?>' . "\n"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <style type="text/css"> .lol { color:#FFFFFF; } </style> <script type="text/javascript" src="./js/top.js"></script> <title><?= $cfg['chat_name'] ?></title> </head> <body style="background-color:#DDDDDD; margin-top:0px; margin-bottom:0px;"> <center> <table width="50%" height="100%" style="width:50%; height:100%; background-color:#232323;"> <tr> <td> <img style="float:left;" src="img.png" width="233" height="154" border="0" usemap="#map" /> <map name="map"> <area shape="poly" coords="62,149,61,137,64,137,67,141,72,139,77,140,79,135,84,139,89,135,89,149,91,151,67,151" alt="Profil" target="_blank" href="http://poke-on.de/hanzi/ucp/" /> <area shape="poly" coords="13,150,47,149,47,140,44,138,36,134,38,141,29,139,20,139,8,132,13,141" href="#" onclick="helpwindow();" /> <area shape="rect" coords="102,136,133,149" target="_blank" alt="Regeln" href="http://poke-on.de/index.php?content=regeln" /> <area shape="rect" coords="149,136,190,149" target="_blank" href="http://poke-on.de/index.php?content=preise" /> <area shape="rect" coords="205,137,222,148" target="_blank" href="http://poke-on.de/index.php?content=faq" /> </map> <table width="604" height="147" background="otbl.png"> <tr> <td> <br /> <iframe style="height:70%; width:590px; border-width:0px;" src="./side.php?name=<?= $_REQUEST['name'] ?>&id=<?= $iid ?>" scrolling="no" noresize="noresize" frameborder="0" name="menuframe"></iframe> </td> </tr> </table><br /><br /> <iframe style="height:460px; width:850px;" src="http://<?= $cfg['server_host'] ?>:<?= $cfg['server_port'] ?>/LOGIN?name=<?= $_REQUEST['name'] ?>&pwd=<?= $_REQUEST['pwd'] ?>&id=<?= $cid ?>&inputid=<?= $iid ?>" frameborder="0" scrolling="auto" noresize="noresize" framespacing="0" name="readframe"></iframe><br /> <iframe style="height:30px; width:850px;" src="./send.php?name=<?= $_REQUEST['name'] ?>&id=<?= $iid ?>" frameborder="0" scrolling="no" noresize="noresize" framespacing="0" name="sendframe"></iframe> </center> </div> </body> </html>

Antwort 1 von DeluxeStyle

es sind ja fixe Breitenangaben in deinem Code...

Antwort 2 von html.php.problem

sie sind in Prozenten agegeben ... was würdest du denn ändern ?

Antwort 3 von DeluxeStyle

<table width="604" height="147" background="otbl.png">

iframe style="height:460px; width:850px;"

<iframe style="height:30px; width:850px;"


da ist nix in Prozent angegeben

Antwort 4 von html.php.problem

ja , das sol ja auch nicht , das bild sol ja nicht in 100 % und das 3the ifarme auch net und wenn ich das 52the änder in 100% höhe kommt mist raus

Antwort 5 von DeluxeStyle

hä?
bitte etwas genauer.
Vielleicht lieferst du auch ne URL, dann kann man es sich genau anssehen

Antwort 6 von html.php.problem

nochmal genau : Ich hab jez ne Seite , die sol immer genau so groß wie er ganze bildschrim sein , also 100% , das habe ich auch bei der Tabelle , nur es wird nicht 100 % also es passt sich nicht an , was kann ich da machen , das kannst du dir ja hier ansehn : www.chat.poke-on.de

Antwort 7 von DeluxeStyle

du solltest als erstes den Code aufräumen, das hier
<table width="50%" height="100%" style="width:50%; height:100%;
ist doppelt gemoppelt

dein code enthält sehr viele fehler
so wird zum beispiel die erste tabele nicht mehr geschlossen

Antwort 8 von html.php.problem

hmm , so richtig klappen tuts net , kannst du mal den Code posten , wie er nach deine Meinung richtig wäre ?

Antwort 9 von DeluxeStyle

ich versuch es mal, zumindest teilweise

<?php
require ('../_config.inc.php');

if ($_REQUEST['bake'] == '1') {
setcookie ('jatsche_user', $_REQUEST['name'], time () + 86400 * 90, '/');
setcookie ('jatsche_pass', $_REQUEST['pwd'], time () + 86400 * 90, '/');
} else {
setcookie ('jatsche_user', '', time (), '/');
setcookie ('jatsche_pass', '', time (), '/');
}

$cid = md5 (rand (1, 9999999));
$iid = sha1 (rand (1, 9999999));
echo '<?xml version="1.0" encoding="ISO-8859-1"?>' . "\n";
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<style type="text/css">
.lol {
color:#FFFFFF;
}
</style>

<script type="text/javascript" src="./js/top.js"></script>
<title><?= $cfg['chat_name'] ?></title>

</head>

<body style="background-color:#DDDDDD; margin-top:0px; margin-bottom:0px;">

<center>

<table width="50%" height="100%" style="width:50%; height:100%; background-color:#232323;">
<tr>
<td>

<img style="float:left;" src="img.png" width="233" height="154" border="0" usemap="#map" />

<map name="map">

<area shape="poly" coords="62,149,61,137,64,137,67,141,72,139,77,140,79,135,84,139,89,135,89,149,91,151,67,151" alt="Profil" target="_blank" href="http://poke-on.de/hanzi/ucp/" />
<area shape="poly" coords="13,150,47,149,47,140,44,138,36,134,38,141,29,139,20,139,8,132,13,141" href="#" onclick="helpwindow();" />
<area shape="rect" coords="102,136,133,149" target="_blank" alt="Regeln" href="http://poke-on.de/index.php?content=regeln" />
<area shape="rect" coords="149,136,190,149" target="_blank" href="http://poke-on.de/index.php?content=preise" />
<area shape="rect" coords="205,137,222,148" target="_blank" href="http://poke-on.de/index.php?content=faq" />
</map>

<table width="604" height="147" background="otbl.png">
<tr>
<td>
<br />
<iframe style="height:70%; width:590px; border-width:0px;" src="./side.php?name=<?= $_REQUEST['name'] ?>&id=<?= $iid ?>" scrolling="no" noresize="noresize" frameborder="0" name="menuframe"></iframe>
</td>
</tr>
</table>
<br /><br />

<iframe style="height:460px; width:850px;" src="http://<?= $cfg['server_host'] ?>:<?= $cfg['server_port'] ?>/LOGIN?name=<?= $_REQUEST['name'] ?>&pwd=<?= $_REQUEST['pwd'] ?>&id=<?= $cid ?>&inputid=<?= $iid ?>" frameborder="0" scrolling="auto" noresize="noresize" framespacing="0" name="readframe"></iframe><br />
<iframe style="height:30px; width:850px;" src="./send.php?name=<?= $_REQUEST['name'] ?>&id=<?= $iid ?>" frameborder="0" scrolling="no" noresize="noresize" framespacing="0" name="sendframe"></iframe>
</td>
</tr>
</table>
</center>
</div>
</body>
</html>

hab deinen Code nicht aufgeräumt, sondern nur die Tabelle geschlossen.
Fürs aufräumen schau mal bei hier vorbei

Antwort 10 von html.php.problem

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web510299/html/poke-on/hanzi/frame/jatsche.php:2) in /var/www/web510299/html/poke-on/hanzi/frame/jatsche.php on line 9

Warning: Cannot modify header information - headers already sent by (output started at /var/www/web510299/html/poke-on/hanzi/frame/jatsche.php:2) in /var/www/web510299/html/poke-on/hanzi/frame/jatsche.php on line 10
das kommt jez ...

Antwort 11 von html.php.problem

hab schon

Antwort 12 von DeluxeStyle

dann hast du zu viel kopiert

Antwort 13 von html.php.problem

nur... es hat sich nix geändert , soll ich mal nen screen posten ?

Antwort 14 von DeluxeStyle

gib deine seite erst mal bei dem html validator ein und lass sie überprüfen
dann poste noch mal nen link direkt zur seite und ned nur zur login seite

Antwort 15 von html.php.problem

die direkte seite ist www.poke-on.de , aber das design vom chat klappt net also log dich unter www.chat.poke-on.de ein ohne Daten anzugeben , ghet ja auch und du wirst sehn das es iwie net klappt

Antwort 16 von DeluxeStyle

kann es dir ned genau sagen, aber ich bin der meinung, dass die iframes das problem sind
die haben ne fixe breite, daher kann sich die tabelle nicht ändern

Antwort 17 von html.php.problem

es soll sich ja nur die höhe ändern , die breite soll bleiebn

Antwort 18 von DeluxeStyle

egal
du hast ja auch bei der höhe der iframes fixe angaben
daher kann sich da ja nichts ändern

Antwort 19 von html.php.problem

ich habs ja auf 100% geändert klappt net

Antwort 20 von DeluxeStyle

wie gesat, lass deine seite mal durch den html validator laufen
ich wünsch dir viel erfolg... bin jetzt off

Antwort 21 von katy

Hallo html.php.problem,

Höhenangaben in Prozent beziehen sich immer auf das umgebende Element. Wenn dies keine Höhenangabe hat laufen die % ins Leere und werden daher ignoriert vom Browser. Stelle also sicher, dass alle Elemente um den IFrame (html, body, ... ) eine Höhenangabe im CSS haben (im Zweifelsfall 100%). Versuch bei der Gelegenheit Elemente, die eine CSS-Entsprechung haben (center) zu ersetzen, um Layout-Störungen dadurch zu vermeiden.

katy

Ich möchte kostenlos eine Frage an die Mitglieder stellen:


Ähnliche Themen:


Suche in allen vorhandenen Beiträgen: