xianzhijiaoyi/WebRoot/js/main.js

(开头部分) 5KB

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

$(function(){
    //上传显示图片
    function   show(){
        var p=document.getElementById("file1").value;
        document.getElementById("s").innerHTML="<input type=image id=pic width=150 height=100 /> ";
        document.getElementById("pic").src=p;
        //alert(p);
    }
    //教材区
    $(".one li").hover(function(){
        $(this).find(".two").show();
    },function(){
        $(this).find(".two").hide();
    });
    //工具书区
    $(".tab li").click(function(){
        $(this).find("a").addClass("on");
        $(this).siblings().find("a").removeClass("on");
        var index = $(this).index();
        $("#item2 .tabs").hide();
        $(".tab"+index).show()
    });

    //右侧导航
    $(".fixnav a").click(function(){
        var index = $(this).attr("title");
        var id = "#item"+index;
        $("html,body").animate({scrollTop: $(id).offset().top}, 500);
    });
    //图书编辑上传
    $(".product-edit-item").hover(function(){
        $(this).find("p").css("color","#333");
    },function(){
        $(this).find("p").css("color","#BBB")
    });
    //选择购买书籍
    $(".pay").click(function(){
        $(".full").show();
    });
    $(".confirm a").click(function () {
        $(".full").hide();
    });
    // item selection
    $('.select-book li').click(function () {
        $(this).toggleClass('selected');
        if ($('.select-book li.selected').length == 0)
            $('.select-book .select').removeClass('selected');
        else
            $('.select-book .select').addClass('selected');
        counter();
    });

// all item selection
    $('.select-book .select').click(function () {
        if ($('.select-book li.selected').length == 0) {
            $('.select-book li').addClass('selected');
            $('.select-book .select').addClass('selected');
        }
        else {
            $('.select-book li').removeClass('selected');
后面还有 99 行代码,购买后查看完整代码

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

AI 解读 AI

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

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