Friday, 6 September 2013

Jquery image recognition on a website, bookmarklet

Jquery image recognition on a website, bookmarklet

I'm plugging this into my bookmarklet, but at the moment it's just
returning a prompt stating every images' URL. What I was hoping for is for
it to just highlight the images on the page instead of prompting me.
Anyone know how I could do this?
$.ajax({
url: 'MYurl',
success: function(data) {
$("img", data).each(function() {
alert( $(this).attr("src") );
});
}
});

No comments:

Post a Comment