Song.Site/Templates/Default/Teacher/Scripts/Index.js

(开头部分) 2KB

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

$(function(){
    setLoyout();
    loginEvent();
    courseOver();
    if($().getPara("loyout")=="reg")
        loginLoyoutSet($(".loginBar div:last"));
    else
        loginLoyoutSet($(".loginBar div:first"));
    //登录界面中的注册按钮事件
    $("a.aRegister").click(function(){
        loginLoyoutSet($(".loginBar div:last"));
    });
});
//登录框的设置
function loginEvent() {
    $(".loginBar div").click(function(){
        loginLoyoutSet($(this));
    });
}
//设置登录框的布局
function loginLoyoutSet(obj){
    //标题的标示与隐藏
    $(".loginBar div").attr("class","loginTitle");
    obj.attr("class","loginTitleCurr");
    //登录区域的显示与隐藏
    $(".loginArea").hide();
    var tag=obj.attr("tag");
    var curr=$(".loginArea[tag="+tag+"]");
    curr.show();
    curr.find("input:first").focus();
}
//当课程信息,鼠标滑过时
function courseOver(){
    $(".courseList  .item").hover(function(){
        $(this).addClass("courseOver");
        $(this).find(".itemMark").animate({top:-123});
        $(this).find(".itemInfo").animate({top:-123*2});
    },function(){
        $(this).removeClass("courseOver");
        $(this).find(".itemMark").animate({top:-45});
        $(this).find(".itemInfo").animate({top:-123-45});
    });
}
//当窗口大变化时
$(window).resize(function(){
    window.windowResizeTemp=window.windowResizeTemp==null ? 0 : window.windowResizeTemp++;
    if(window.windowResizeTemp%2==0)setLoyout();
});
function setLoyout(){
    //屏幕宽度
    var wd =document.documentElement.clientWidth;
    var trueWd=Number($("#showBox").attr("trueWidth"));
    $("#showBox").css({left:-(1920-wd)/2});
    $("#showBox").width(1920-(1920-wd)/2);
    setLoginBox("#loginBoxBack","center",171,201);
    setLoginBox("#loginBox","center",170,200);
}

//设置登录框
function setLoginBox(element,position,distance,top){
后面还有 18 行代码,解锁后查看完整代码

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

AI 解读

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

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