
javascript
烟雨青山
不断的追求
展开
-
javascript
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------原创 2013-12-09 15:14:55 · 1389 阅读 · 0 评论 -
右下角浮动广告效果
<%@ page import="org.springside.modules.security.springsecurity.SpringSecurityUtils"%> <link href="${ctx }/css/index_style.css" type="text/css" rel="stylesheet" /> ul,li { marg原创 2015-01-12 15:15:39 · 922 阅读 · 0 评论 -
jquery鼠标悬停图片上下滚动切换
jquery鼠标悬停图片上下滚动切换.toll_img{ float:left;width:200px;height:514px;}.toll_info{ float:left;width:200px;height:514px;}$(function(){ $('div').mouseover(function(){ //alert('aaaaaaaaaa');原创 2015-01-21 10:24:07 · 2130 阅读 · 0 评论 -
百度地图路书
路书 body, html{width: 100%;height: 100%;margin:0;font-family:"微软雅黑";} #map_canvas{width:100%;height:500px;} #result {width:100%} 开始 停止 暂停 隐藏信息窗口 展示信息窗口 var map原创 2015-01-21 13:52:08 · 3020 阅读 · 1 评论 -
解决get请求乱码问题,js实现post请求
function sss(){ document.write(""); document.write(""); document.write(""); document.write(""); document.getElementById('username').value='aaaa'; document.getElementById('pa原创 2015-03-17 17:29:12 · 1190 阅读 · 0 评论 -
js过滤特殊字符
//去掉特殊符号的方法(调用在下面)String.prototype.TextFilter=function(){ var pattern=new RegExp("[`~%!@#^=''?~!@#¥……&——‘”“'?*()(),,。.、]"); //[]内输入你要过滤的字符,这里是我的 var rs=""; for(var i=0;i<this.length;i++){ rs+=th原创 2016-11-23 14:59:18 · 3328 阅读 · 0 评论 -
手机号和电话验证js
function checkTel(tel){ var mobile = /^1[2|3|4|5|6|7|8|9]\d{9}$/ , phone = /^0\d{2,3}-?\d{7,8}$/; return mobile.test(tel) || phone.test(tel);}原创 2016-11-23 16:27:07 · 503 阅读 · 0 评论 -
js格式化时间
Date.prototype.Format = function (fmt) { //author: meizz var o = { "M+": this.getMonth() + 1, //月份 "d+": this.getDate(), //日 "h+": this.getHours(), //小时 "m+": t原创 2016-12-22 11:32:03 · 430 阅读 · 0 评论