使用时,只需要在A标签处加上rel="lightbox"即可。e.g:
<Ahref=http://image2.sina.com.cn/dy/other/74/U1571P1T74D1184F1625DT20060618123137.jpgrel=lightbox><IMGsrc=http://image2.sina.com.cn/dy/other/74/U1571P1T74D1184F1625DT20060618123137.jpgheight="100"width="100"></A>
我自己也写了一个,不过涉及两个模块,(func.js公用库,和imagesLoader.js图片载入类)过阵子一并发上来。
<STYLEtype=text/css>
HTML#overlay{
FILTER:Alpha(opacity=50);BACKGROUND-IMAGE:url(images/blank.gif);BACKGROUND-COLOR:#000
}
</STYLE>
<SCRIPTlanguage=javascripttype=text/javascript>
<>
</SCRIPT>
<Ahref=http://image2.sina.com.cn/dy/other/74/U1571P1T74D1184F1625DT20060618123137.jpgrel=lightbox><IMGsrc=http://image2.sina.com.cn/dy/other/74/U1571P1T74D1184F1625DT20060618123137.jpgheight="100"width="100"></A>
<ahref="http://blog.never-online.net/article.asp?id=83"target="_blank">clickhereforback点击返回</a>