Highslide.js是一款基于js实现的网页中图片展示插件(2)

jQuery(document).ready(function($) { $(".post_content img").each(function(i) { _self = $(this); if (!this.parentNode.href) { imgsrc = ""; if (_self.attr("data-original")) { imgsrc = _self.attr("data-original"); } else { imgsrc = _self.attr("src"); } $(this).wrap("<a href='" + imgsrc + "'></a>"); } }); hs.graphicsDir = "/skin/highslide/"; hs.outlineType = "rounded-white"; hs.dimmingOpacity = 0.8; hs.outlineWhileAnimating = true; hs.showCredits = false; hs.captionEval = "this.thumb.alt"; hs.numberPosition = "caption"; hs.align = "center"; hs.transitions = ["expand", "crossfade"]; hs.addSlideshow({ interval: 5000, repeat: true, useControls: true, fixedControls: "fit", overlayOptions: { opacity: 0.75, position: "bottom center", hideOnMouseOut: true } }); });

内容版权声明:除非注明,否则皆为本站原创文章。

转载注明出处:https://www.heiqu.com/wjgspg.html