I have been working on the this for about ten hours and I am no closer to grokking the method than when I started. None of the examples at http://www.ericmmartin.com/projects/simplemodal seem to address this task in terms and HTML code that I am familiar with. My test page is at: http://chesstao.com/test.php
I think I followed the instructions and tried:
<!DOCTYPE html> <html lang="en">
<head><title>test</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../css/demo.css" rel="stylesheet" />
<link href="../css/basic.css" rel="stylesheet" />
<link href="../css/gallery.css" rel="stylesheet" />
</head><body>
<div><a href="images/aveskulov-large.jpg" id="sample">
click me </a></div>
<!--jQuery-->
<script src="http://code.jquery.com/jquery-latest.pack.js"></script>
<script src="js/jquery.simplemodal-1.4.1-min.js"></script>
<script src="js/basic-min.js"></script>
<script src="js/gallery-min.js"></script>
<script>$("#sample").modal({opacity:80,overlayCss: {backgroundColor:"#fff"}});</script>
</body></html>
But the results were bad. I'd really like to know what simple solution am I missing!