[導入]表格拖動, 排序, 固定表頭3合一的純 JS 表格組件
今天看到了這位朋友的文章: 表格拖動(改進加原創) , 寫的很不錯, 試了一下無法在 FireFox 下運行, 想起來已經是 Google 雇員的 Emil A Eklund 好像已經寫過了一個使用非常簡單的類似組件, 兼容 IE 和 FireFox, 找到了它, 給大家推薦一下:
http://webfx.eae.net/dhtml/collist/columnlist.html
在線演示:
這些英文寫的很淺顯, 隨便看看用起來就 OK 了.
還看到同志們關于 Firefox 中沒有定義 event 對象討論的熱火朝天, 但是 Emil 兄弟早就做了一些這方面的工作, 我需要的就是拿來用, 請瀏覽:
http://webfx.eae.net/dhtml/ieemu/ FF 下的 IE API 模擬.
Introduction
When it comes to DHTML Mozilla might be less powerful than IE4 but when it comes to JavaScript it just kicks ass. The first time a saw a setter being used with a prototype of the built-in HTMLElement constructor I was just blown away. One of my first thought at that time was that this was exactly what I needed to start emulating the IE DHTML Object Model for Mozilla.
The goal of this article is to emulate a lot of IE behaviors to work in Mozilla, both to make old IE specific scripts work in Mozilla but also to make it easier to create new scripts that work in both IE5 and Mozilla. The article is actually going to be a series of smaller articles, each one concentrating on a small part of the emulation.
文章來源:http://www.tkk7.com/beansoft/archive/2007/02/03/97766.html