codecamp

_login.showBackground前景显示/隐藏桌面背景层

  • 函数原型

/* 前端显示
/隐藏桌面背景层,对于可操作的背景(如网址背景)有功效 */
_config.topbackground=0;
_login.showBackground=function(){ //前景显示桌面背景层,对于可操作的背景有功效
	_config.topbackground=!_config.topbackground	
	if(_config.topbackground){
			 jQuery('#wrapper_div').css('z-index',100001);		 
			 jQuery('#hidebackground_button').show();	
	}else {		
	                 jQuery('#wrapper_div').css('z-index',0);		
	                 jQuery('#hidebackground_button').hide();
	}
 }


_login.register打开注册框
_login.configWindow打开用户设置窗体
温馨提示
下载编程狮App,免费阅读超1000+编程语言教程
取消
确定
目录

Dzz系统框架

输入数据处理

数据DB层

安全相关

上传组件

评论组件

关闭

MIP.setData({ 'pageTheme' : getCookie('pageTheme') || {'day':true, 'night':false}, 'pageFontSize' : getCookie('pageFontSize') || 20 }); MIP.watch('pageTheme', function(newValue){ setCookie('pageTheme', JSON.stringify(newValue)) }); MIP.watch('pageFontSize', function(newValue){ setCookie('pageFontSize', newValue) }); function setCookie(name, value){ var days = 1; var exp = new Date(); exp.setTime(exp.getTime() + days*24*60*60*1000); document.cookie = name + '=' + value + ';expires=' + exp.toUTCString(); } function getCookie(name){ var reg = new RegExp('(^| )' + name + '=([^;]*)(;|$)'); return document.cookie.match(reg) ? JSON.parse(document.cookie.match(reg)[2]) : null; }