hi
gibt es bos, die meinetwegen automatisch nach 2 min einen Text schireben für knuddels, cgi-chats, irc und des gleichen?
mfg supersass1 ![]()
hi
gibt es bos, die meinetwegen automatisch nach 2 min einen Text schireben für knuddels, cgi-chats, irc und des gleichen?
mfg supersass1 ![]()
5$ so viel? wär froh wenn ich soviel hätt ![]()
meinst du jetzt oben in der konfiguration oda im ganzen quelltext?
[php:1:2d5eef979f]<?php
//<<<<<<<<<<<<<<<<<<<<<<<< KONFIGURATION >>>>>>>>>>>>>>>>>>>>>>>>>>>>>
$subdir = "../upload"; //Bilderverzeichnis
$heading = "User-Pics"; //Überschrift
$imagewidth = 120; //Thumbnailbreite (Min 50; Max 200)
$bigimagewidth = 500; //Originalbild-Breite (Min 250; Max 600)
$colums = 3; //Spalten (Min 2; Max 10)
$shadow = false; //Schatten? Ja = true; Nein = False
//<<<<<<<<<<<<<<<<<<<<<< KONFIGURATION ENDE >>>>>>>>>>>>>>>>>>>>>>>>>>
function shadowtable($imagehtml)
{
$output .= "<table style='border-style: none;' cellspacing='0' cellpadding='0' height='100%'>
<tr><td rowspan='2' colspan='2' style='border-style: none;'>
$imagehtml</td><td valign='top' style='border-style: none;' background='shadow/r.gif'>
</td></tr><tr>
<td style='border-style: none;' background='shadow/r.gif'></td></tr>
<tr><td style='border-style: none;' background='shadow/u.gif' align='left'>
</td>
<td style='border-style: none;' background='shadow/u.gif'></td>
<td style='border-style: none;' valign='top'>
</td>
</tr></table>";
return $output;
}
function showpicture($image, $widthget, $subdir, $shadow)
{
if ($shadow == true)
{
$output = "<td align='center' valign='middle'>";
$imagehtml = "<a href='$PHP_SELF?image=$image&view=big'></a>";
$output .= shadowtable($imagehtml);
$output .= "<span class='text'>" .$image. "</span></td>";
}
else
{
$output = "<td align='center' valign='middle'>";
$output .= "<table style='border-style: none;' cellspacing='0' cellpadding='0' height='100%'>
<tr><td style='border-style: none;'>";
$output .= "<a href='$PHP_SELF?image=$image&view=big'></a></td></tr></table>
<span class='text'>" .$image. "</span></td>";
}
return $output;
}
function showbigpicture($subdir, $imagewidth, $image, $shadow, $von)
{
$i = 0;
$dir = opendir($subdir);
while ($file = readdir($dir))
{
$imagechecker = @getimagesize($subdir. "/" .$file);
if ($imagechecker[2] == 1 OR $imagechecker[2] == 2)
{
$images[$i] = $file;
if ($file == $image)
{
$imagehtml = "";
$aktuell = count($images);
if ($shadow == true)
{
echo shadowtable($imagehtml);
echo "<table width='100%' border='0'>
<tr><td class='text' align='left' width='50%'>Bild " .$aktuell. " von " .$von. "</td>
<td class='text' align='right' width='50%'>Bildname: $file</td>
</tr></table>";
}
else
{
echo $imagehtml. "
";
echo "<span class='text'>Bild " .$aktuell. " von " .$von. "</span>";
}
$count = $i;
}
$i++;
}
}
echo "<table border='0' width='100%' align='center'><tr><td align='center' width='33%'>";
if ($count > 0)
{
$output .= "[url='' .$PHP_SELF. '?image=' .$images[0]. "&view=big'] << Erstes[/url]";
$output .= "[url='' .$PHP_SELF. '?image=' .$images[$count-1]. "&view=big'] < Zurück [/url]";
}
else {$output .= "";}
$output .= "</td><td align='center'>";
$output .= "Back";
$output .= "</td><td align='center' width='33%'>";
if ($count < count($images)-1)
{
$output .= "[url='' .$PHP_SELF. '?image=' .$images[$count+1]. "&view=big'] Vorwärts > [/url]";
$output .= "[url='' .$PHP_SELF. '?image=' .$images[$von-1]. "&view=big'] Letztes >> [/url]";
}
else {$output .= "";}
$output .= "</td></tr></table>";
return $output;
}
//<<<<<<<<<<<<< HAUPTPROGRAMM >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
echo "<center><span class='bigtext'>$heading</span></center>
";
$count = 1;
$zaehler = 0;
$dir = opendir($subdir);
while ($file = readdir($dir))
{
$imagechecker = @getimagesize($subdir. "/" .$file);
if ($imagechecker[2] == 1 OR $imagechecker[2] == 2)
{
$zaehler ++;
}
}
closedir($dir);
if (!$view)
{
$dir = opendir($subdir);
echo "<table align='center' cellpadding='5' cellspacing='0' style=\"border:1px solid black; empty-cells:show\">";
while ($file = readdir($dir))
{
$imagechecker = @getimagesize($subdir. "/" .$file);
if ($imagechecker[2] == 1 OR $imagechecker[2] == 2)
{
$zaehler ++;
if ($count == 1){echo "<tr>";}
echo showpicture($file, $imagewidth, $subdir, $shadow);
if ($count < $colums) {$count++;}
else {$count = 1; echo "</tr>";}
}
}
closedir($dir);
echo "</table>";
}
else
{
echo "
";
echo "<table align='center' cellpadding='5' cellspacing='0' style=\"border:1px solid black; empty-cells:show\">";
echo "<tr><td>";
echo showbigpicture($subdir, $bigimagewidth, $image, $shadow, $zaehler);
echo "</td></tr></table>";
}
if ($shadow == true){$shaus = "Ja";} else {$shaus = "Nein";}
echo "
<center><span class='text'>Thumbnailgröße: $imagewidth Pixel
Normale Bildgröße: $bigimagewidth Pixel
Spalten: $colums
Schatten: $shaus</span></center>";
?>[/php:1:2d5eef979f]
oder mit nem programm:
beschäftige dich ma mit photoshop, fireworks und desgleichen.... entwerfe damit eine hp (als ein großes pic) und dann sehen wa weiter...
/bilder <-- bilderverzeichnis
/bilder <-- leigt auch die .php datei, in der der Pfad /bilder angegeben werden soll
das thema scheint untergegangen zu sein....
^ er tut mir (nicht) leid
< freut such aus wochenende
v freunt sich auch aufs wochenende
<script type="text/javascript">
function Go (select) {
var wert = select.options[select.options.selectedIndex].value;
if (wert == "leer") {
select.form.reset();
parent.frames["unten"].focus();
return;
} else {
if (wert == "ende") {
top.location.href = parent.frames[1].location.href;
} else {
parent.frames["unten"].location.href = wert;
select.form.reset();
parent.frames["unten"].focus();
}
}
}
</script>
Alles anzeigen
ich kenn mich mit javascript nicht so gut aus, wie bring ich den dazu, dass er das im ganzen fenter öffnet, und nich im frame....
mfg supersass1 ![]()
hi,
ich hab folgende auswahlliste:
<form action="upload.php">
<select name="top5" size="3">
<option>fun</option>
<option>schule</option>
<option>freunde</option>
<option>sonstige</option>
</select>
</p>
</form>
Alles anzeigen
nun möcht ich, dass wenn man die verschiedenen Optionen hat, man auf unterschiedliche Dateien zugreift:
bei fun auf fun.php
bei schule auf schule.php usw...
wie geht das?
mfg supersass1 ![]()
^ sollte mit dem davor pennen gehn ![]()
< lange weile
v ist männlich?!?
Lasagne - Entenbrustfilet
jo thx ![]()
mfg supersass1 ![]()
Einstein - Nudel
kannst machen was du willst ![]()
und wie sieht das mit bilder aus? darf ich einfach so bilder von andern Seiten kopieren?