事件 一般事件 onclick 鼠标点击时触发此事件 ondblclick 鼠标双击时触发此事件 onmousedown 按下鼠标时触发此事件 onmouseup 鼠标按下后松开鼠标时触发此事件 onmouseover 当鼠标移动到某对象范围的上方时触发此事件 onmousemove 鼠标移动时触发 ...
分类:
编程语言 时间:
2016-05-19 19:15:15
阅读次数:
182
思路:分两步, 1.先把各个框框画好 2.用JS实现效果。 用到两个事件:onmouseover,onmouseout CSS: html-body部分 ...
分类:
其他好文 时间:
2016-05-08 18:04:07
阅读次数:
158
1、onmouseover与onmouseenter区别:onmouseenter不支持事件冒泡; 冒泡:子和父都绑定相同的事件,当子的事件触发,父身上同样的事件也会触发,由父去执行事件。(子也叫做目标元素),blur、focus、load、unload事件不能冒泡。 捕获:通过addEventLi ...
分类:
Web程序 时间:
2016-05-04 15:45:55
阅读次数:
201
(1)鼠标事件-onmouseover、onmouseout<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<htmlxmlns="http://www.w3.org/1999/xhtml">
<head>
<metahttp-equiv="Content-Type"cont..
分类:
编程语言 时间:
2016-04-27 14:21:55
阅读次数:
220
1.js的引入与CSS一样,可以在行间写,可以在head标签里面写,最后也可以用外部样式引入,当然还是推荐外部样式引入,实现结构,表现,行为的3者分离。 2.初次使用onmouseover,onmouseout,onclick,alert,分别代表的是鼠标移入,鼠标移出,点击,弹出警示框。 3.使用 ...
分类:
Web程序 时间:
2016-04-17 06:25:42
阅读次数:
184
1.鼠标单击事件( onclick ) 2.鼠标经过事件(onmouseover) 3.鼠标移开事件(onmouseout) 4.光标聚焦事件(onfocus) 5.失焦事件(onblur) 6.内容选中事件(onselect) 7.文本框内容改变事件(onchange) 8.加载事件(onload ...
分类:
Web程序 时间:
2016-04-16 15:14:20
阅读次数:
278
设置鼠标移入移出事件onmouseover="over(this,this.src)" onmouseout="out(this)" <div id="divbigimage" style="display:none;width:300px;height:300px;position:absolut ...
分类:
其他好文 时间:
2016-04-14 15:46:56
阅读次数:
111
目标效果: 表单的群发按钮,在鼠标悬停时为深蓝色,鼠标离开时为淡蓝色。 HTML代码: <button id="submitBtn" class="btn" onmouseover="this.className='input_move'" onmouseout="this.className='i ...
分类:
Web程序 时间:
2016-04-11 20:33:18
阅读次数:
245
前台加载js $(function(){ var publishStr="<%=publishText%>" var marqueeStr=" <marquee id=\"marquee0\" onmouseover=\"this.stop()\" onmouseout=\"this.start() ...
分类:
其他好文 时间:
2016-04-06 15:26:52
阅读次数:
1398
好多人想要学习前端……自学或者培训那么我们在学习过程中到底需要掌握那些基础知识呢!下面分类了JS中必备的知识也是必须要了解学会的!看一看你是否已经将JS的基础知识都了如指掌了呢? 事件: onmousedown 鼠标按下 onmouseup 鼠标抬起 onmouseover 鼠标移入 onmouse ...
分类:
Web程序 时间:
2016-04-05 15:42:20
阅读次数:
183