Fading text black/white
PHP Code
+ 0 likes
Please Register to submit score.
| Average Score | 0.0 (of 0 scores) |
| Date Added | Aug 18, 2009 |
| Last Updated | Aug 18, 2009 |
| Tags | black fading php text white |
Introduction
this can be transformed to do whatever you need, I just made it to mess around
PHP Snippet:
Fading text black/white
Posted on Aug 20, 2009 12:48 am
Posted on Aug 20, 2009 12:48 am
| Code: |
| /******************/ /*White Background*/ /******************/ for($i = 1; $i < 12; $i++){ if ($i == 11) { echo "<p style='color:#fff'>".$i."</p>"; } elseif ($i == 10) { echo "<p style='color:#ccc'>".$i."</p>"; } elseif ($i < 10) { echo "<p style='color:#".str_repeat($i,3)."'>".$i."</p>"; } } /******************/ /*Black Background*/ /******************/ for($i = 1; $i < 12; $i++){ if ($i == 1) { echo "<p style='color:#fff'>".$i."</p>"; } elseif ($i == 2) { echo "<p style='color:#ccc'>".$i."</p>"; } elseif ($i > 2) { echo "<p style='color:#".str_repeat(12-$i,3)."'>".$i."</p>"; } } |
| Code: |
/******************/ /*White Background*/ /******************/ for($i = 1; $i < 12; $i++){ if ($i == 11) { echo "<q style='color:#ccc'>".$i."</q>"; } elseif ($i == 10) { echo "<q style='color:#fff'>".$i."</q>"; } elseif ($i < 10) { echo "<q style='color:#".str_repeat($i,3)."'>".$i."</p>"; } } /******************/ /*Black Background*/ /******************/ for($i = 1; $i < 12; $i++){ if ($i == 1) { echo "<q style='color:#ccc'>".$i."</q>"; } elseif ($i == 2) { echo "<q style='color:#fff'>".$i."</w>"; } elseif ($i > 2) { echo "<q style='color:#".str_repeat(12-$i,3)."'>".$i."</q>"; } } |
PHP Snippet:
Fading text black/white
Posted on Aug 20, 2009 2:22 am
Posted on Aug 20, 2009 2:22 am
really doesnt matter now does it?
wtf?
youre a !@#$ idiot...
dont ever try to "correct" me again.
| Code: |
elseif ($i == 2) { echo "<q style='color:#fff'>".$i."</w>"; } elseif ($i < 10) { echo "<q style='color:#".str_repeat($i,3)."'>".$i."</p>"; } |
wtf?
youre a !@#$ idiot...
dont ever try to "correct" me again.






