Principal Web Solutions
|
Javascript
Make your images with date like this
2-11-08.jpg or 2-11.jpg etc. slashes won't play nice.
You add a 1 do the month because it starts at 0
var currentDate = new Date()
var month =currentDate.getMonth() + 1
var day = currentDate.getDate()
var year = currentDate.getFullYear()
document.writ e("
<a href='/path/to/imgs/" + month +
"-" + day + "-"+year + ".jpg'>link</a>") ;
You can do the same thing with PHP. Using the DATE function. Something like this. Your page has to be a php file though.
<img src="<?date('m-d-Y')?> ;.jpg">
Javascript Tutorial
http://www.tizag.com/javascriptT/javascriptdate.php
PHP date tutorial
http://www.tizag.com/phpT/phpdate.php
Darrell
Web Developer
http://www.PrincipalWebSolutions.com |
|
|
nora r
|
I don't know if you can get one to change by the date, but I have a code where you can change your greeting by what time of the day it is:
http://z12.invisionfree.com/Final_F antasy_Ap/index.php?act=idx
this is one of my boards, It says"good afternoon" now. If you want a code like this, write me and I'll give it to you
ralahinn1@yahoo.com
it's in html, and I didn't make it,but in the code is the name of the person that did. I hope you always use a testing place for any code you get before you use it on your actual page too, because sometimes someone can slip things in codes.
|
|
|
Margus M
|
Names your puctures like DAYpix{year}_{month}_{day}.png and then just use dynamic filling.
|
|
|
PayneLessDesigns.com
|
This is a good one and you can have the script mailed to you:
http://javascript.internet.com/p age-details/week-day-image.html
Ron
|
|
|