IE与Firefox的HTC
来源:互联网 发布:java字符编码 编辑:程序博客网 时间:2024/04/29 08:48
test.htm
<style>
span {-moz-binding: url(test.xml#custom);behavior:url(test.htc);cursor:pointer;background:#ddd;}
</style>
<span> test </span>
//IE
test.htc
<attach event="onmouseup" onevent="up()"/>
<attach event="onmousedown" onevent="down()"/>
<script language="javascript">
var currX = 0;
function up(){
alert(currX);
}
function down(){
currX += 1;
}
</script>
//Firefox
test.xml
<?xml version="1.0"?>
<bindings xmlns="http://www.mozilla.org/xbl" xmlns:html="http://www.w3.org/1999/xhtml">
<binding id="custom" styleexplicitcontent="true">
<implementation>
<property name="currX">0</property>
</implementation>
<handlers>
<handler event="mousedown">
this.currX = event.clientX+this.currX;
</handler>
<handler event="mouseup">
alert(parseInt(this.currX));
</handler>
</handlers>
</binding>
</bindings>
- IE与Firefox的HTC
- IE与FireFox的兼容性问题
- IE与FireFox的兼容性问题
- IE与FireFox的showModalDialog
- IE与FireFox的showModalDialog
- firefox与ie的兼容问题
- IE 与 FireFox 的 showModalDialog
- IE与Firefox的区别
- IE与FireFox的兼容问题
- IE 与 firefox的差别
- IE与FireFox的showModalDialog
- IE 与 FireFox 的 showModalDialog
- IE与FireFox的兼容性问题
- IE与FireFox的兼容性问题
- firefox与IE的nextSibling
- 实现IE与Firefox的DHTML
- JavaScript中IE与Firefox的区别
- IE与Firefox的CSS兼容大全
- Is Programming an Art?
- VCL常用函数
- 学习笔记(一)
- hack入门教程——53集wmv(迅雷下载)
- ASP.NET AJAX注意要点3
- IE与Firefox的HTC
- C++热身系列一[原创于百合]
- C++热身系列二[原创于百合]
- C++热身系列三[原创于百合]
- 常用Firefox插件
- google专利2则
- 求结构长度笔试题的分析。
- 天道酬勤
- 11月12日-----12月12日的短期学习计划