摘要:
// 键盘按键 //可以选择给docment添加,或者直接写出来例如 onkeypress = function(eve){ }//也可以 docment.onkeyPress = funcation(eve){ }/* document.onkeydown = function(){ // ale 阅读全文
摘要:
/*evetK.addhandle(document,'DOMMouseScroll',test);//给火狐添加事件evetK.addhandle(document,'mousewheel',test)//给谷歌IE添加滑动事件function test(even){ var e= even||w 阅读全文
摘要:
<!DOCTYPE html><html><head> <title></title> <style type="text/css"> #dv1{ width: 500px;height: 500px;background: red;border: 1px solid; } #dv2{ width: 阅读全文
摘要:
<body> <div class="div1></div> </body> <script> var evetK = {//对象:就相当于苍老师 //addhandle就相当于苍老师的名字; addhandle:function(ele,type,handle){//添加时间 if (ele.ad 阅读全文