自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

C#.NET专栏

宝剑锋从磨砺出,梅花香自苦寒来!------《剑胆琴心》随记

  • 博客(39)
  • 资源 (4)
  • 收藏
  • 关注

原创 innerText与innerHTML区别

window.onload = function () {            document.getElementById('btn1').onclick = function () {            //显示的是层中的文本内容                alert(document.getElementById('dv').innerText);        

2014-04-26 22:22:39 1763

原创 超链接显示图片

window.onload = function () {            document.getElementById('ak').onmouseover = function () {                if (!document.getElementById('imxy')) {                    var im = document.cre

2014-04-26 22:22:01 1555

原创 层应用边框样式

div    {        width:300px;        height:200px;        background-color:Green;        margin-bottom:10px;        }    .cls    {        border:1px solid red;        }       

2014-04-26 22:21:26 488

原创 层的右浮动

window.onload = function () {            document.getElementById('btn').onclick = function () {                //document.getElementById('dv').style.styleFloat = 'right';                if (type

2014-04-26 22:20:48 582

原创 创建三个输入文本框,当光标离开文本框的时候如果文本框为空,则将文本框背景色设置为红色,如果不为空则为白色。提示:焦点进入控件的事件是onfocus,焦点离开控件的事件是onblur

window.onload = function () {            var txts = document.getElementsByTagName('input');            for (var i = 0; i                 txts[i].onblur = function () {                    if (t

2014-04-26 22:20:18 2639

原创 评分显示

window.onload = function () {            var tds = document.getElementById('tb').getElementsByTagName('td');            for (var i = 0; i                 tds[i].onmouseover = function () {    

2014-04-26 22:18:17 763

原创 点击按钮,表格隔行变色:偶数行为黄色背景,奇数行为默认颜色。通过table的getElementsByTagName取得所有的tr,依次遍历,如果是偶数就…………。

window.onload = function () {            document.getElementById('btn').onclick = function () {                var trs = document.getElementById('tb').getElementsByTagName('tr');               

2014-04-26 22:17:46 2053

原创 鼠标放进去行变色

window.onload = function () {            var trs = document.getElementById('tb').getElementsByTagName('tr');            for (var i = 0; i                 trs[i].onmouseover = function () {    

2014-04-26 22:17:10 659

原创 显示层||隐藏层

window.onload = function () {            document.getElementById('btnShow').onclick = function () {                document.getElementById('dv').style.display = 'block';            };         

2014-04-26 22:16:37 669

原创 点击按钮层动态变小

window.onload = function () {            document.getElementById('btn').onclick = function () {                var dvObj = document.getElementById('dv');                dvObj.style.overflow =

2014-04-26 22:16:01 535

原创 添加属性

window.onload = function () {            var tds = document.getElementById('tb').getElementsByTagName('td');            for (var i = 0; i                 tds[i].onclick = function () {        

2014-04-26 22:15:23 460

原创 鼠标放小图上显示大图

window.onload = function () {            var datas = {                "img/1-1.jpg": ["img/1.jpg", "老牛", "163cm"],                "img/2-1.jpg": ["img/2.jpg", "老马", "165cm"],                "i

2014-04-26 22:14:44 750

原创 界面上有几个球队名字的列表,将鼠标放到球队名字上就变为红色背景,其他球队背景颜色为白色,点击一个球队的时候就将点击的球队变为fontSize=30字体(fontSize=‘’回到默认)。

window.onload = function () {            var uls = document.getElementById('ui').getElementsByTagName('li');            for (var i = 0; i                 uls[i].onmouseover = function () {    

2014-04-26 22:14:10 762

原创 密码强弱的判断

window.onload = function () {            document.getElementById('txt').onkeyup = function () {                var tds = document.getElementById('tb').getElementsByTagName('td');               

2014-04-26 22:12:03 1993

原创 全选或全不选

歌曲   真的爱你     the show      我的太阳       再回首        光辉岁月         好久不见          周杰棍的双杰伦window.onload = function () {            //歌曲列表 (CheckBox+Label)全选、全不选、反选,只针对一个层中,div.getEleme

2014-04-26 22:11:14 681

原创 加载省市:

window.onload = function () {            var datas = {                "吉林": ["长春", "四平", "松原"],                "山东": ["青岛", "济南", "烟台"],                "山西": ["大同", "太原", "运城"]            };

2014-04-26 22:10:24 497

原创 左右的移动<<>><>jQuery的实现

$(function () {            $('#toAllLeft').click(function () {                $('#se1 option').appendTo($('#se2'));            });            $('#toAllRight').click(function () {            

2014-04-26 22:09:22 489

原创 弹出对话框的六种写法:

$是Jquery中的顶级对象$(function () {            alert('aaa');        });        jQuery(function () {            alert('bbb');        });---------------------------------------------        $(

2014-04-26 22:08:34 670

原创 JavaScript总结

匿名函数var ff = function () {            return 'hhqybsl';        };        var result = ff();        alert(result);---》你点吧 window.onload = function () {            document.getElementByI

2014-04-26 22:07:08 483

原创 将"2014-03-22"这个字符串转换成"2014年03月22日"日

(split(char[] spoeater, StringSplitOptions.RemoveEmptyEntries)方法)string date = "2014-03-22";            char[] chs = { '-','/' };            string[] sp = date.Split(chs,StringSplitOptions.Remov

2014-04-26 22:02:28 728

原创 SqlHelper类的终极版

//SqlHelper的目的是从数据库获得信息或将信息保存到数据库。本实例的SqlHelper主要功能如下。      //(1)执行不返回数据的T-Sql命令。例如修改会员卡信息、添加会员资料等。    //(2)返回一个字段的T-Sql命令。例如获取会员卡类型的积分规则。     //(3)返回一组数据。例如获取会员资料、获取所有会员卡类型等。      //(4)缓存参数列表

2014-04-16 23:14:21 1102 1

原创 SQL-带条件的查询

----------------------------带条件的查询---------------------------select * from TblClassselect * from TblStudentselect * from TblScore--------------------------查询没及格的学生的学号-------------select tSId

2014-04-07 22:35:50 927

原创 数据检索

-------------------------------数据检索-----------------------------------use Itcast2014select * from Ordersselect OrderID,CustomerID,EmployeeID from Orders-------------------起列名------------sele

2014-04-07 22:32:19 532

原创 手写T-SQL创建约束

---------------------------手写T-SQL创建约束------------------------------alter table Employees add constraint FK_Employees_Department_EmpDepId foreign key(EmpDepId)references Department(DepId) on del

2014-04-07 22:31:16 633

原创 SQL-约束

--权限问题用everyone访问----生成脚本选择版本----------------------------------约束--------------------------创建员工表和部门表--create table Employees( EmpId int identity(1,1), EmpName varchar(50), EmpGender ch

2014-04-07 22:30:24 518

原创 ADONET_SqlConnection001

private void btnInsert_Click(object sender, EventArgs e)        {            string conStr = "Data Source=Charles;Initial Catalog=Itcast2014;Integrated Security=True";            using (SqlConne

2014-04-07 22:27:09 589

原创 文件复制功能

private void btn1_Click(object sender, EventArgs e)        {            OpenFileDialog ofd = new OpenFileDialog();            if (ofd.ShowDialog() == System.Windows.Forms.DialogResult.OK)     

2014-04-05 14:30:43 492

原创 在控制台中写的内容写到文件中

Console.WriteLine("是否创建文本?Y/N");            string Answer = Console.ReadLine();            if (Answer.ToLower() == "y")            {                using (FileStream file = new FileStream("txt

2014-04-05 13:55:04 1150

原创 List<T>集合的常见用法(控制台)

static void Main(string[] args)        {            List list = new List();            //向集合中添加一个值            list.Add("abc");            list.Add("dcf");            list.Add("aaa");    

2014-04-04 17:18:51 1532

原创 登录验证的三种方式(控制台)

第一种方式:            while (true)            {                Console.WriteLine("请输入用户名:");                string uid = Console.ReadLine();                Console.WriteLine("请输入密码");         

2014-04-04 00:48:43 2007

原创 利用抽象类来实现USB的插入设备

USBProtocol u = new UDisk();            u._插入USB设备();            Console.ReadKey();abstract class USBProtocol    {        public abstract void _插入USB设备();    }class UDisk:USBProtocol  

2014-04-01 23:27:48 688

原创 利用接口来实现多态

I接口 i = new MyClass();            i.funk();            Console.ReadKey();interface I接口    {        void funk();    }class MyClass:I接口    {        //方法体的规则就是当做没有接口一样写        public

2014-04-01 23:27:18 688

原创 静态类实现单例模式

//单例模式            StaticClass sc = StaticClass.Def;            Console.WriteLine(sc.num);            sc.num = 100;            StaticClass ss = StaticClass.Def;            Console.WriteLine

2014-04-01 23:09:03 839

原创 设置窗体的起始位置,并检查配置文件是否存在,存在使用配置文件,不存在创建配置文件,在每次打开窗体时保持窗体上一次关闭的位置。

//设置窗体的起始位置            //检查配置文件是否存在            if (File.Exists("config.dat"))            {                Point p;                //存在使用配置文件                using (FileStream file = new Fil

2014-04-01 12:41:53 871

原创 序列化和反序列化

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.IO;using System.Diagnostics;using System.Runtime.Serialization.Formatters.Binary;namespace

2014-04-01 11:51:06 412

原创 StreamWriter(流形式写入文本文件)

static void Main(string[] args)        {            //StreamReader sr = new StreamReader("x.txt", Encoding.Default);            //{            //    sr.Read();            //}            us

2014-04-01 02:14:14 1777

原创 FreamStream文件的分割

#region 文件分割        static void Main(string[] args)        {            string file = @"x.txt";            using (FileStream fileRead = new FileStream(file, FileMode.Open, FileAccess.Read)) 

2014-04-01 01:53:09 1254

原创 流操作文件的合并

控制台:在控制台中输入多个文件用“+”连接起来,然后合并成一个文件。            Console.WriteLine("请输入文件名!");            string fileName = Console.ReadLine();            Console.WriteLine("请输入保存文件名!");            string fileSa

2014-04-01 01:13:12 2018

原创 控制台的文件复制操作

#region 控制台的文件复制操作            Console.WriteLine("请输入要复制的文件!");            string fileRead = Console.ReadLine();            Console.WriteLine("请输入要保存的未知!");            string fileSave = Console

2014-04-01 00:05:04 1827

sql_search

sql_search.exe

2017-05-09

网站模板,网络用项!

网站,技术资源码!学习工作用。网站,技术资源码!学习工作用。

2014-01-02

jquery.easing.1.3.js

用于js开发!幻灯片Jquery库的引用,方便开发节省时间。

2013-12-24

FCKeditor_2.6.4.1

FCKeditor_2.6.4.1以测试过,官方的配置说明!跟着说明走,细心的修改一下,即可能用!

2013-08-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除