View Single Post
  #17 (permalink)  
Old 02-26-10, 08:11 PM
naumeer naumeer is offline
Newbie Coder
 
Join Date: Feb 2010
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
the image worked but whatever i insert in this table that image is appearing
HTML Code:
<td><img id="banner" src="http://xyz.com/jan.jpg" alt="http://xyz.com/jan.jpg" height="224px" border="0" width="694px" /></td>
i have changed var monthimages = new Array( ) into my images name which r on ftp and the source in
HTML Code:
document.getElementById("banner").src="http://xyz.com/" + monthImages[d.getMonth()];
 document.getElementById("banner").alt="http://xyz.com/" + monthImages[d.getMonth()];
from where the images r coming the folder now do i have to insert every image with table for img src which i inserted above like all 12 banner images and when i change my date on my system changes of the banner should work automatically? sorry im kinda new sorry for the mess and yea i tried to test it through my system in dreamweaver

Last edited by naumeer; 02-26-10 at 08:31 PM.
Reply With Quote