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

2013年1月10日

摘要: 方法一:<html> <head> <script> function yeart(){ var now=new Date(); var year=now.getFullYear(); var ss=year-2008;//设定2008为初始年份 var ssc=ss%12; var ssyear=new Array("子鼠","丑牛","寅虎","卯兔","辰龙","巳蛇","午马","未羊",&q 阅读全文

posted @ 2013-01-10 15:39 人生梦想起飞 阅读(3339) 评论(0) 推荐(0) 编辑

2013年1月9日

摘要: <!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=u 阅读全文

posted @ 2013-01-09 19:12 人生梦想起飞 阅读(165) 评论(0) 推荐(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=gb23 阅读全文

posted @ 2013-01-09 15:53 人生梦想起飞 阅读(2949) 评论(0) 推荐(0) 编辑

摘要: http://www.jsfoot.com/http://www.zzjs.net// 阅读全文

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

2013年1月3日

摘要: var _iframe=e("#" + pb),_offset=_iframe.offset();//e("#" + pb) 是图片所在的框架的ide(w.body).find('img').live('contextmenu',function(ev){//menu.show({x:ev.clientX+_offset.left,y:ev.clientY+_offset.top});menu.show({x:ev.clientX+_offset.left,y:ev.clientY+_iframe.offset().top 阅读全文

posted @ 2013-01-03 13:13 人生梦想起飞 阅读(510) 评论(0) 推荐(0) 编辑

摘要: 方法一: 方法二: 阅读全文

posted @ 2013-01-03 13:10 人生梦想起飞 阅读(221) 评论(0) 推荐(0) 编辑

2012年12月27日

摘要: var date = new Date();var year = date.getFullYear();var month = date.getMonth() + 1;var day = date.getDate();var hour = date.getHours();var minute = date.getMinutes();var second = date.getSeconds();var now = [year, month, day].join('-') + ' ' + [hour, minute, second].join(':' 阅读全文

posted @ 2012-12-27 10:01 人生梦想起飞 阅读(105) 评论(0) 推荐(0) 编辑

摘要: <img class="lazy" data-original="/static/images/default/icon10.png" src="/static/images/default/example.jpg" width="40" height="40" />example.jpg为1px的图片引用公共jquery库和jquery.lazyload.min.js:jquery.lazyload.min.js:/** Lazy Load - jQuery plugin for 阅读全文

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

2012年12月26日

摘要: $(function(){var x;var y = 38;$(".classTab td:parent").live('mouseover',function(e){this.myTitle = this.title;this.title = "";var popHtml ='<div class="tishiBox"><span class="spanL"><\/span><span class="spanR">< 阅读全文

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

摘要: /****点击大图事件**/function getEvent(){if(document.all){ return window.event;}func=getEvent.caller;while(func!=null){var arg0=func.arguments[0];if(arg0){if((arg0.constructor==Event || arg0.constructor ==MouseEvent) || (typeof(arg0)=="object" && arg0.preventDefault && arg0. stopP 阅读全文

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