Full-service Internet Marketing & Web Development
Recent Posts

Sponsors
![]() |
Pic Of The WeekCode Wizard, 12-30-2006 |
This simple script will open a certain image based on what day of the month it is. A simple, yet effective Pic Of The Week script.
<?
/*This script read the day of the month and does the work from there.
*Create images called week_1.jpg, week_1_small.jpg, all the way to 4, lees
*you choose to rename it. Change $caption to whatever your silly comment is going to be
*all you have to do to get this to work is to add <? include "potw.php" ?> in your script, and
*you're set. ::Gorktic untouchableex@home.com::
*/
$dow = date("j");
//WEEK ONE SETTINGS
if ($dow <= 7) {
$largepic = "week_1.jpg";
$smallpic = "week_1_small.jpg";
$caption = "0mg l3ik wtf";
}
//WEEK TWO SETTINGS
else if ($dow >= 8 && $dow <= 14) {
$largepic = "week_2.jpg";
$smallpic = "week_2_small.jpg";
$caption = "0mg l3ik wtf 2";
}
//WEEK THREE SETTINGS
else if ($dow >= 15 && $dow <= 21) {
$largepic = "week_3.jpg";
$smallpic = "week_3_small.jpg";
$caption = "0mg l3ik wtf 3";
}
//WEEK FOUR SETTINGS
else {
$largepic = "week_4.jpg";
$smallpic = "week_4_small.jpg";
$caption = "0mg l3ik wtf 4";
}
if($QUERY_STRING == "view") {
//HTML FOR THE LARGE PICTURE DISPLAY
echo "<html><body bgcolor=#006699>";
echo "<font size=4><center><b>Pic Of The Week</b></font size=4>";
echo "<hr size=2 color=#ffffff noshade size=75%>";
echo "<center><img src="$largepic"><br>";
echo "$caption</center>";
echo "</body></html>";
} else {
//HTML FOR THE SMALL PICTURE DISPLAY
echo "<center><font size=1><b>Pic Of The Week</b>";
echo "<a href="potw.php?view"><img src="$smallpic" border="0"></a><br>";
echo "<font size=1>$caption</font></center>";
}
?>
|
|
Subscribe Now to receive new posts via Email as soon as they come out.
Comments
Post your comments

