I am using a simple script to find an image on a page and get its source.
function img_find() {
var img_find2 = document.getElementsByTagName(\"img\")[0].sr
I searched the whole web for a solution to this, maybe this will help if someone else searches the same.
for(var i = 0; i< document.images.length; i++){
document.images[i].style.border = "1px solid #E0FDA6";
}
Meaning, search all images that have style tag (border in this example) and set all borders to E0FDA6 (useful to reset single highlighted images), but I guess it can be used for everything with style tag.
Rg, Anjanka