demo:http://www.healdream.com/upload/html/jquery/greybox/test.html
down:http://www.51files.com/?9UF4NA8RCRX5A0Z2F170
使用方法
<script></script>
<script></script>
<script> <BR> var GB_ANIMATION = true; <BR> $(document).ready(function(){ <BR> $("a.greybox").click(function(){ <BR> var t = this.title || $(this).text() || this.href; <BR> GB_show(t,this.href,450,600); <BR> return false; <BR> }); <BR> }); <BR> </script>
满简单的,将两个js包含进来,然后链接css,最后对所有class为greybox的链接响应click事件,就KO了