- 博客(10)
- 收藏
- 关注
原创 setMaxInactiveInterval和session-config的比较
setMaxInactiveInterval和session-config的优先级: 1、setMaxInactiveInterval的优先级高,如果setMaxInactiveInterval没有设置,则默认是session-config中设置的时间。 2、setMaxInactiveInterval设置的是当前会话的失效时
2010-01-11 13:10:00
617
原创 MySQL的datetime设置当前时间为默认值
MySQL的datetime设置当前时间为默认值 由于MySQL目前字段的默认值不支持函数,所以用create_time datetime default now()的形式设置默认值是不可能的。代替的方案是使用TIMESTAMP类型代替DATETIME类型。CURRENT_TIMESTAMP :当我更新这条记录的时候,这条记录
2010-01-05 15:25:00
1507
原创 网页布局DIV+CSS,在IE中能显示居中的,在火狐上不能显示居中,偏左怎么解决
网页布局DIV+CSS,在IE中能显示居中的,在火狐上不能显示居中,偏左 style="margin-left:auto;margin-right:auto;width:640px;" 第一次用firefox测试时,也许你会发现在IE下正常居中显示的框架无法居中显示,而且怎么调都不行,很让人头痛......ME TOO,--!我们在IE下一般用的居中方法
2009-12-29 17:17:00
3062
2
原创 getYear()方法显示问题
今天在写javascript时候用到了Date object,调用了getYear()方法,在IE下面测试是2009,在firefox下面却成了109。原因就是 javascript 的兼容性问题var today = new date();var year = today.getYear();在 Firefox 里面 getYear 返回的是 "当前年
2009-12-29 16:38:00
700
原创 三级级联菜单
三级级联菜单* { margin:0; padding:0; list-style:none;}.c_subNav { width:150px; }.c_subNav table { width:100%; border-collapse:collapse;}.c_subNav a { text-decoration:none; color:#333
2009-12-16 14:00:00
500
1
原创 下拉菜单效果
下拉效果function $(d){ return document.getElementById(d);}// set or get the current display style of the divfunction dsp(d,v){ if(v==undefined){ return d.style.display; }else{
2009-12-16 09:32:00
386
原创 类似QQ的竖型目录菜单
类似QQ的竖型目录菜单,整理收集。var titleHeight = 22; //标题的高度var bodyHeight = 160; //菜单内容项的高度var groupcount = 4; //组的个数var step = 3; //移动速度//显示菜单的内容function showDiv(obj1, obj2
2009-12-16 09:22:00
409
原创 设为首页和添加收藏夹
function default_homepage(){ homepage.style.behavior=url(#default#homepage); homepage.setHomePage(http://www.jqwb.com/); } 设为首页加入收藏
2009-11-08 15:04:00
330
原创 在页面上显示系统时间
today=new Date(); function initArray(){ this.length=initArray.arguments.length for(var i=0;i this[i+1]=initArray.arguments[i] } var d=new initArray( "星期日", "星期一", "星期二", "星期三"
2009-11-08 11:58:00
444
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅