摘要: function resizeimg(ImgD,iwidth,iheight) { var image=new Image(); image.src=ImgD.src; if(image.width>0 && image.height>0){ if(image.width/image.height>= iwidth/iheight){ if(image.width... 阅读全文
posted @ 2010-08-19 17:59 痴人说梦 阅读(606) 评论(2) 推荐(0) 编辑
摘要: ASP.NET使用NPOI类库导出Excel 阅读全文
posted @ 2010-08-09 17:47 痴人说梦 阅读(713) 评论(0) 推荐(0) 编辑
摘要: jQuery获取Select选择的Text和 Value 阅读全文
posted @ 2010-07-13 18:14 痴人说梦 阅读(1338) 评论(0) 推荐(0) 编辑
摘要: IT项目管理工具总结 阅读全文
posted @ 2010-06-03 09:40 痴人说梦 阅读(1527) 评论(0) 推荐(0) 编辑
摘要: http://junmail.javaeye.com/?page=13&show_full=true 阅读全文
posted @ 2010-05-18 11:16 痴人说梦 阅读(225) 评论(0) 推荐(1) 编辑
摘要: http://zhidao.baidu.com/question/61358246.html 阅读全文
posted @ 2010-04-06 18:09 痴人说梦 阅读(214) 评论(0) 推荐(0) 编辑
摘要: 这次第一次用smarttemplate这个模板,比smarty小巧了很多,但也有些不方便的地方。 smarty可以直接对url进行编码,比如<!--{$var|urlencode}--> 但在smarttemplate里面就好像没有,由于链接是由js提交的,而不是表单提交,所以不能自动编码。 解决办法:采用js对URL中的汉字进行escape编码。 这样点击链接后的效时: 引用:htt... 阅读全文
posted @ 2010-02-06 13:04 痴人说梦 阅读(406) 评论(0) 推荐(0) 编辑
摘要: <body><script>function mouseMove(ev){ev= ev || window.event; var mousePos = mouseCoords(ev); document.getElementById('xxx').value = mousePos.x; document.getElementById('yyy').value = mouse... 阅读全文
posted @ 2010-01-30 15:28 痴人说梦 阅读(412) 评论(0) 推荐(0) 编辑
摘要: /****************************JCalendar日历控件*@author xx*@date 2010-1-30***************************//**@param year 年份*@param month 月份*@param date 日期*@id 控件触发显示日历的id *//*如果参数不足三个那么就初始化为当天日期*/function JCal... 阅读全文
posted @ 2010-01-30 15:26 痴人说梦 阅读(897) 评论(0) 推荐(0) 编辑
摘要: div 定位 阅读全文
posted @ 2010-01-30 15:23 痴人说梦 阅读(1792) 评论(0) 推荐(0) 编辑