JavaScript
wowtous
这个作者很懒,什么都没留下…
展开
-
javascript:随机十六位颜色函数
来自:http://outofmemory.cn/code-snippet/4595/suiji-shi-liuwei-color-functionfunction randomRange(min, max) { return Math.floor(Math.random() * (max - min + 1) + min);};function randomColor转载 2013-11-15 15:48:03 · 918 阅读 · 0 评论 -
Jquery 引入css文件
jQuery("head").append(""); });原创 2014-07-14 23:43:08 · 1813 阅读 · 0 评论 -
Jquery 获取鼠标所在的当前对象
test1 test2 test3 test4 test1 test2 test3 test4 $("td").click(function(event) { var $target = $(event.target); alert($target.text());});原创 2014-07-14 23:35:49 · 6031 阅读 · 0 评论 -
Jquery:Jquery +css实现的导航
list.header { border-bottom: 1px solid #cdcdcd; margin: 0 auto; width: 100%; overflow: hidden;}.border_left { border-left: 1px solid #D4D6D9;}ul li { float: left; width: 120px; heig原创 2014-06-25 23:33:58 · 624 阅读 · 0 评论 -
JavaScript: 100多个很有用的JavaScript函数以及基础写法大集合
转自:http://www.oecp.cn/hi/hailang/blog/481.document.write("");为 输出语句2.JS中的注释为//3.传统的HTML文档顺序是:document->html->(head,body)4.一个浏览器窗口中的DOM顺序是:window->(navigator,screen,history,location,document)5.得到转载 2013-12-27 15:00:47 · 615 阅读 · 0 评论 -
javascript:让图片抖动的JS代码
来自:http://outofmemory.cn/code-snippet/5493/let-tupian-doudong-javascript-code .shakeimage { position: relative; } var rector = 2var stopit = 0var a = 1var count = 0 function i转载 2013-11-15 13:30:21 · 3748 阅读 · 0 评论 -
iframe自适应高度
序言 在网站开发过程中,iframe不怎么被推荐使用,有点类似Table的命运,但我个人认为有些地方使用iframe还是挺方便的,比如局部刷新和灵活控制响应结果的显示位置(我不喜欢整页整页地刷新)。也许存在其他的东西能够完美地替代iframe的这些功能,我也很乐意了解,可根据目前浅薄的见识,还不知道哪个可以(T_T),所以先把iframe搞清楚吧~ 正文 使用ifram转载 2013-11-05 12:31:43 · 980 阅读 · 0 评论 -
javascript:验证是否是真实有效的身份证号码函数
来自:http://outofmemory.cn/code-snippet/4571/page-yanzheng-shifou-zhenshi-youxiao-shenfen-zheng-number/*! * Copyright (c) 2011 sxgkwei * Author:sxgkwei * Email:[email protected] * Date: 2011-11转载 2013-11-15 16:17:09 · 1415 阅读 · 0 评论 -
javascript:评估用户输入的密码的强度
来自:http://outofmemory.cn/code-snippet/4655/pinggu-user-out-password-force// Password strength meterfunction passwordStrength(password1, username, password2) { var shortPass = 1,转载 2013-11-15 14:39:10 · 793 阅读 · 0 评论 -
JQuery:渐隐渐显图片轮换幻灯片
来自:http://outofmemory.cn/code-snippet/4443/jQuery-liangge-with-jQuery-jianyin-jianxian-tupian-lunhuan-huandeng-sheet两个基于jQuery的渐隐渐显图片轮换幻灯片——如果不运行请刷新页面转载 2013-11-15 17:49:59 · 1768 阅读 · 0 评论 -
JavaScript:js常用工具笔记
js 工具原创 2014-12-23 16:12:33 · 810 阅读 · 0 评论