|
this code
eval("obj.style."+theProp+"='"+theValue+"'");
would evaluate to obj.style.src = imagepath;
there is no property for style called "src"
there is obviously an attribute for an image element of src which is what I guess is what you are trying to change?
so if my assumption is correct
eval("obj."+theProp+"='"+theValue+"'");
should be what you need.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
A foolish consistency is the hobgoblin of little minds
Thought for today:- I SEO the only industry where all the cowboys are Indians?
|