Song.Site/Manage/Course/Scripts/Courses_Outline.js
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
$(function () {
$(".titItem:first").click();
_initEvent();
_contentsLoyout();
playVideo();
setTreeEvent();
});
//当窗口大变化时
$(window).resize(
function () {
}
);
//界面始初化布局
function _contentsLoyout() {
//弹出窗口
$("a[btnType=openwin]").click(function () {
var href = $(this).attr("href");
var title = $(this).attr("title");
new top.PageBox(title, href, 640, 480).Open();
return false;
});
$("input[btnType=openwin]").click(function () {
var a = $(this).parent().parent().find("a[btnType=openwin]");
var href = a.attr("href");
var title = a.attr("title");
new top.PageBox(title, href, 640, 480).Open();
return false;
});
//树形下拉菜单
var ddlTree = $("select[id$=ddlOutline]");
//当前导航项的父级id
var pid = ddlTree.find("option[selected=selected]").attr("value");
pid = typeof (pid) == "undefined" ? "0" : pid;
ddlTree.attr("defPid", pid);
//
_setChild($().getPara("olid"), ddlTree.find("option"));
}
function _initEvent() {
//章节切换的事件
var ol = $(".outlineName");
ol.click(function () {
var rightbox = $(".rightBox");
if (rightbox.size() > 0) {
if (!confirm("切换章节之前,请保存当前章节的内容编辑。\n是否继续切换?")) {
return false;
}
}
});
//章节编辑提交的事件
$("input[name$=btnEnter]").hover(function () {
$(".titItem:first").click();
});
//新增章节的按钮
$("input.btnAdd").click(function () {
var href = "Courses_Outline.aspx?couid=";
var id = $().getPara("couid");
window.location.href = href + id;
return false;
后面还有 55 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
