CSWSite/public/web/js/script.js

(开头部分) 16KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

//Baidu Count
var _hmt = _hmt || [];
(function () {
    var hm = document.createElement("script");
    hm.src = "//hm.baidu.com/hm.js?a3edfd653736089ca7c875a3ea4ebe59";
    var s = document.getElementsByTagName("script")[0];
    s.parentNode.insertBefore(hm, s);
})();

// JavaScript Document
(function ($) {
    jQuery.fn.picScroll = function (options) {
        var defaults = {
            speed: 2000
        }
        var options = $.extend(defaults, options);
        this.each(function () {
            var $pic = $(this).children(".picList").children("ul");
            var $control = $(this).children(".control");
            var $picli = $pic.children("li");
            var picWidth = $picli.width();
            var picLength = $picli.length;
            var lastBtn = $(this).children(".lastBtn");
            var nextBtn = $(this).children(".nextBtn");
            var controlHtml;
            var index = 0;
            var timer;
            $pic.parent().css({
                "position": "relative",
                "overflow": "hidden"
            });
            $pic.css("position", "absolute");
            $pic.find("li").css("float", "left");
            $pic.width(picWidth * (picLength + 1));
            for (i = 0; i < picLength; i++) {
                var picTitle = $pic.find("li a").eq(i).attr("title");
                controlHtml += '<a href="javascript:;"></a>'
            }
            $control.html("");
            $(controlHtml).appendTo($control);
            if (picLength == 1) {
                $control.find("a").hide()
            } else {
                /* timer = setInterval(function () {
                index++
                if (index == picLength) {

                index = 0; checkCon();
                showFirPic();
                } else {
                checkCon();
                showPic(index)
                }					

                },
                options.speed); */
                /*    $pic.hover(function () {
                clearInterval(timer)
                },
                function () {
后面还有 486 行代码,购买后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。