You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
75 lines
2.1 KiB
75 lines
2.1 KiB
$(function(){
|
|
//右侧最小高度 = 左侧高度 - 15px 保证两边高度基本一样,页面美观
|
|
$("#RSide").css("min-height",$("#LSide").height()-15);
|
|
|
|
//头像相关
|
|
$("#homepage_portrait_image").live("mouseover",function(){
|
|
$("#edit_user_file_btn").show();
|
|
$("#watch_user_btn").show();
|
|
}).live("mouseout",function(){
|
|
$("#edit_user_file_btn").hide();
|
|
$("#watch_user_btn").hide();
|
|
});
|
|
|
|
//搜索相关
|
|
$("#navHomepageSearch").mouseover(function(){
|
|
$("#navHomepageSearchType").show();
|
|
}).mouseout(function(){
|
|
$("#navHomepageSearchType").hide();
|
|
});
|
|
});
|
|
|
|
//编辑个人简介
|
|
function show_edit_user_introduction() {
|
|
$("#user_brief_introduction_show").hide();
|
|
$("#user_brief_introduction_edit").show();
|
|
$("#user_brief_introduction_edit").focus();
|
|
}
|
|
|
|
//编辑个人简介完成之后提交
|
|
function edit_user_introduction(url){
|
|
$.get(
|
|
url,
|
|
{ brief_introduction: $("#user_brief_introduction_edit").val() },
|
|
function (data) {
|
|
|
|
}
|
|
);
|
|
}
|
|
|
|
//显示更多的课程
|
|
function show_more_course(url){
|
|
$.get(
|
|
url,
|
|
{ page: $("#course_page_num").val() },
|
|
function (data) {
|
|
}
|
|
);
|
|
}
|
|
|
|
//显示更多的项目
|
|
function show_more_project(url){
|
|
$.get(
|
|
url,
|
|
{ page: $("#project_page_num").val() },
|
|
function (data) {
|
|
|
|
}
|
|
);
|
|
}
|
|
//
|
|
//$(function(){
|
|
// $(".newsType").mouseover(function(){
|
|
// $(".resourcesIcon").css({background:"url(images/resource_icon_list.png) 0px -25px no-repeat"});
|
|
// });
|
|
// $(".newsType").mouseout(function(){
|
|
// $(".resourcesIcon").css({background:"url(images/resource_icon_list.png) 0px 0px no-repeat"});
|
|
// });
|
|
// $(".resourcesSelected").mouseover(function(){
|
|
// $(".resourcesIcon").css({background:"url(images/resource_icon_list.png) 0px -25px no-repeat"});
|
|
// });
|
|
// $(".resourcesSelected").mouseout(function(){
|
|
// $(".resourcesIcon").css({background:"url(images/resource_icon_list.png) 0px 0px no-repeat"});
|
|
// });
|
|
//});
|
|
//个人动态 end
|