how to : another body background image every day?
how to : another body background image every day?
how to : another body background image every day?
how to : another body background image every day?
<style type="text/javascript">
onload = function() {
var D = new Date()
_day = D.getDate();
if(_day<10) _day = '0'+_day;
_month = D.getMonth()+1*1;
if(_month<10) _month = '0'+ _month;
DayImagePath = '/images_folder/'+_month+'/'+_day+'.jpg';
document.body.backgoundImage = 'url('+DayImagePath+')';
}
</script>
from root, path of image for february 5th : '/images_folder/02/05.jpg'
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
how to : another body background image every day?
<style type="text/javascript">
onload = function() {
var D = new Date()
_day = D.getDate();
if(_day<10) _day = '0'+_day;
_month = D.getMonth()+1*1;
if(_month<10) _month = '0'+ _month;
DayImagePath = '/images_folder/'+_month+'/'+_day+'.jpg';
document.body.backgoundImage = 'url('+DayImagePath+')';
}
</script>
from root, path of image for february 5th : '/images_folder/02/05.jpg'
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
how to : another body background image every day?
<style type="text/javascript">
onload = function() {
var D = new Date()
_day = D.getDate();
if(_day<10) _day = '0'+_day;
_month = D.getMonth()+1*1;
if(_month<10) _month = '0'+ _month;
DayImagePath = '/images_folder/'+_month+'/'+_day+'.jpg';
document.body.backgoundImage = 'url('+DayImagePath+')';
}
</script>
from root, path of image for february 5th : '/images_folder/02/05.jpg'
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
how to : another body background image every day?
how to : another body background image every day?
<style type="text/javascript">
onload = function() {
var D = new Date()
_day = D.getDate();
if(_day<10) _day = '0'+_day;
_month = D.getMonth()+1*1;
if(_month<10) _month = '0'+ _month;
DayImagePath = '/images_folder/'+_month+'/'+_day+'.jpg';
document.body.backgoundImage = 'url('+DayImagePath+')';
}
</script>
from root, path of image for february 5th : '/images_folder/02/05.jpg'
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
how to : another body background image every day?
how to : another body background image every day?
<style type="text/javascript">
onload = function() {
var D = new Date()
_day = D.getDate();
if(_day<10) _day = '0'+_day;
_month = D.getMonth()+1*1;
if(_month<10) _month = '0'+ _month;
DayImagePath = '/images_folder/'+_month+'/'+_day+'.jpg';
document.body.backgoundImage = 'url('+DayImagePath+')';
}
</script>
from root, path of image for february 5th : '/images_folder/02/05.jpg'
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
how to : another body background image every day?
how to : another body background image every day?
<style type="text/javascript">
onload = function() {
var D = new Date()
_day = D.getDate();
if(_day<10) _day = '0'+_day;
_month = D.getMonth()+1*1;
if(_month<10) _month = '0'+ _month;
DayImagePath = '/images_folder/'+_month+'/'+_day+'.jpg';
document.body.backgoundImage = 'url('+DayImagePath+')';
}
</script>
from root, path of image for february 5th : '/images_folder/02/05.jpg'
--
Stephane Moriaux et son (moins) vieux Mac déjà dépassé
Thanks but...
who is te mistake
if i name my directories images :images_folde
my names images : _1_2 _2_1 ....
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Azview Home Français</title>
<script language="JavaScript" src="scripts/controle.js"></script>
<script language="JavaScript" src="scripts/home.js"></script>
<script language="JavaScript"><!--
function randomImage() {
pic = new Array();
pic[0] = 'images/vignettes/v_lisboa2.gif';
pic[1] = 'images/vignettes/v_cityc2.gif';
pic[2] = 'images/vignettes/v_dauphins2.gif';
pic[3] = 'images/vignettes/v_streeta2.gif';
pic[4] = 'images/vignettes/v_rua2.gif';
pic[5] = 'images/vignettes/v_smilea2.gif';
pic[6] = 'images/vignettes/v_tejo2.gif';
pic[7] = 'images/vignettes/v_streetb2.gif';
pic[8] = 'images/vignettes/v_petitnoir2.gif';
pic[9] = 'images/vignettes/v_smileb2.gif';
pic[10] = 'images/vignettes/v_rossio2.gif';
pic[11] = 'images/vignettes/v_mona2.gif';
randomNum = Math.floor(Math.random()*pic.length);
theImage = pic[randomNum];
return theImage;
}
Thanks but...
who is te mistake
if i name my directories images :images_folde
my names images : _1_2 _2_1 ....
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Azview Home Français</title>
<script language="JavaScript" src="scripts/controle.js"></script>
<script language="JavaScript" src="scripts/home.js"></script>
<script language="JavaScript"><!--
function randomImage() {
pic = new Array();
pic[0] = 'images/vignettes/v_lisboa2.gif';
pic[1] = 'images/vignettes/v_cityc2.gif';
pic[2] = 'images/vignettes/v_dauphins2.gif';
pic[3] = 'images/vignettes/v_streeta2.gif';
pic[4] = 'images/vignettes/v_rua2.gif';
pic[5] = 'images/vignettes/v_smilea2.gif';
pic[6] = 'images/vignettes/v_tejo2.gif';
pic[7] = 'images/vignettes/v_streetb2.gif';
pic[8] = 'images/vignettes/v_petitnoir2.gif';
pic[9] = 'images/vignettes/v_smileb2.gif';
pic[10] = 'images/vignettes/v_rossio2.gif';
pic[11] = 'images/vignettes/v_mona2.gif';
randomNum = Math.floor(Math.random()*pic.length);
theImage = pic[randomNum];
return theImage;
}
Thanks but...
who is te mistake
if i name my directories images :images_folde
my names images : _1_2 _2_1 ....
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title>Azview Home Français</title>
<script language="JavaScript" src="scripts/controle.js"></script>
<script language="JavaScript" src="scripts/home.js"></script>
<script language="JavaScript"><!--
function randomImage() {
pic = new Array();
pic[0] = 'images/vignettes/v_lisboa2.gif';
pic[1] = 'images/vignettes/v_cityc2.gif';
pic[2] = 'images/vignettes/v_dauphins2.gif';
pic[3] = 'images/vignettes/v_streeta2.gif';
pic[4] = 'images/vignettes/v_rua2.gif';
pic[5] = 'images/vignettes/v_smilea2.gif';
pic[6] = 'images/vignettes/v_tejo2.gif';
pic[7] = 'images/vignettes/v_streetb2.gif';
pic[8] = 'images/vignettes/v_petitnoir2.gif';
pic[9] = 'images/vignettes/v_smileb2.gif';
pic[10] = 'images/vignettes/v_rossio2.gif';
pic[11] = 'images/vignettes/v_mona2.gif';
randomNum = Math.floor(Math.random()*pic.length);
theImage = pic[randomNum];
return theImage;
}