
-----------------------------------
asteffes
Tue May 30, 2006 3:28 pm

Simple Internet Explorer Error; can't figure it out
-----------------------------------
Hello all,

When I load up my webpage, I get:

"
Error line 13
Document[...] is null or not an object"

Here is my javascript @ line 13:


    
     function movepic(img_name,img_src)
      {
     document[img_name].src=img_src;
      }



I call this function with a mouseover event to change the image:




Any help would be greatly appreciated, thanks in advance

-----------------------------------
rdrake
Wed May 31, 2006 11:38 am


-----------------------------------
Typically you need to do something like the following to modify an object's styles:document.getElementById[img_name].styleOf course, you will need each image to have an id="" attribute added to their tags.
