alert - Why wont my script work for alerting upon image finding? -


alright have code @ bottom , works if give full image url im trying work if give part of , use * other part.

var thelist = ['*this.png','site.com/folder/*'];  for(i=0; i<theimages.length; i++) {    for(j=0; j<thelist.length; j++) {       if(theimages[i].src==thelist[j]) alert(thelist[j]+' found on page');    } } 

please , thanks

i... didn't think comment help, since seems did, guess i'll post answer:

it's not working because used == instead of take wildcard * account.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -