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