自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

乐百事

懂得珍惜的人,才懂得生活

  • 博客(14)
  • 资源 (1)
  • 收藏
  • 关注

原创 JS:control the IE (40)

1. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键no 可用于Table2. 取消选取、防止复制3. onpaste="return false" 不准粘贴4. oncopy="return false;" oncut="return false;" 防止复制5. IE地址栏前换成自己的图标6. 可以在收藏夹中显示出你的图标

2005-08-18 11:43:00 726

原创 JS: How to control the IE(keyDown...)?

1 >屏蔽功能类1.1 屏蔽键盘所有键function document.onkeydown(){event.keyCode = 0;event.returnvalue = false;}-->1.2 屏蔽鼠标右键在body标签里加上oncontextmenu=self.event.returnvalue=false或者function document.oncontextmenu() { ret

2005-08-17 17:21:00 1344

原创 JS:location.replace(url)

location.replace(a.htm)但是可能会无法跟踪到上一页的地址

2005-08-09 16:04:00 2561

原创 Socket:SendMail

using System;using System.Net;using System.Net.Sockets;using System.Collections;using System.Configuration;using System.Text;using System.Xml;using System.IO;using System.Web;using System.Web.Mail;nam

2005-08-09 14:55:00 822

原创 Perform the Edit//Cancel//Update//Delete function of the DataGrid.

this.DataGrid1.ItemCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_ItemCommand);private void DataGrid1_ItemCommand(object source, System.Web.UI.WebControls.DataGrid

2005-08-09 14:48:00 826

原创 use ItemCreated to set the page style of DataGrid

this.DataGrid1.ItemCreated += new System.Web.UI.WebControls.DataGridItemEventHandler(this.grid_ItemCreated);private void grid_ItemCreated(object sender, System.Web.UI.WebControls.DataGridItemEventArgs

2005-08-09 14:43:00 688

原创 Use the ItemDataBound event to customize the DataGrid control.

  void Item_Bound(Object sender, DataGridItemEventArgs e)       {             if((e.Item.ItemType == ListItemType.Item) ||              (e.Item.ItemType == ListItemType.AlternatingItem))         {    

2005-08-09 14:38:00 759

原创 add a JS:confirm() to delete(include update) button

this.DataGrid1.ItemCommand += new System.Web.UI.WebControls.DataGridCommandEventHandler(this.DataGrid1_ItemCommand);private void DataGrid1_ItemCreated(object sender, System.Web.UI.WebControls.DataGrid

2005-08-09 14:23:00 1050

原创 Js:print the page 指定元素打印

function DoPrint() { if (window.print) {var Div1 = document.all.Div1.innerHTML;var Div2 = document.all.Div2.innerHTML; // *****************************************************// Div1&Div2 are

2005-08-09 14:13:00 5516 2

原创 Service.Run()

System.ServiceProcess.ServiceController myController =     new System.ServiceProcess.ServiceController("MSSQLSERVER");     switch(myController.Status.ToString())   {    case "Running":     break;    c

2005-08-09 13:56:00 871

转载 [C#]解决读写包含汉字的txt文件时乱码的问题

[C#]解决读写包含汉字的txt文件时乱码的问题         当我们用System.IO.StreamReader读取包含汉字的txt文件时,经常会读出乱码(StreamWriater写文本文件也有类似的问题),原因很简单,就是文件的编码(encoding)和StreamReader/Writer的encoding不对应。    为了解决这个问题,我写了一个类,来取得一个文本文

2005-08-09 13:51:00 2670

原创 Print

Calling the print method has the same effect as choosing Print from the Microsoft? Internet Explorer File menu. The print method activates the Print dialog box, prompting the user to change print sett

2005-08-09 09:47:00 760

原创 Execommand to create hyperlink

Creating a Link and Retrieving the URLfunction AddLink(){//Identify selected textvar sText = document.selection.createRange();if (!sText==""){    //Create link     document.execCommand("CreateLink"); 

2005-08-09 09:43:00 752

原创 可以弹出小文本框作为注释的TextPopup

MyText="Good good study Day day up!"   CLASSID="clsid:adb880a6-d8ff-11cf-9377-00aa003b7a11">        JavaScript:hh.TextPopup(MyText,"Verdana,10",9,9,-1,-1)>   Click here to display an example of an

2005-08-09 09:39:00 1119

IE 11中文版-32位

Windows7版IE11:比较好用的一个版本,目前win7使用中.

2013-10-09

空空如也

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

TA关注的人

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