The paragraph <p id="desc"></p> needs to have some content in there. Else, when you try to access the text node inside it (which doesn't exist) to change the description, a JavaScript error is produced and the function stops processing resulting in the image being loaded like a normal link click. You'll note that in the ALA article, they have some placeholder text in there.
|