- 博客(187)
- 资源 (15)
- 收藏
- 关注
原创 仿google分布效果
.btnCss { text-decoration: none; color: Blue; border:none; cursor:pointer; } .btnBg { text-decoration: none
2013-05-28 10:24:04
731
原创 输出电脑CPU温度
在控制台输出 using System.Management; 添加引用 在该解决方案下的引用右击添加 System.Management;Double CPUtprt = 0; System.Management.ManagementObjectSearcher mos = new System.Management.Mana
2013-05-22 11:12:54
792
原创 WebService获得服务器时间
$(function () { $('#btnDate').click(function(){ WebApplication1.WebService1.GetDateTime(onSuccess, onFailed); }) function onSucce
2013-05-22 11:08:58
2231
原创 无刷新效果统计在线人数
$(function () { function GetUser() { WebApplication1.WebService1.GetCountPerson(onSuccess, onFailed); } function onSuccess(res
2013-05-22 10:28:29
749
原创 图片拖出边框删除
#mydiv{ width:900px; background-color:#444;} img{ width:200px; height:200px;} ul{ list-style-type:none;} ul li{ display:inline;} $
2013-05-22 10:19:15
651
原创 jQuery拖动效果
img { width: 100px; height: 100px; } #mydiv { width: 500px; height: 300px; border: solid 1px red;
2013-05-22 07:46:10
893
原创 jQuery放大镜效果
class='cloud-zoom-gallery' title='Thumbnail 2' rel="useZoom: 'zoom1', smallImage: ' zoom/small2.jpg'"> class='cloud-zoom-gallery' title='Thumbnail
2013-05-20 09:34:20
1142
原创 jQuery制作相册
#mydiv ul{ list-style-type:none;} #mydiv ul li{ display:inline;} #mydiv{ width:500px; border:solid 1px #444; background-color:#333;} $(function (
2013-05-20 09:31:25
795
原创 控经纬度显示地图与卫星
$(function () { function latlong() { return new google.maps.LatLng($("#lat").val(), $("#lng").val()); } function position() { map.setCenter(latlong
2013-05-20 09:14:57
904
原创 调用google地图
.photo {width: 300px;text-align: center;}.photo .ui-widget-header {margin: 1em 0;}.map {width: 350px;height: 350px;}.ui-tooltip {max-width: 350px;} $(function () {
2013-05-20 09:09:38
833
原创 像百度那样的智能感知效果
下面 这是一个jQuery插件 $(function () { var arry = ['admin', 'aspx', 'bing', 'wap', 'windows', 'wp7', 'wp8', 'win8']; $('#content').autocomplete(arry
2013-05-20 08:36:16
737
原创 jQuery ui插件用法
$(function () { $('#form1').validate({ rules: { txtUser: { required: true, minlength: 6 }, txtPassword: { required: true, mi
2013-05-07 20:45:38
857
原创 jQuery写fadeTo方法
<!--.imgclass {width:300px; height:300px; border:solid 1px red}--> .imgclass{ width:300px; height:300px; border:solid 1px red;} $(function (
2013-05-06 20:21:47
878
原创 jQuery的slideToggle方法
.imgclass{ width:300px; height:300px; border:solid 1px red;} $(function () { $('#Button1').bind('click', function () { $('img').slideUp(2000);
2013-05-06 20:17:17
798
原创 jQuery实现动画效果
table{border:1px solid #666;} table td{border:1px solid #eee;width:200px;height:200px;} img{width:200px;height:200px;border:none;position:relative;} $(fu
2013-05-06 20:10:12
816
原创 jQuery判断密码强度
.qiang{background:url(/images/pas4.JPG) no-repeat;width:150px;height:40px;float:left;} .zhong{background:url(/images/pas3.JPG) no-repeat;width:150px;height:40px;float:left;} .ruo{background:
2013-04-23 20:24:46
1483
原创 jQuery判断邮箱
$(function () { var bool = false; $('#Email').focus(function () { if (bool == false) { $('#Email').val(''); } }) $('#Email').blur(function () {
2013-04-23 20:21:30
1495
原创 jQuery实现图片前进后退
img { width:300px;height:300px; } a { text-decoration:none; } $(function () { $('img
2013-04-23 20:15:38
936
原创 jQuery写日历
var c = new Calendar("c"); document.write(c); 普通调用: 按钮调用: id="button" type="button" onclick="c.showMoreDay = true; c
2013-04-22 21:50:00
965
原创 jQuery对节点进行操作
$(function () { //如果clone()方法的参数为true,则此元素的事件也会被复制,如果为空(默认为false),则事件不会被复制 $('#img1').click(function () { $(this).clone(true).appendTo('div');
2013-04-22 21:39:03
622
原创 jQuery全选、取消全选、反选
img { width:50px; height:50px; } table { width:600px; height:400px; } table tr td{ border:solid 1px #eee;}
2013-04-22 21:37:01
728
原创 jQuery实现变色
function backgorundColor(i) { // this.document.body.style.backgroundColor = i; // this.document.getElementById('div1').style.backgroundColor= i; thi
2013-04-22 21:33:30
984
原创 博客园左侧导航jQuery+Css
#titleDiv { width: 180px;height: 30px;margin: 0px; } #titleDiv_Bj { background: url('images/site_cate_title_bg.png') no-repeat;width: 180p
2013-04-22 21:18:12
824
原创 Xaml选择要保存文件的类型
前台代码: 后台代码:using System;using System.Collections.Generic;using System.IO;using System.Linq;using Windows.Foundation;using Windows.Fou
2013-04-19 23:47:06
1027
原创 jQuery实现简单登陆判断
$('#txtUserName').focus(function () { $('#txtUserName').val(''); }) $('#txtPassWord').focus(function () { $('#txtPassWord').val('');
2013-04-19 23:37:23
1394
原创 jQuery弹出select选择
$(function () { $('#btn').click(function () { alert($('#s option:selected').val()); }) }) 商
2013-04-19 23:36:16
1316
原创 jQuery动态创建元素
$(function () { $('#btnCreateP').click(function () { var createP = '白日依山尽黄河入海流欲穷千里目更上一层楼'; $('div').append(createP); }) $('#btn
2013-04-19 23:34:10
1012
原创 jQuery层次选择器
table tr td { width:240px;height:240px; } .clasImg { width:500px;height:200px; } $(function () { $('#Button1').cl
2013-04-18 14:52:21
663
原创 jQuery实现小动画
//展开图片或收缩图片 $(function () { $('#Button3').click(function () { $('#img').show(5000); }) $('#Button4').click(function () {
2013-04-18 14:49:13
641
原创 jQuery写超链接
.divFrame { width:260px;border:1px solid #666;font-size:10pt; } .divTitle { background-color:#eee;padding:5px; } .divContent { padding:
2013-04-18 14:45:42
1193
原创 jQuery写隔行变色
body { font-size:12px;text-align:center; } #tbStu { width:260px;border:1px solid #666;background-color:#eee; } #tbStu tr {
2013-04-18 14:42:58
677
原创 jQuery写注册页
$(function () { $("#btnSubmit").click(function () { var txtName = $('#txtName').val(); var gender = $('#gender').is(':checked') ? '男' : '女';
2013-04-18 14:38:05
674
原创 JS替换节点
function createNode() { var pNode = document.createElement('p'); var tNode = document.createTextNode('烟花三月下杨州'); pNode.appendChild(tNode); document.
2013-04-16 19:18:20
2302
原创 JS对img进行操作
var i = 1; var n; function showImg() { if (document.getElementById('img').getAttribute("src") == "images/1.jpg") { document.getElementById('img').setAttribute("s
2013-04-16 19:09:45
2390
原创 JS写Cookie
function writeCookie() { var today = new Date(); today.setDate(today.getDate() + 1); document.cookie = 'userName=商商;Expires=' + today.toGMTString();//js进行设置过期时间时
2013-04-16 19:05:43
1253
原创 Cookie练习
后台代码: protected void Button1_Click(object sender, EventArgs e) { //特殊加密算法 HttpCookie cookie = new HttpCookie("name"); cookie.Value = Encode(
2013-04-16 19:02:08
708
原创 JS写跑马灯
function show() { var info = document.getElementById('Text1'); info.value = info.value.substr(1) + info.value[0]; } setInterval(show, 50
2013-04-16 18:56:32
768
原创 JS写九九乘法表
function show(){ for (var i = 1; i for (var j = 1; j document.getElementById('divmain').innerHTML += j + "*" +i + "=" + i * j + "\t";
2013-04-16 18:47:14
700
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人