永远点不到的按钮 && 鼠标经过边框自动边框变色
来源:互联网 发布:计量经济学论文数据 编辑:程序博客网 时间:2024/05/01 19:43
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>Insert title here</title><script type="text/javascript" src="jquery-1.4.js"></script><script type="text/javascript">var mask,currInput;$(function(){var height = $(window).height();var width = $(window).width();$('#x').mouseover(function(){var randHeight = height / 2 - (Math.random() * 200);var randWidth = width / 2 - (Math.random() * 200);$(this).css('top',randHeight)$(this).css('left',randWidth)});$('input:not(button)').mouseover(function(){currInput = $(this);mask = setTimeout(randomInputBorderColor,100);});$('input:not(button)').mouseout(function(){clearTimeout(mask);});});function randomInputBorderColor () {var randomColor = parseInt(Math.random() * 10000);$(currInput).css('border-color','#' + randomColor);mask = setTimeout(randomInputBorderColor,100);}</script></head><body><input value="admin" type="text" style="position: absolute;top: 40%;left: 40%;width: 10%" /><input value="admin" type="password" style="position: absolute;top: 45%;left: 40%;width: 10%" /><input id="x" value="提交" type="button" style="position: absolute;top: 50%;left: 40%;" /></body></html>
需要 jQuery 。
- 永远点不到的按钮 && 鼠标经过边框自动边框变色
- 鼠标经过图片时显示半透明文字,边框变色
- 鼠标经过图片时显示半透明文字,边框变色
- 鼠标经过时候边框的实现
- 鼠标点击文本框,边框变色
- 鼠标点击文本框,边框变色
- mouseenter mouseleave 鼠标经过div边框变色,点击跳到相应链接
- CSS实现鼠标悬停图片时的边框变色效果
- 自定义文本框 鼠标经过 边框颜色变化
- 拖动隔行变色的鼠标经过变色
- 去除按钮的边框
- 无边框的按钮
- 边框妙用的按钮
- 鼠标经过区块会变色的实验
- 鼠标经过时变色的表格
- 用CSS实现鼠标经过图片链接加边框
- 鼠标换过 边框 变色 并带有动画效果
- 边框紧挨的变色框制作
- JS操作cookie工具函数01
- linux nslookup
- Oracle 分析函数——函数RANK,DENSE_RANK,FIRST,LAST…
- 关于VMware ESX Server客户端连接不上等问题的解决
- java学习笔记
- 永远点不到的按钮 && 鼠标经过边框自动边框变色
- emacs Bookmark Plus 代码浏览/导航
- OnSysCommand()这个函数主要是截获控制命令的
- 【android】小知识点总结
- 两次配置xp+vc6.0+ddk失败的经历
- Android添加开机音乐
- 【编程珠玑】第十一章 排序 (插入排序和快速排序的深度优化)
- Settings.System的使用
- python打开网页和暂停