You have posted in JavaScript forum and I moved it to the Java forum.

I made the link clickable and you would be able to post links after getting up with your post count.

Now for the solution you have to fire the event which displays the event in the thumbnail with the param as the url to the image