Hi,
Thanks for the help on this issue:
> I'm trying to get the following code to work:
>
> bullet = new Image();
> bullet.src = "../images/bullet_black_dot.gif";
>
> function turn_on(image_number){
> document.main[image_number].src = bullet.src;
> }
The problem was that I was using a number as an object name, which you
pointed out is a no-no. I tagged a letter on the front of all the img names
and changed the code to read:
function turn_on(image_number){
document.main["I" + image_number].src = bullet.src;
}
which worked fine. And, for folks who asked, yes, there is a form name
"main" and yes I'm using "if (document.images){}". Sorry I left out those
bits of code in my sample.
Thanks,
Jack
____________________________________________________________________
--------------------------------------------------------------------
Join The NEW Web Consultants Association FORUMS and CHAT:
Register Today at: http://just4u.com/forums/
Web Consultants Web Site : http://just4u.com/webconsultants
Give the Gift of Life This Year...
Just4U Stop Smoking Support forum - helping smokers for
over three years-tell a friend: http://just4u.com/forums/
To get 500 Banner Ads for FREE
go to http://www.linkbuddies.com/start.go?id=111261
---------------------------------------------------------------------