For Javascript:
Is it possible for my browser to play some sort of sound/music when a certain image appears? Could it perhaps play an mp3 file in my music library? Right now, the best I can do is:
if (document.getElementById("happyface")) {
window.alert("Attention: Happy face detected.");
}
I should also mention that I have the page constantly refreshing itself, so a loop isn't necessary (at least, I don't think so).