var bloghost = "http://gcxl518.com/";
var ajaxurl = "http://gcxl518.com/zb_system/cmd.php?act=ajax&src=";
var mfpusesimplecode = "1";
function bmx2table(){
var class_=new Array("color2","color3","color4");
var j=$("table[class!='nobmx'] tr:has(th)").addClass("color1");
$("table[class!='nobmx']").each(function(){
if(j.length==0){class_[1]="color2";class_[0]="color3";}
$(this).find("tr:not(:has(th)):even").removeClass(class_[0]).addClass(class_[1]);
$(this).find("tr:not(:has(th)):odd").removeClass(class_[1]).addClass(class_[0]);
})
$("table[class!='nobmx']").find("tr:not(:has(th))").mouseover(function(){$(this).addClass(class_[2])}).mouseout(function(){$(this).removeClass(class_[2])});
};
//*********************************************************
//*********************************************************
// 目的: CheckBox
// 输入: 无
// 返回: 无
//*********************************************************
function ChangeCheckValue(obj){
$(obj).toggleClass('imgcheck-on');
if($(obj).hasClass('imgcheck-on')){
$(obj).prev('input').val('1');
$(obj).next('.off-hide').show();
}else{
$(obj).prev('input').val('0');
$(obj).next('.off-hide').hide();
}
}
//*********************************************************
$(document).ready(function(){
//斑马线化表格
bmx2table();
//checkbox
$('input.checkbox').css("display","none");
$('input.checkbox[value="1"]').after('');
$('input.checkbox[value!="1"]').after('');
$('span.imgcheck').click(function(){ChangeCheckValue(this)})
});
;document.writeln("");
;$(document).ready(function(){
tinymce.init({
selector:"#mfp_richtext",
toolbar: "undo redo | fontsizeselect | bold italic forecolor |",
menubar: false,
language: "zh_CN",
height: 200,
plugins: [
"textcolor"
],
});
});