Posted in Javascript onFebruary 20, 2007
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了
greybox——不开新窗口看新的网页
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@