PHP-Logo
Druckansicht von http://www.php-homepage.de/scripts/source_601.html

PHP-Logo
[ Main Menue ]
Homepage
Downloads
Artikel
Scripts
Forum
PHP-Manual
Links
News
Freelancer
Bücher
RuDolF
Suche
Misc
Über diese Seite
Kontakt
Wunschzettel
MyGuestbook
*
[ Suche ]
*
[ Partner ]


Domain Webhosting
*
[ Partner Sites ]
Dynamic-Webpages
PHP-Center
PHP-Welt
phpUG.de
Random Link
*
[ Autoren gesucht! ]
PHP-Homepage.de sucht laufend Autoren für News und Artikel
Interesse?
*

Follow on Twitter - @phphomepage

RSS Feed blogoscoop

[Start] [Suche] [Neue Einträge

216 HTML-Farben

<?
/* ************************************************* *
* File: htmlfarben.php *
* ************************************************* *
* *
* Autor: Maik Mrosek *
* eMail: m.maik@gmx.de *
* Datum: 2003-09-11 *
* copyright: http://mmk.no-ip.com *
* *
* Hinweis! zur freie Verfügung. Actung! Der Text, *
* das Copyright Zeichen und meine eMail-Adresse *
* darf auf keinen fall gelöscht oder geändert *
* werden. Ansonsten viel Spass mit dem Script. *
* *
* ************************************************* *
*/
?>
<html><head><title>216-ner farbpalette</title>
<style type="text/css">
.s { FONT: bold 12px Verdana, Geneva, Arial; color : #000000; }
.w { FONT: bold 12px Verdana, Geneva, Arial; color : #FFFFFF; }
H2 { Font: bolder Verdana, Geneva, Arial; color : #000066; }
P { FONT: bold 12px Verdana, Geneva, Arial; color : #000000; }
</style></head><body bgcolor="#efefef" scroll="auto"><center><br>
-- idee+written (c) by mmk, m.maik@gmx.de //-->

HTML-Farben


216 Farben, Hexcode-Format => 255,255,255 => FF,FF,FF


$anfang=0; $max=255; $step=51;
$zahl=0; $zahl1=0; $zahl2=0;
$z=1; $cols=6; $farben=216; $div=$farben/$cols;
for($i=0; $i<$farben; $i++) {
$z_zahl2 = strtoupper(str_pad(dechex($zahl2),2,"0",STR_PAD_LEFT));
$z_zahl1 = strtoupper(str_pad(dechex($zahl1),2,"0",STR_PAD_LEFT));
$z_zahl = strtoupper(str_pad(dechex($zahl),2,"0",STR_PAD_LEFT));
echo "";
if($zahl < $max) { $zahl = $zahl + $step; } else { $zahl=$anfang; }
if($z % $cols == 0) { if($zahl2 < $max) $zahl2 = $zahl2+$step; else $zahl2 = $anfang;
if($z % $div == 0) { if($zahl1 < $max) $zahl1 = $step+$zahl1; else $zahl1=$anfang; }
echo ""; } $z++; } // ende for ?>

#$z_zahl2$z_zahl1$z_zahl
" align="center" style="font: bold 10px Verdana; color: #000066;">idee+written and &copy by mmk, m.maik@gmx.de

© Copyright 1999 - 2011 by Mark Kronsbein | Impressum | NutzungsbedingungenWeiterempfehlen | Seitenanfang
0.1968