Hi tuanphan,
Thank you for your reply. I didn't word my question properly - what I meant to say was: Since the jQuery script that you provided goes in the footer, the alt text also appears in the footer. So the alt text is not an attribute of the <img> tag. How, then, does the search engine bot know which image the alt text is associated with?
Thank you.