View Single Post
  #16 (permalink)  
Old 02-26-10, 06:20 PM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
Quote:
Originally Posted by naumeer View Post
unable to make this work shows a table but its empty with pictures name rolling like xyz.com/jan.jpg, xyz,com/feb.jpg etc
Your the one that used xyz.com as an example.
HTML Code:
<img height="224" border="0" width="694"  src="http://xyz.com/abc.jpg">
Put in your URL.
HTML Code:
document.getElementById("banner").src="http://xyz.com/" + monthImages[d.getMonth()];
 document.getElementById("banner").alt="http://xyz.com/" + monthImages[d.getMonth()];
And if the names in this array aren't correct, change them to the correct names.
HTML Code:
var monthImages = new Array("jan.jpg","feb.jpg","mar.jpg","apr.jpg","may.jpg","jun.jpg","jul.jpg","aug.jpg","sep.jpg","oct.jpg","nov.jpg","dec.jpg");
__________________
Jerry Broughton
Reply With Quote