Hi,
ich glaube wir bewegen uns mehr in solch eine Richtung:
Bei mir funktioniert aber leider auch das nicht.
ich glaube wir bewegen uns mehr in solch eine Richtung:
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
<head>
<!--[if gte IE 5]>
<style type="text/css">
#max {
width:expression
(document.body.clientWidth
> 800? "800px": "auto")}
</style>
<![endif]-->
<style type="text/css">
#max{
max-width: 800px;
}
</style>
</head>
<body>
<div>
<p id="max">
<img src="http://www.autowallpaper.de/Wallpaper/BMW/BMW_645_CI_Coupe_Cabriolet/Bilder/BMW_645_CI_02.jpg">
</p></div>
</body>
</html>
|
Bei mir funktioniert aber leider auch das nicht.
Jetzt gehts aber
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>max-width</title>
<!--[if gte IE 5]>
<style type="text/css">
#max {
width:expression(document.body.clientWidth > 800? "800px": "auto")}
</style>
<![endif]-->
<style type="text/css">
#max{
max-width:800px;
}
</style>
</head>
<body>
<div>
<img src="http://www.autowallpaper.de/Wallpaper/BMW/BMW_645_CI_Coupe_Cabriolet/Bilder/BMW_645_CI_02.jpg" id="max">
</div>
</body>
</html>
|
Ohja klappt tatsächlich, nur eigentlich will ich das in eine php Datei haun.
Und zwar in Zeile 55 ist das id="max" nur wenn ich versuche den Code dort einzubauen bekomme ich Fehler... geht das überhaupt da rein ?
Und zwar in Zeile 55 ist das id="max" nur wenn ich versuche den Code dort einzubauen bekomme ich Fehler... geht das überhaupt da rein ?
|
|
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 |
<?php
#######################################################
$deine_mail = "info@domain.de"; //Hier deine Mailadresse
#######################################################
if($_REQUEST['url']!=''){
$url=htmlentities(stripslashes($_REQUEST['url']));
$ip=$_SERVER['REMOTE_ADDR'];
$browser=$_SERVER['HTTP_USER_AGENT'];
$pfad=$_SERVER['REQUEST_URI'];
$host = gethostbyaddr($ip);
?>
<html>
<head>
<title>Vollbild</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="robots" content="all">
<meta http-equiv="imagetoolbar" content="no">
<style type="text/css">
<!--
body {
background-color: #333333;
}
a:link {
color: #CCCCCC;
}
a:visited {
color: #CCCCCC;
}
a:hover {
color: #CCCCCC;
}
a:active {
color: #CCCCCC;
}
-->
</style></head>
<body>
<?php
$_REQUEST['url']=strip_tags($_REQUEST['url']);
$grafik_war=addslashes($_REQUEST['url']);
$endung=strrchr($grafik_war, ".");
$erlaubt=array(".jpg", ".JPG", ".gif", ".GIF", ".png", ".PNG", ".jpeg", ".JPEG", ".bmp", ".BMP");
if(in_array($endung, $erlaubt)){
?>
<table border="0" cellspacing="0" cellpadding="10" width="100%" height="100%">
<tr>
<td align="center" valign="middle">
<table cellpadding="4" cellspacing="1" bgcolor="#999999" class="standard">
<tr>
<td class="heads" align="center"><b>Vollbild</b></td>
</tr>
<tr>
<td class="standard">
<a href="#" ONCLICK="javascript:self.close()"><img border="0" id="max" src="<? echo $url ?>" /></a></td>
</tr>
<tr>
<td class="heads" align="center" nowrap><b><a class="heads" href="#" ONCLICK="javascript:self.close()"><font color="000000">Schließen!!</font></a></b></td>
</tr>
</table>
</td>
</tr>
</table>
<?php
} else {
?>
<table border="0" cellspacing="0" cellpadding="10" width="100%" height="100%">
<tr>
<td align="center" valign="middle">
<table cellpadding="4" cellspacing="1" bgcolor="#ffffff" class="standard">
<tr>
<td class="heads" align="center"><font class="small"><span style="color:#d6001b;"><b>WAS versuchst Du da????<br><br>Deine IP: <? echo $ip ?><br>Dein Browser: <? echo $browser ?><br>Dein Hoster: <? echo $host ?><br>Dein augerufener Pfad: <? echo $pfad ?><br><br>wurden an den Webmaster übersendet!</b></span></font></td>
</tr>
</table>
</td>
</tr>
</table>
<?php
mail($deine_mail, "Fehler in der forum_pic.php","
Ein User hat am ".date('d.m.Y - H:i:s',time())." versucht die forum_pic.php mit einem Pfad zur einer nicht vorgegebenen Datei aufgerufen!
Seine IP: ".$_SERVER['REMOTE_ADDR']."
Sein Browser: ".$_SERVER['HTTP_USER_AGENT']."
Der Pfad: ".$_SERVER['REQUEST_URI']."
Dein Hoster: ".$host."
","From: <$config[site_email]>");}
?>
</body>
</html>
<?php
}
?>
|

- 1
- 2

Ähnliche Themen
-
Web | Programmierung »-
PHP-Dateien auslesen und bearbeiten
(4. Januar 2008, 18:42)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Flash Datei (Bild) als Webseiten logo ? ich brauche noch mal hilfe
(27. März 2008, 12:25)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Farbverlauf hinter content
(7. April 2008, 22:35)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
Profilfeld, klappbar machen,wie?
(15. März 2008, 20:38)
-
alte Versionen [1.6.03|1.6.1|1.6.4] »-
banner auf webseite zentrieren
(4. März 2008, 15:41)



