- 博客(42)
- 资源 (3)
- 收藏
- 关注
转载 cookie实现登录页面记住我和自动登录功能
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { if (Request.Cookies["re"]!=null) { this.use
2013-04-25 16:36:26 13629
转载 js密码强度验证
//CharMode函数 //测试某个字符是属于哪一类. function CharMode(iN) { if (iN >= 48 && iN return 1; if (iN >= 65 && iN return 2; if
2013-04-23 19:31:30 610
转载 jQuery中的事件的应用
目录:一、事件机制二、页面载入事件2.1、ready()方法的工作原理2.2、ready()方法的几种相同写法三、绑定事件四、切换事件4.1、hover()方法4.2、toggle()方法五、移除事件六、其他事件6.1、方法one()6.2、方法trigger()七、表单
2013-04-23 19:28:45 1844
转载 jQuery仿博客园首页左导航效果
html { color: #666; background: #FFF; } body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code, form, i, fieldset, legend, input, tex
2013-04-23 19:22:08 832
原创 jQuery邮箱验证
.txtbackcolor { background-color:#eee; } $(function () { var state = false; $('#txtEmail').focus(function () {
2013-04-23 19:19:58 8706
原创 查看图片前进后退效果图
#mydiv { position: absolute; width: 500px; height: 400px; top: 50%; left: 50%; margin-top: -200px; m
2013-04-23 19:17:42 4794
原创 jQuery实现全选于反选功能
table img { width:50px; height:50px; } table { width:600px; height:400px; } table tr td{ border:solid 1px #eee;}
2013-04-22 14:25:34 641
原创 jQuery在p前后添加节点
$(function () { $('#Button1').click(function () { $('p').after('After Hello World'); }) $('#Button2').click(function () { $('p'
2013-04-22 10:05:57 7448
原创 jQuery图片复制
.imgclass{ width:200px; height:200px;} $(function () { $('#img1').click(function () { //如果clone()方法的参数为true,则此元素的事件也会被复制,如果为空(默认为false),则事件不会被复
2013-04-22 10:05:00 4195
原创 jQuery替换删除节点
$(function () { $('#Button1').click(function () { //$('p').replaceWith('百度'); $('百度').replaceAll($('p')); }) $('#Button2').clic
2013-04-22 10:04:12 764
原创 jQuery设置文字样式
p { background-color:#eee; font-size:30px; } .classadd { font-weight:bold; font-family:微软雅黑; font-size:40px; background-color:Green;
2013-04-18 17:53:41 10517
原创 内容选择器
img { width:200px; height:200px; } $(function () { $('#btn').click(function () { //alert($('div:eq(0)').text()); //获取的是标
2013-04-18 17:50:58 684
原创 jQuery属性过滤器
div { width:200px; height:100px; border:2px solid red; background-color:#eee; } img { width:200px; height:200px; }
2013-04-18 14:09:16 2582
原创 jQuery随机改变图片
img { width:200px; height:200px; } $(function () { $('#btn1').click(function () { var num = Math.floor(Math.random() * 8
2013-04-18 14:06:40 2840
原创 jQuery隔行变色
.imgclass { width: 200px; height: 200px; } .imgclass1 { width: 220px; height: 220px; }
2013-04-17 20:40:59 753
原创 jQuery基本选择器
.imgclass { width: 200px; height: 200px; } .imgclass1 { width: 210px; height: 210px; } table t
2013-04-17 20:38:25 877
原创 jQuery层次选择器
.imgclass { width:100px; height:100px; } div { width:250px; height:250px; background-color:#eee; border:solid 2px blue; }
2013-04-17 20:36:22 4501
原创 导航条(收起展开)
body { font-size: 13px; } #divTotle { border: solid 1px #eee; width: 301px; overflow: hidden; }
2013-04-17 20:26:01 3703
原创 JS操作图片(添加,更改,删除)
Image { width:100px; height:100px; } function chuangjian() { //添加图片 var array = ['1.jpg',
2013-04-16 17:11:08 18719 4
原创 用jQuery访问DOM对象
.divFrame { width:260px; border:solid 1px #666; font-size:10pt; } .divTitle { background-color:#eee; padding:5px; } .divContent {
2013-04-16 17:03:02 602
原创 JS使用传统的方法访问DOM对象
.divFrame { width:260px; border:solid 1px #666; font-size:10pt; } .divTitle { background-color:#eee; padding:5px; } .divContent {
2013-04-16 17:02:16 747
原创 JS创建替换删除节点
function CreateNode() { var pnode = document.createElement('p'); var tnode = document.createTextNode('烟花三月下扬州'); pnode.appendChild(tnode); document.body.appendChild
2013-04-16 16:59:53 1272
原创 JS张开收缩图片
.image { width:400px; height:300px; border:1px solid blue; display:none; } .divFrame { width:260px; border:solid 1px #666; font
2013-04-16 16:58:40 1138
原创 JS更换图片
// 方法一(麻烦) function put() { var len = document.getElementsByName('RA'); for (var i = 0; i if (len[i].checked == true) { var a
2013-04-16 16:54:03 7935
原创 采用三层做的小项目
要求:背景:医院为病人做随访,随访内容包括,姓名,年龄,性 别,地址,身高,体重,血压,随访日期,下次随访日期1. 功能:录入随访信息,更改随访信息,显示随访信息2.要求:本次随访日期和下次随访日期自动生成:本次随访 日期就是当前日期;下次随访日期根据随访周期动态生成3.随访周期为15天4.采用三层架构查看前台: 添加
2013-04-09 20:06:42 776
转载 浏览器对象模型
BOM-浏览器对象模型:提供了独立于内容而与浏览器窗口进行交互的对象,window对象是整个BOM的核心,所有对象和集合都以某种方式回接到window对象window对象window对象表示整个浏览器窗口,但不必表示内容如果页面使用框架集合,则每个框架都有自己的window对象,存放于frames集合中(window框架操作将会在后面单独拿出一章来讲)
2013-04-09 19:39:35 1409
原创 JS中改变时间
var thedate = new Date('2012, March, 7,12:11:22'); thedate.setFullYear(2013);//将年份改成2013 alert(thedate.toLocaleString()); thedate.setFullYear(2013,3,8);//将年月日分别变为了2013,4,8
2013-04-09 19:36:46 1493
原创 JS时间的不同写法
var thedate = new Date(2012, 3, 7, 12, 11, 12,222);//其中的月份为4月 alert(thedate.toLocaleString());//时间将变成本地的字符串表示 alert(thedate.getMilliseconds());//获取毫秒 var thedate = new Dat
2013-04-09 19:33:52 872
原创 JS时间的获得
var thedate = new Date(); alert('LocaleString:' + thedate.toLocaleString()); //将时间转换成本地的字符串表示 alert('LocaleDateString:' + thedate.toLocaleDateString());//将年月日转换成本地的字符串表示 ale
2013-04-09 19:30:27 529
原创 push,concat,slice,pop的简单用法
//pushi方法可以在数组末尾添加一项或者多项,更改的原来数组 var array = ['唐玄奘', '孙悟空', '猪刚烈', '沙悟净']; array.push('白龙马'); alert(array.toString()); array.push('牛魔王', '铁扇公主', '红孩儿');
2013-04-09 17:55:07 904
原创 JS标题跑马灯效果
我是个好人! var x = 20; alert(isNaN(x)); //判断其是不是数字 function scroll() { var title = document.title; var fristchar = title.charAt(0); //在从中取第一
2013-04-09 17:50:10 2942
原创 arguments的简单用法
//Js中的函数可以不显式定义参数,arguments就是参数集合,在调用函数是传入了几个参数, //arguments集合就包含所有的传入参数,且参数顺序和传入顺序一致 //js中的函数不需要显式的声明返回值 function showHe() { //alert(arguments[0]+arguments[1]+
2013-04-09 17:47:53 1549
原创 continue,break,return的区别(JS验证)
/* continue:结束本次循环,循环变量继续递增或递减,开始下次循环 break:结束循环,执行循环后面的代码(如果有的话) return:结束函数的执行,return后面的所有代码都不再执行 */ function showinfo() { for (var i = 0; i
2013-04-09 17:43:35 7256
原创 JS版简单登录
function validator() { var username = document.getElementById('txtUserName').value; var password = document.getElementById('txtPassword').value; //alert(username+","+passwor
2013-04-09 17:41:41 667
原创 JS版九九乘法表
for (var i = 1; i for (var j = 1; j //document.write(i + '*' + j + '=' +i*j + '\t'); document.write(i + '*' + j + '=' + ((i * j) > 9 ? (i * j) : " " + (i * j))
2013-04-09 17:37:38 3935
原创 JS小练习(Array的简单应用)
//为Array赋值的方法 function showarray() { var array = new Array(); array[0] = 1; array[1] = 2; array[2] = 3;
2013-04-09 17:34:33 1402
原创 显示内容页(连上)
前台: 后台:using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.UI;
2013-04-01 22:02:24 456
原创 此片为添加页(连上)
前台: KindEditor.ready(function (K) { var editor1 = K.create('#content1', { cssPath: 'Kindeditor/plugins/code/prettify.c
2013-04-01 22:00:00 701
原创 连上篇,此片为编辑页
前台: KindEditor.ready(function (K) { var editor1 = K.create('#content1', { cssPath: 'Kindeditor/plugins/code/prettify.cs
2013-04-01 21:58:15 592
原创 Griview的简单用法(分页,编辑,删除,选中删除)
用法包含分页,编辑,删除,选中删除等前台: function showinfo() { if (confirm('真的要删除吗') == false) { return false; } }
2013-04-01 21:55:31 1675
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人