
JavaScript
文章平均质量分 91
varkychan
这个作者很懒,什么都没留下…
展开
-
实现IE与Firefox的DHTML
该贴将不断积累更新.1.在访问某一节点时,如 childNodes[i],要获得这个节点的值,这个值是2.text以上的XML,在IE中,是的第一个子元素,可以通过 root.childNodes[0],或root.firstChild访问,但在Firefox中,是的第二个子元素,第一个子元素是换行符,nodeType是#text,如果将代码改为以下:text那么IE与Firefo原创 2006-02-21 17:36:00 · 2156 阅读 · 0 评论 -
Memory Leakage in Internet Explorer - revisited
IntroductionIf you are developing client-side re-usable scripting objects, sooner or later you will find yourself spotting out memory leaks. Chances are that your browser will suck memory like a spo转载 2007-07-30 23:47:00 · 1383 阅读 · 0 评论 -
Odd mouse handling with transparent objects under Internet Explorer 7
We discovered as soon as we (and our users) got their hands on Internet Explorer 7 that freehand drawing in Thinkaturewas misbehaving. In particular, we learned that it was only possible tostart a转载 2008-12-04 10:00:00 · 663 阅读 · 0 评论 -
Image Programming in JavaScript: The Histogram
Recently, Ive spent a lot of my time taking photographs. When I get home from taking pictures, I immediately pop open Lightroom to import the images, pick out my favorites, do some adjustments on t转载 2009-04-20 18:00:00 · 957 阅读 · 0 评论 -
Image Programming in JavaScript: Converting to Monochrome
In part 1 of this series, we looked at how each pixel of an image is composed of three parts; red, green and blue, and showed how to make histograms to give a summary of each. Towards the end, I sh转载 2009-04-20 18:02:00 · 714 阅读 · 0 评论 -
SproutCore 2.0 Beta 1 发布
本文为翻译文章,文章原文:http://blog.sproutcore.com/sproutcore-2-0-beta-1-released/译者:Jacky博客:http://blog.youkuaiyun.com/varkychan 因本人英文水平一般,所以翻译错误在所难免,发现错误请邮件(jacky@iajax.net)通知我改正。感激不尽! A few weeks ago, w翻译 2011-06-21 10:46:00 · 1122 阅读 · 0 评论 -
SproutCore入门教程 - 第一部分
本文为翻译文章:译者:Jacky 译者博客:http://blog.youkuaiyun.com/varkychan原文:http://guides.sproutcore.com/getting_started.html 译者前言:由于国内关于SproutCore的中文资源比较少,所以我开始尝试翻译官方网站的相关教程及指南,因为本人英文水平真的一般,语文水平也不咋的,所以在译文可能表达得不原创 2011-06-23 16:19:00 · 4377 阅读 · 3 评论 -
用HTML5轻松实现图片预览
在网页中实现图片上传功能,当用户选择了图片文件后,想在页面中即时预览该图片,这个简单的需求在很久很久以前可以实现,后来因为安全性的问题被禁止直接访问本地文件了,所以又在很长很长一段时间里,想通过HTML直接预览用户选择的图片变得不可能,自从有了HTML5,这个功能又回来了,通过FileReader可以轻松的实现这个功能。只要在文件表单元素中监听 onchange 事件,然后通过FileRead原创 2012-11-26 02:22:30 · 31070 阅读 · 5 评论