86 lines
2.2 KiB
JavaScript
86 lines
2.2 KiB
JavaScript
|
|
function leftkc() {
|
|||
|
|
a = $(window).height();
|
|||
|
|
document.getElementById('leftk').style.height = a + 'px';
|
|||
|
|
document.getElementById('leftk').style.width = '100%';
|
|||
|
|
document.getElementById('leftb').style.height = a + 'px';
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
$(document).ready(function () {
|
|||
|
|
leftkc();
|
|||
|
|
window.onresize = function () {
|
|||
|
|
leftkc();
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
$("#daohang ul li").mouseover(
|
|||
|
|
function () {
|
|||
|
|
$(this).css("color", "orangered");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
$("#daohang ul li").mouseout(
|
|||
|
|
function () {
|
|||
|
|
$(this).css("color", "#ffffff");
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
$("#daohang ul li").click(
|
|||
|
|
function () {
|
|||
|
|
$("#daohang ul li").css("background-color", "");
|
|||
|
|
$(this).css("background-color", "#242425");
|
|||
|
|
if ($(this).attr("value") == 1) {
|
|||
|
|
$("#gglan").fadeIn(500);
|
|||
|
|
$("#txlan").css("display", "none");
|
|||
|
|
} else {
|
|||
|
|
$("#txlan").fadeIn(500);
|
|||
|
|
$("#gglan").css("display", "none");
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
});
|
|||
|
|
var bqz = 0;
|
|||
|
|
$("#bqpz").click(function () {
|
|||
|
|
if (bqz == 0) {
|
|||
|
|
|
|||
|
|
$(".del").css("display", "");
|
|||
|
|
$(".kuaijiesuoyin ul li a").css("width", "60");
|
|||
|
|
bqz = 1;
|
|||
|
|
} else {
|
|||
|
|
$(".del").css("display", "none");
|
|||
|
|
bqz = 0;
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
$("#mingling").keypress(f);
|
|||
|
|
$("#mingling").val("支持输入命令索引");
|
|||
|
|
$("#gonggao").val("可以在这里输入公告内容")
|
|||
|
|
|
|||
|
|
$("#mingling").click(function () {
|
|||
|
|
if ($(this).val() == "支持输入命令索引") {
|
|||
|
|
$(this).val("");
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
$("#gonggao").click(function () {
|
|||
|
|
if ($(this).val() == "可以在这里输入公告内容") {
|
|||
|
|
$(this).val("");
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
$("#fabu").click(function () {
|
|||
|
|
if ($("#gonggao").val() == "" || $("#gonggao").val() == "可以在这里输入公告内容") {
|
|||
|
|
alert("请输入发布的内容");
|
|||
|
|
return false;
|
|||
|
|
}
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
});
|
|||
|
|
|
|||
|
|
function delkjbq(delz) {
|
|||
|
|
$(delz).parent().remove();
|
|||
|
|
Main_Fgnl.remove($(delz).attr("tag"));
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
function f() {
|
|||
|
|
var l = document.getElementById('chaozhao');
|
|||
|
|
|
|||
|
|
if (event.keyCode == 13) {
|
|||
|
|
l.click();
|
|||
|
|
return false;
|
|||
|
|
}
|
|||
|
|
}
|