鼠标移入移出事件: mouseover:鼠标移入到目标元素的上方,在其子元素上时也会触发,。所以说也就是说会产生冒泡。 鼠标依次从外往里,以下是结果 可以看出打印出了两次,可见确实冒泡执行了两次。 mousemove:鼠标在元素内部移到时不断触发, 同样的HTML,效果见下图,鼠标移动一次下,打出了 ...
分类:
其他好文 时间:
2017-08-24 22:45:42
阅读次数:
219
第一种方式使用mouseover、mouseout事件 // 鼠标滑过显示全名var origin_name;$('.task_name').mouseover(function() { origin_name = $(this).text(); $(this).text($(this).nextA ...
分类:
Web程序 时间:
2017-08-24 16:16:09
阅读次数:
146
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;u ...
<!DOCTYPE html><html><head lang="en"> <meta charset="UTF-8"> <title></title> <script type="text/javascript"> window.onload = function(){ //去掉默认的contex ...
分类:
编程语言 时间:
2017-08-21 14:46:59
阅读次数:
191
资源下载:http://pan.baidu.com/s/1eSth0zg 游戏窗口的创建: 1、新建一个项目Game,右键-->属性-->文本文件编码中选择其他,将编码设置为UTF-8 2、将下载好的libs、res复制粘贴到项目下 3、选择libs-->jar目录下选中3个jar包右键构建路径 4 ...
★★ 输入文件:mouse.in 输出文件:mouse.out 简单对比 时间限制:1 s 内存限制:128 MB 鼹鼠是一种很喜欢挖洞的动物,但每过一定的时间,它还是喜欢把头探出到地面上来透透气的。 根据这个特点阿Q编写了一个打鼹鼠的游戏:在一个n*n的网格中,在某些时刻鼹鼠会在某一个网格探出头来 ...
分类:
其他好文 时间:
2017-08-19 12:46:02
阅读次数:
187
<a href="#"><img src="https://gss0.bdstatic.com/70cFsjip0QIZ8tyhnq/img/logo-zhidao.gif" border="0" onMouseOver="this.src='http://s1.bdstatic.com/r/www ...
分类:
其他好文 时间:
2017-08-18 14:28:53
阅读次数:
99
html页面 js-add/del-row-col页面 js-- mouse调整行row js-- mouse调整列 col ...
分类:
Web程序 时间:
2017-08-11 19:31:22
阅读次数:
215
PHP与MYSQL事务处理 $conn = mysql_connect('localhost','root','root') or die ("数据连接错误!!!"); mysql_select_db('test',$conn); mysql_query("set names 'GBK'"); // ...
分类:
数据库 时间:
2017-08-10 19:45:57
阅读次数:
221
在 adb shell 里有个很实用的命令叫 input,通过它可以做一些有趣的事情。 input 命令的完整 help 信息如下: Usage: input [<source>] <command> [<arg>...] The sources are: mouse keyboard joysti ...
分类:
数据库 时间:
2017-08-08 20:48:46
阅读次数:
364