|
Posted by Jonathan N. Little on 12/18/06 17:24
Mike Silva wrote:
> Travis Newbury wrote:
>> PHP, ASP
>
> Thanks. Now, how would one choose between them? My website is on a
> Linux server, if that matters.
Well a very simple example in PHP for 1 - 31 backgrounds for each day of
the month...
<?php
// Get the day of the month
$dayOfTheMonth=date("j");
// For background images 'bg1.jpg' to 'bg31.jpg'
$background='pathToImages/bg' . $dayOfTheMonth . ".jpg";
?>
Then insert it in the style element within the head...
<style type="text/css">
BODY { background-image url(<? echo $background; ?>); ... }
...
Very, very simple example...
--
Take care,
Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Navigation:
[Reply to this message]
|