Hello,
I have this script on my page. I am having a hard time getting a small image to work in it. Like a pumkin for Halloween or a Santa image for Christmas to properly scroll after the name of the holiday.(desription)
<marquee scrolldelay=”110″ width=”210″ height=”10″>
<SCRIPT LANGUAGE=”JavaScript”>
var date = new Date(“October 31 2003”);
var description = “Halloween!”; [color=red]<—*This is where I tried <img src=”” width=”” height=””>—!>
var now = new Date();
var diff = date.getTime() – now.getTime();
var days = Math.floor(diff / (1000 * 60
document.write(“<center><h3>”)
if (days > 1) {
document.write(days+1 + ” days ’til ” + description);
}
else if (days == 1) {
document.write(“Only 2 days ’til ” + description);
}
else if (days == 0) {
document.write(“Tomorrow is ” + description + “!”);
}
else {
document.write(“Happy ” + description + “!”);
}
document.write(“</h3></center>”);
// End –>
</script></marquee>
I wonder if I can also use standard image size tags in the img src code so I don’t have to create a specific sized image for it.
Also do you know, if I can get the image to work, how I can get the image not to show up as a square, and more like the outline of the character in the image? Will Transparency work in a gif editor?
Any suggestions? I am very new to Java Script Please Help.