P
Prophet
2 questions..........
I currently have a picture which changes depending on which day of the week
it is.
1) What I want to do is have the pictures sized for the page. As I also use
the pictures elsewhere, I currently make a second copy of the picture so
that it is the correct size - can I use the following code and size the
picture????
2) I wish to have more than 7 days worth of different pictures - I was going
to use random, but I want all users to see the same picture on the same day.
If I have 15 pictures, how do I do it???
Thank you in advance......
<script language="JavaScript">
<!--
function picture() {
var mydate=new Date()
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var win2array=new Array("images/notifier.gif",
"images/key.gif",
"education/images/bl12.gif",
"images/notifier_right_1.gif",
"images/book.gif",
"images/mwglbcy_seal.jpe",
"education/images/b333.gif")
document.write("<p align='right'><img src = '" + win2array[day] + "'/>")}
// -->
</script>
I currently have a picture which changes depending on which day of the week
it is.
1) What I want to do is have the pictures sized for the page. As I also use
the pictures elsewhere, I currently make a second copy of the picture so
that it is the correct size - can I use the following code and size the
picture????
2) I wish to have more than 7 days worth of different pictures - I was going
to use random, but I want all users to see the same picture on the same day.
If I have 15 pictures, how do I do it???
Thank you in advance......
<script language="JavaScript">
<!--
function picture() {
var mydate=new Date()
var day=mydate.getDay()
var month=mydate.getMonth()
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var win2array=new Array("images/notifier.gif",
"images/key.gif",
"education/images/bl12.gif",
"images/notifier_right_1.gif",
"images/book.gif",
"images/mwglbcy_seal.jpe",
"education/images/b333.gif")
document.write("<p align='right'><img src = '" + win2array[day] + "'/>")}
// -->
</script>