Simora
06-14-2009, 06:38 AM
I have code to determine the correct image for that specific week. The image name changes, ( increments by 1 each Wednesday ) so I determine the current week name by using Javascript.
var newnum = (weekno + 700);
var dex = "/index.htm";
var graphic = ".jpg";
var fold = "/Images/";
var text = "http://www.mysite.com/";
var thisDay=today.getDay();
document.write( text + newnum + fold + newnum + graphic);
This would write http://www.mysite.com/725/Images/725.jpg
How can I get the image URL , ( The section that I can display with document.write ) to load inside a table or DIV. I need to pass the result of this code , so that I can load it when the page open.
var newnum = (weekno + 700);
var dex = "/index.htm";
var graphic = ".jpg";
var fold = "/Images/";
var text = "http://www.mysite.com/";
var thisDay=today.getDay();
document.write( text + newnum + fold + newnum + graphic);
This would write http://www.mysite.com/725/Images/725.jpg
How can I get the image URL , ( The section that I can display with document.write ) to load inside a table or DIV. I need to pass the result of this code , so that I can load it when the page open.