".alt" is a property of the "img" object / element.
".innerHTML" is not as clear-cut. I'd say it's more of a 'pseudo-property' - set it, and it will overwrite the contents of most elements with the markup you provide.
Dan
Coedit Limited - Delivering standards compliant, accessible web solutions
What the above code is accomplishing in my case is that an image which is marked with the id "largeimage" changes according to the current moused over thumbnail image and some caption text marked with the id "photoHeader" changes accordingly as well.
My question is as follows:
What if I want additional database fields that are part of this same recordset to behave in the above manner, do I simply add another row of
I'm not entirely sure I understand you, so why not just try it and find out? After all, curiosity may have killed the cat, but not any JavaScript developers that I know of
Dan
Coedit Limited - Delivering standards compliant, accessible web solutions
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.