$(function(){ var MTPL='static/css/member/'; //换肤yskj_skin var yskj_skin='
'; $('body').append(yskj_skin); //透明度yskj_tm var yskj_tm=''; $('body').append(yskj_tm); $('.run_skin').click(function(event){ $('.yskj_dh').hide(); $('.yskj_skin').show(); event.stopPropagation(); }); $('.run_tm').click(function(event){ $('.yskj_dh').hide(); $('.yskj_tm').show(); event.stopPropagation(); }); $('html,body').click(function(){ $('.yskj_dh').hide(); }); $('.yskj_dh').click(function(event){ event.stopPropagation(); }); //获取焦点,取消焦点 $('.txt').bind({ focus:function(){ if (this.value == this.defaultValue){ this.value=""; } }, blur:function(){ if (this.value == ""){ this.value = this.defaultValue; } } }); //换肤 var myskin=$.cookie('myskin'); //console.log(myskin); if(myskin){ switchskin(myskin); } var skini=$('.yskj_skin a'); skini.click(function(){ switchskin(this.id); }); function switchskin(skin){ $('.yskj_skin a').removeClass('on'); $('#'+skin).addClass('on'); $('#'+skin).find('input').attr('checked','checked'); $('#skin').attr('href',MTPL+skin+'.css'); $.cookie('myskin',skin,{path:'/',expires:365}) } //透明度 function switchtm(opcity){ $('.main_bg').removeClass('opcity01'); $('.main_bg').removeClass('opcity02'); $('.main_bg').addClass(opcity); $('#'+opcity).find('input').attr('checked','checked'); $.cookie('opcity',opcity,{path:'/',expires:365}) } var opcity=$.cookie('opcity'); if(opcity){ switchtm(opcity); } var tmi=$('.yskj_tm a'); tmi.click(function(){ switchtm(this.id); });})
文件目录······
暂无数据
猜你喜欢
更多»
项目推荐
更多»
PDF电子书
更多»
Java多线程编程核心技术
(2)
Linux命令详解词典.pdf
(5)
深入Python3中文版
(0)
百度SEO一本通.pdf
(0)
mysql必知必会.pdf
(2)
疯狂JAVA讲义 pdf电子书
(3)
C# 图解教程pdf电子书
(3)
研磨设计模式 pdf电子书
(0)