A nab of mine wants a IE9 BHO with superdrag.
The purpose of writing this article is just for a record. Though it is easy, the process of studing on it is not easy, which took me more one night to search related information. Also, the moment when worked it out is delightful.
First of all, thanks Tian Fang for his post. (Click here to link to his article)
He extended almost all the code for superdrag, the only thing perplexedme is it doesn't work anyway.
I tried to rewrite some code, a different way to get the same result and still can't solve this.
So I have toset some dialog to figure out what is the problem and found that it will fail when goes to
var rootElementEvents = document.documentElement as HTMLElementEvents_Event; rootElementEvents.ondragover += () => false; rootElementEvents.ondrop += () => { SuperDragDrop(); return false; };
After searching in Google, the reason is the object he used is not correct. We should use HTMLElementEvents2_Event object in this project. Just change it, build and install the BHO.
Have fun!
本文记录了作者为Anabofminewantsa开发IE9浏览器行为对象(BHO)并实现超级拖拽功能的过程。作者在TianFang的基础上进行了改进,通过替换对象类型解决了原有代码无法正常工作的问题。
3029

被折叠的 条评论
为什么被折叠?



