/ Published in: jQuery
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<script type="text/javascript" src="js/jquery-1.5.2.min.js"></script> <script type="text/javascript" src="modules/fancybox/jquery.fancybox-1.3.4.pack.js"></script> <link rel="stylesheet" type="text/css" href="modules/fancybox/jquery.fancybox-1.3.4.css" media="screen" /> <a id="single_image" href="images/main.jpg">asdf</a> <script type="text/javascript"> $(document).ready( function(){ $("a#single_image").fancybox(); }); </script>