If your problem is that opening the image in a new window is probably due to the fact that href has clicked on me. It will not load other code, just go directly to href. Try to make the image into an html img tag, configure it to display it, and then clicking on any element makes it modal and blocks the display.
I do not know if the latest version of your page was what you tried, but if it was, there were several errors that prevented it from working. But it gets what you want. I'm sure you can work it out to make it do and see how you want, but this is what I did to make it work.
$(document).ready(function() { $("#sample").click(function(){ $.modal("<img src=\"test.php_files/aveskulov-large.jpg\" style=\"\"/>"); }); });
Also, if you do, you need to remove the img html tag so that it exists only in this modal. Goodluck with the rest. Postscript, if you don't have firebug, get its firefox plugin and it would say that you had a syntax error.
source share