js图片相册弹出预览特效
js图片相册弹出预览特效是一款可以无限的添加图片数量,标题,描述,图片说明等功能。js图片相册图片预览弹出层
所属专题:相册代码
<script type="text/javascript">
Mediabox.scanPage = function() {
var links = $$("a").filter(function(el) {
return el.rel && el.rel.test(/^lightbox/i);
});
$$(links).mediabox({/* Put custom options here */}, null, function(el) {
var rel0 = this.rel.replace(/[[]|]/gi," ");
var relsize = rel0.split(" ");
return (this == el) || ((this.rel.length > 8) && el.rel.match(relsize[1]));
});
};
window.addEvent("domready", Mediabox.scanPage);
</script>