- 博客(26)
- 资源 (1)
- 收藏
- 关注
转载 Javascript页面宽度高度
测试十维设计开发十维设计s = "网页可见区域宽:"+ document.body.clientWidth; s += "/r/n网页可见区域高:"+ document.body.clientHeight; s += "/r/n网页可见区域高:"+ document.body.offsetWidth +" (包括边线的宽)"; s += "/r/n网页可见区域高:"+
2007-10-26 06:28:00
755
原创 VS 2005 的错误解决办法
今天在用VS 2005时遇到一个问题,我复制一个类文件并粘贴到原目录下,修改了文件名和类名, 重新编译报错“The item "xxxxxxxx/xxxxxxxx.cs" was specified more than once in the "Sources" parameter. Duplicate items are not supported by the "Sources" param
2007-10-18 02:42:00
1248
原创 一个Javascript考试题目及我的答案
第二部分:JavaScript部分使用面向对象思想实现,验证的过程。面向对象提示:function ootest(name,age){ this.name=name; this.age=age; this.myalert();}ootest.prototype.myalert=function(){ alert("姓名:"+this.name+" 年龄:"+t
2007-08-11 12:49:00
3855
转载 Javascript拖动效果代码
之一:.drag{position:relative;cursor:hand}-->/*Credit JavaScript Kit www.javascriptkit.com*/var dragapproved=false;var z,x,y;function move(){ if (event.button==1&&dragapproved) { z.style.pixelLeft=temp1
2007-08-09 16:57:00
879
转载 鼠标滚轮控制图片大小
onmousewheel是鼠标滚轮事件,是IE6的对象的新事件;style.zoom,event.wheelDelta是IE6的对象的新属 性,style.zoom是变大缩小,未赋值前返回null,赋值成XX%,就变化为XX%,并返回XX%;event.wheelDelta是 滚轮滚动一下的角度,上滚一下为120,下滚一下为-120 New Document //改变图片大小function
2007-08-09 11:11:00
1960
1
转载 Javascript屏蔽键盘代码
屏蔽鼠标右键、Ctrl+n、shift+F10、F5刷新、退格键。 function KeyDown(){ //屏蔽鼠标右键、Ctrl+n、shift+F10、F5刷新、退格键 //alert("ASCII代码是:"+event.keyCode); if ((window.ev
2007-05-27 19:50:00
811
转载 关闭浏览器窗口弹出警告
window.onbeforeunload=function(){ return "您确定关闭该窗口么?";}或者function ClosePage(){ return "你确定要离开当前页面吗?";}
2007-05-27 17:25:00
809
原创 OleDbCommandBuilder 使用实例
private void InsertBarData(string FilePath,string dataList) { string conString = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source=" + FilePath; OleDbConnection con
2007-04-10 17:38:00
2902
1
原创 正则表达式验证文件路径(windows)
^[a-zA-Z]:(/|]+)+$">//[^///:"这个表达式可以验证带有window非法字符的文件路径,以及带有多个连续“/”的无意义的路径。不足之处是末尾不能有“/”。欢迎网友点评!
2007-03-01 09:25:00
13720
4
转载 老歌感怀
忽然想起了以前的一首歌,也许该称作老歌了,忘记了名字,只记得一句歌词:感谢亲人,感谢朋友,你们总是在为我担忧。百度一下,不但搜到了歌名和歌词,还搜到了这样一篇散文,感同身受,转载分享...... 岭南秋雨 站在异乡的秋风里,看点点雨水慢慢落下,有一种难以名状的感觉。熬过了几个月的酷暑,终于感觉到了南方的清凉,看丝丝细雨随风而落,仿佛千头万绪般的蛛网撒在心头,让人的
2007-02-04 16:54:00
1014
原创 拆分字符串的SQL数据库函数
set ANSI_NULLS ONset QUOTED_IDENTIFIER ONGO ALTER FUNCTION [dbo].[Split] (@str_in VARCHAR(8000),@separator VARCHAR(4) ) RETURNS @PrimaryIDTable TABLE (Column1 VARCHAR(8000))ASBEGIN DECLARE @Occ
2006-12-13 20:36:00
699
原创 GridView插入自定义复杂表头
--%> 10) ? DataBinder.Eval(Container.DataItem, "AsNumber").ToString(
2006-12-13 20:29:00
1236
原创 GridView插入自定义行
///////////////////////////////////////////////// protected void GridView1_RowC
2006-12-13 20:10:00
2379
原创 GridView导成Excel
using System.Data;using System.Web;using System.Web.SessionState;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.HtmlControls;using System.Reflection; //...............
2006-12-13 14:39:00
833
原创 处理DataGrid里的CheckBox列(服务端处理)
BorderColor="#93BEE2" BorderStyle="None" BorderWidth="1px" BackColor="White" CellPadding="3" PageSize="15" AllowPaging="T
2006-12-13 09:56:00
763
原创 设置上传文件控件文本框只读属性代码
contenteditable="false" />或者contenteditable="false" />
2006-12-08 10:52:00
1376
转载 Javascript 数字比较
function compareNumber(data1, data2) { //假设data1 and data2 是text 对象 if(Number(data1.value))>Number(data1.value))){ alert("data1对象的值大于data12对象的值") }else if(Number(data1.value)) a
2006-11-14 23:17:00
3731
转载 存储过程中实现类似split功能(charindex)
1create procedure sp_split_string 2( 3 @string NVARCHAR(4000) 4) 5AS 6BEGIN 7 DECLARE @object_id nvarchar(500) 8 DECLARE @i INT 9 DECLARE @len INT 10
2006-11-04 16:50:00
1266
转载 C#创建动态数组
using System; using System.Collections; public class SC { static void Main() { ArrayList al=new ArrayList(); al.Add("Hello"); al.Add(" "); al.Add("World"); al.Add("!"); string[] str=new string[al.Co
2006-11-04 10:00:00
1293
原创 层使用的示例
function ShowHelp(ModuleID) { var helpText = Container_WorkFlow.ShowHelp(ModuleID); Helplb.innerText = helpText.value; Displaydiv("Help"); } function Displaydiv(divNa
2006-10-28 20:03:00
582
转载 模态窗口(showModalDialog)的专题讨论(转载)
模态窗口(showModalDialog)的专题讨论(转载) 小野 发表于 2006-6-1 15:30:34 讨论内容模态窗口的打开 模态窗口的关闭 模态窗口的参数传递 其他 模态窗口的打开window.showModalDialog("DialogPage.aspx","newwin","dialogHeight: 200px; dialogWidth: 150px; dialogTop:
2006-10-27 17:17:00
628
转载 关于闰年的判断方法
阳历究竟哪一年算是闰年,只要做一次简单的计算就知道,用4去除阳历的年份,除尽的就是闰年,象1964年、1968年等等都是闰年,这几年的二月都有29天。 又因为阳历一年的确实天数应该是365天5小时48分46秒,比常年365天多出5小时48分46秒,四年一共只多出23小时15分4秒。每4年一闰加一天的话,又多加了44分56秒,400年差不多就会多加出3天来,所以,每400年得扣去3天才行,
2006-10-26 12:49:00
3664
原创 今天去见妹妹了
妹妹是舅舅家的。现在还是高中生,学习音乐特长。不过再过4个月就应该是大学生了,好快呀!妹妹现在已经进入高考的备考阶段了,自己和几个同学来到这个陌生的城市找老师学习。学费很贵的,听说一节课的学费上百元哪!妹妹是个比较懂事的孩子,虽然长得不算出众,但总算能让家人放心。一个女孩子,学习这样的专业,高中就出来闯荡,家境也不算好,也不太容易呀!请妹妹吃肯德基,在一个还算安静的地方聊聊天,在远离家
2006-10-23 16:53:00
895
原创 SqlDataAdapter与SqlCommand
SqlCommand mycom = new SqlCommand("dgPro_PagesApartFind", conn); mycom.CommandType = CommandType.StoredProcedure; mycom.Parameters.Add(new SqlParameter("@PageSize", SqlDbType.I
2006-09-22 10:56:00
1213
原创 替换HTML代码
strContent=strContent.Replace("&","&");strContent=strContent.Replace("´","´´");strContent=strContent.Replace("@#","@#@#"); strContent=strContent.Replace("strContent=strContent.Replace(">",">");st
2006-09-22 09:57:00
1078
原创 模板列绑定ImageButton,弹出窗口 提示“是”“否”
private void dgClass_ItemDataBound(object sender, System.Web.UI.WebControls.DataGridItemEventArgs e){if(e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem){ImageBu
2006-09-21 13:34:00
968
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人