该楼层疑似违规已被系统折叠 隐藏此楼查看此楼
就是根据自己的id号才能点开查看自己的成绩 否则是点不开 或者弹出提示“只允许查看自己的成绩”下面是代码部分:
$(function(){
window.parent.set_iframe_height("iframea_bitem","bitem",document.body.offsetHeight+120);
window.onclick=function(){
window.parent.set_iframe_height("iframea_bitem","bitem",document.body.offsetHeight+120);
};
$(".AllRecR").mousemove(function(){
$(this).css("border","1px solid #eee");
$(this).find(".user_see_code").show();
});
$(".AllRecR").mouseleave(function(){
$(this).css("border","1px solid #f8f8f8");
if($(this).find(".user_see_code").attr("see") == 'off'){
$(this).find(".user_see_code").hide();
}
});
$(".user_see_code").click(function(){
if($(this).attr("see")=='off'){
$(this).attr("see","on");
$(this).text("关闭成绩");
$(this).parents().next().show();
var id = $(this).attr("id");
$.get(
"?/mobile/mobile/open/" + id,
{
},
function(){
}
);
}else{
$(this).text("显示成绩")
$(this).attr("see","off");
$(this).parents().next().hide();
}
});
$(".user_codes_js").click(function(){
var codes = $(this).prev();
if($(this).attr("click") == 'off'){
var num = $(this).attr("num");
var line = Math.ceil(num / 7) * 20;
codes.css("max-height",line+"px");
$(this).attr("click","on");
$(this).text("收起全部↑");
}else{
codes.css("max-height","260px");
$(this).attr("click","off");
$(this).text("展开查看全部↓");
}
});
});
codes.css("max-height","260px");
$(this).attr("click","off");
$(this).text("展开查看全部↓");
}
});
});