eEhdsa

2011年6月23日

JQ Web Search插件

摘要: 使用模拟的http://jp.msn.com上的效果,背景图也是链接的该站点,所以只供学习之用,不得作任何商业用途! 包括开启autocomplete和关闭2种 开启Auto suggestion功能,不一定要1,任何能被判断为true的都能开启 关闭此功能,只要给个false就可以了 ... 阅读全文

posted @ 2011-06-23 14:34 eEhdsa 阅读(862) 评论(3) 推荐(2) 编辑

2011年3月30日

页面性能优化 - Draft 1

摘要: 如何让网页在最快的时间内呈现给用户, 不停的在loading是让人烦躁的一件事情主要先研究前台的优化 JS代码本身优化 统一入口异步调用 实时加载JS代码优化如何写出高效的JS不是一句两句话能说完的事情, 比如若果在使用jQuery那么ID选择符前不要加多余的tag或者class, 因为jQuery对selector的第一个正则表达式的判断就是判断是否是ID或html tag等等统一入口异步调用整个站点所有JS函数调用只留一个入口, 这个入口要做的健壮而强大 - 参考msn.com的做法设计:页面inline的JS实现async这个统一入口, 可以看到msn.com的页面上有这样一段被压缩过的 阅读全文

posted @ 2011-03-30 20:39 eEhdsa 阅读(359) 评论(0) 推荐(0) 编辑

2010年7月9日

Trip to Canvas(3)

摘要: 上一篇文章中简单的举了几个canvas处理图片的例子,这里对canvas的色彩处理进一步学习。IE8或以下不支持!色彩var ctx = document.getElementById('canvas1').getContext('2d');for (var i = 0; i < 6; i++) {for (var j = 0; j < 6; j++) {ctx.fillStyle =... 阅读全文

posted @ 2010-07-09 11:20 eEhdsa 阅读(851) 评论(0) 推荐(1) 编辑

2010年7月7日

CSS3 Color

摘要: Colorsvrgbcolor=”rgb(red, green, blue)”), 三个参数分别为红, 绿, 蓝色度, 数值为0-255, 不同的值会调和出不同的色彩如:"rg b(255, 100, 100)" "rg b(100, 100, 100)"vRgba RGB的进化…多一个参数,表示透明度(transparent)rgba(red, green, ... 阅读全文

posted @ 2010-07-07 15:24 eEhdsa 阅读(248) 评论(0) 推荐(0) 编辑

2010年7月5日

Trip to Canvas(2 - 图片处理)

摘要: 上一篇文章中简单的举了2个canvas的例子,这里对canvas的画图进一步学习。IE8或以下不支持!图片重叠阴影var g = document.getElementById("canvas1").getContext("2d");g.fillStyle = "#c80000";g.fillRect(10, 10, 55, 50);g.fillStyle = "rgba(0, 0, 200, 0... 阅读全文

posted @ 2010-07-05 20:14 eEhdsa 阅读(416) 评论(0) 推荐(0) 编辑

2010年5月6日

让你的桌面下玫瑰

摘要: 效果  .Net 2.0 版  .Net 3.5版  .Net 4.0版  截图:   原理  这个实现很简单,没有什么技术含量,但是拿来哄下女朋友啥的还是可以的:)   上学时朋友给我发过一个下雪的圣诞礼物,于是一直惦记着要实现它,突然发现简单来处理的话也还是不复杂的单朵玫瑰(一个影藏掉边框的roseForm,加一张玫瑰花图片)单朵下落(一个timer,每秒把重新调整roseForm的高度和宽度... 阅读全文

posted @ 2010-05-06 10:51 eEhdsa 阅读(3165) 评论(6) 推荐(4) 编辑

2010年2月21日

New things to .Net4.0 -Lazy<T> - Tuple

摘要: 1. Tuple我记得F#中也有类似的数据结构  Tuple tuple = new Tuple("item1", "item2", 20);  //Tuple tuple = Tuple.Create("item1", "item2", 20);  var date = Tuple.Create("item1", "item2", 20);  Console.WriteLine(tuple.It... 阅读全文

posted @ 2010-02-21 18:12 eEhdsa 阅读(280) 评论(0) 推荐(0) 编辑

2009年12月22日

something interesting with prototype and window

摘要: 1. 问题一Object - Object.prototype(Object.isPrototypeOf(Object))obj - Object.prototype.prototype(Object.prototype.isPrototypeOf(obj))a - obj.prototype === Object.prototype.prototype(Object.prototype.i... 阅读全文

posted @ 2009-12-22 23:42 eEhdsa 阅读(260) 评论(0) 推荐(0) 编辑

2009年11月9日

Script and managed code in Silverlight

摘要: All Cases JS invoke managed code in Silverlight Managed code in Silverlight invoke JS JS invoke managed code out of Silverlight --XMLHttpRequest, post back event, hidden button Managed code out of Sil... 阅读全文

posted @ 2009-11-09 15:52 eEhdsa 阅读(389) 评论(0) 推荐(1) 编辑

2009年10月28日

summing-up the interview (internal drilling 1)

摘要: Interview training for the second MS projectFor a product, how to test it.Generally, it includes the following items1, function2, Security 3, performance and stress4, Usability5, Globalization6, Compa... 阅读全文

posted @ 2009-10-28 11:04 eEhdsa 阅读(277) 评论(0) 推荐(0) 编辑

Prepare for the coming interview...Data Structure

摘要: 1, Exchange sortsBubble sort | Cocktail sort | Odd-even sort | Comb sort | Gnome sort | Quicksort I think the top two popular algorithms are Bubble sort and Quick sort, expecially the quick sort which... 阅读全文

posted @ 2009-10-28 11:00 eEhdsa 阅读(298) 评论(0) 推荐(0) 编辑

2009年10月20日

Silverlight学习记录...

摘要: 1, XAML2, 控件,布局,文本,输入3, 图形,动画,媒体4, 数据访问,数据结构5, 网络,通信6, 调试,错误处理,异常------------------------------------原来这里能找到上述所有basic的东西。。。。。Silverlight结构: 阅读全文

posted @ 2009-10-20 10:00 eEhdsa 阅读(164) 评论(0) 推荐(0) 编辑

2009年10月13日

Trip to Canvas(1)

摘要: 昨天看到介绍svg和vml的文章,虽然我的js不咋地,我还是忍住不去找资料学习了一把,下面就简单帮自己总结下吧,也希望对自己和看到的朋友都有帮助。 先看一个简单的例子 <head> </head><body><canvas id="square" width="20px" height="20px"></canvas><canva... 阅读全文

posted @ 2009-10-13 17:49 eEhdsa 阅读(589) 评论(0) 推荐(1) 编辑

2009年10月10日

关于js生成阴影文字在IE上的问题

摘要: 1:单纯的css生成阴影文字可以通过设置span的部分重叠简单实现,代码如下<body><div style="font:bold 32pt sans-serif;"><span style="position:relative"><BGSOUND CEP="0" /><span style="position:absolute; top:5p... 阅读全文

posted @ 2009-10-10 18:25 eEhdsa 阅读(758) 评论(0) 推荐(0) 编辑

2009年10月9日

JavaScript 事件模型总结

摘要: 1: 0级DOM包括IE,FF,Safari等主流浏览器均支持,也是最经常使用的事件模型 It's easy to use, and also we are frequently using it.2: Level 2 DOMEvery mainstream browsers supports the level 2 APIs except IE.Evnt Spread: step 1: capt... 阅读全文

posted @ 2009-10-09 18:10 eEhdsa 阅读(482) 评论(1) 推荐(0) 编辑

2009年9月28日

JavaScript 中的 this, call, apply, bind...

摘要: 今天无意间在这里看到一篇说js中this的文章,看后满是疑问。。。作者使用this.xxproperty取某些属性得到了undefined等一系列非意料中的结果于是认为导致这种情况是因为之前有过对this.propertyX赋值从而改变了this所至。。。好吧...一: this看这个代码当然要取到button dom node的信息也是十分简单的如上代码,传过去this,当做参数处理即可当然也有... 阅读全文

posted @ 2009-09-28 15:46 eEhdsa 阅读(3027) 评论(4) 推荐(2) 编辑

2009年9月24日

C# Exception整理...

摘要: 1, 整体模式PS:以上所有异常都在system命名空间里,除了IOException及其派生Excpetion在system.IO内从图中可以看出异常主要分为2类,SystemException和ApplictaionExceptionSystemException:通常有.Net运行库生成ApplictaionException:是用户定义异常的基类,可用于定义应用程序一些独有的异常2, Sy... 阅读全文

posted @ 2009-09-24 11:58 eEhdsa 阅读(3536) 评论(0) 推荐(0) 编辑

2009年9月23日

Syntax Highlighter 代码研究

摘要: 始终对代码恢复后的样式不是很满意于是对纯js实现的Syntax Highlighter作了一番研究,并根据自己的喜好改写和增加了一些功能 突然又发现这里评论中的代码高亮样式我比较喜欢,于是看了下发现都定义好了的。。。我的努力白费了。。不过还是很有收获的...1,首先看下该写后的效果,也可参照这里js代码: <script language="JavaScript"> <!--... 阅读全文

posted @ 2009-09-23 13:28 eEhdsa 阅读(479) 评论(0) 推荐(0) 编辑

2009年9月22日

正则备份...

摘要: 1,分组 2,引用3, 非捕获性分组4, 前瞻5, 边界 6, 多行模式 阅读全文

posted @ 2009-09-22 15:15 eEhdsa 阅读(258) 评论(0) 推荐(0) 编辑

2009年9月15日

Linq to DataSet

摘要: 几点基础: 1: class DataTableExtensions// DataTable to EnumerableRowCollection<DataRow>, while EnumerableRowCollection<TRow> has implemented // Ienumerable<T>public static EnumerableRowCo... 阅读全文

posted @ 2009-09-15 13:22 eEhdsa 阅读(248) 评论(0) 推荐(0) 编辑

导航