![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
I am trying to make a picture of the day script and I am having problems displaying the image. Here is the code I have but I can not get the image to show up. I have declared "image" as the picture file name. var months=new Array(13); months[1]="1"; months[2]="2"; months[3]="3"; months[4]="4"; months[5]="5"; months[6]="6"; months[7]="7"; months[8]="8"; months[9]="9"; months[10]="10"; months[11]="11"; months[12]="12"; var time=new Date(); var lmonth=months[time.getMonth() + 1]; var date=time.getDate(); var image=lmonth +"-" +date+".jpg" //document.write(lmonth + "-" ); //document.write("0" + date + "<BR>"); //document.write(image); document.write("<Center><Img alt='Pic of The Day'> <img src=/image/" + image + "></center>"); /script |
#2
| ||||
| ||||
|
|
In article <1146718169.487623.56660 (AT) i39g2000cwa (DOT) googlegroups.com>, CStewy took the hamburger, threw it on the grill, and I said "Oh wow"... I am trying to make a picture of the day script and I am having problems displaying the image. Here is the code I have but I can not get the image to show up. I have declared "image" as the picture file name. var months=new Array(13); months[1]="1"; months[2]="2"; months[3]="3"; months[4]="4"; months[5]="5"; months[6]="6"; months[7]="7"; months[8]="8"; months[9]="9"; months[10]="10"; months[11]="11"; months[12]="12"; |
|
var time=new Date(); var lmonth=months[time.getMonth() + 1]; |
|
var date=time.getDate(); var image=lmonth +"-" +date+".jpg" |
|
document.write("<Center><Img alt='Pic of The Day'> <img |
![]() |
| Thread Tools | |
| Display Modes | |
| |