博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年11月19日

摘要: var DsrUtil = function(){//获取当前时间function getTime(type){var now = new Date();var year = now.getFullYear().toString();var month = (now.getMonth() + 1).toString(); var day = now.getDate().toString();var hour = now.getHours().toString();var minute = now.getMinutes().toString();var second = now.getSecon 阅读全文

posted @ 2012-11-19 09:26 人生梦想起飞 阅读(202) 评论(0) 推荐(0) 编辑

摘要: //显示时间日期function showTime(){var hour = new Date().getHours(); var timeShow = document.getElementById('timeShow'); if(hour > 5 && hour <= 8){ //6 7 8点多 timeShow.innerHTML = '早上好!'; }else if(hour > 8 && hour <= 12){ //9 10 11 12点多 timeShow.innerHTML = '上 阅读全文

posted @ 2012-11-19 09:14 人生梦想起飞 阅读(160) 评论(0) 推荐(0) 编辑

摘要: /*** 判断浏览器的版本*/var browserVersion = function(){var Sys = {}; var ua = navigator.userAgent.toLowerCase(); var s; (s = ua.match(/msie ([\d.]+)/)) ? Sys.ie = s[1] : (s = ua.match(/firefox\/([\d.]+)/)) ? Sys.firefox = s[1] : (s = ua.match(/chrome\/([\d.]+)/)) ? Sys.chrome = s[1] : (s = ua.match(/opera.( 阅读全文

posted @ 2012-11-19 09:12 人生梦想起飞 阅读(186) 评论(0) 推荐(0) 编辑

摘要: SearchFunction.js:// JavaScript Document/********************************************************************************************搜索功能效果*******************************************************************************************///获取文本框的值var SearchFunction = function(){ //创建文本框效果 var inputId; fun. 阅读全文

posted @ 2012-11-19 08:27 人生梦想起飞 阅读(411) 评论(0) 推荐(0) 编辑

2012年11月16日

摘要: 1.http://tangram.baidu.com/magic/component/Carousel/demo/button.html2.http://tangram.baidu.com/magic/component/Carousel3.http://www.oschina.net/project/tag/289/jquery-gallery 阅读全文

posted @ 2012-11-16 17:26 人生梦想起飞 阅读(114) 评论(0) 推荐(0) 编辑

摘要: CSS样式:.setBottom a,.setBottom span,.popTishi .popIcon{background:url(../images/button.png) no-repeat;}.setBottom{height:30px;position: relative;line-height:30px;}.setBottom span{ position:absolute;height:30px;width:3px; display:inline-block;top:0; cursor:pointer;}.setBottom span.spanLeft{left:-3px;} 阅读全文

posted @ 2012-11-16 14:47 人生梦想起飞 阅读(1957) 评论(1) 推荐(0) 编辑

摘要: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf- 阅读全文

posted @ 2012-11-16 10:37 人生梦想起飞 阅读(1215) 评论(0) 推荐(0) 编辑

摘要: $('#Begin_time_date').live('click',function(){setTimeout(function() {//解决火狐下focus事件没有反应的问题 $('#Begin_time').focus(); }, 0);}) 阅读全文

posted @ 2012-11-16 09:05 人生梦想起飞 阅读(310) 评论(0) 推荐(0) 编辑

2012年11月12日

摘要: .bFooter2{filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ebf7ff', endColorstr='#cbedff'); background:-webkit-gradient(linear,left top,left bottom,from(#ebf7ff),to(#cbedff)); background:-moz-linear-gradient(top,#ebf7ff,#cbedff); background:-o-linear-gradient(top,.. 阅读全文

posted @ 2012-11-12 13:51 人生梦想起飞 阅读(563) 评论(0) 推荐(0) 编辑

摘要: 只需要在head标签中加上这句话即可:<meta http-equiv="X-UA-Compatible" content="IE=7, IE=9"> 阅读全文

posted @ 2012-11-12 13:48 人生梦想起飞 阅读(132) 评论(0) 推荐(0) 编辑