2009年12月10日
摘要:
// JScript 文件/*选择日期控制*/function ChooseDate1( ) { if(document.all) { document.getElementById("txtDate1").click(); } else { var evt = document.createEvent("MouseEvents"); evt.initEvent("click",tr...
阅读全文
posted @ 2009-12-10 13:57
sweting
阅读(339)
推荐(0)
2009年12月8日
摘要:
function delLog(id,num) { if (num == 0) { if (!confirm('确认要删除?')) return; $.post( 'user.ashx', {act:'log',num:'0',id:id}, function (data,textStatus) { if (data.result == 'success')window.location.r...
阅读全文
posted @ 2009-12-08 22:59
sweting
阅读(408)
推荐(0)
摘要:
TEXT:<%@ WebHandler Language="C#" Class="userHandler" %>using System;using System.Web;public class userHandler : IHttpHandler { public void ProcessRequest (HttpContext context) { context.Respon...
阅读全文
posted @ 2009-12-08 22:53
sweting
阅读(1008)
推荐(0)
2009年12月7日
摘要:
事件源对象 event.srcElement.tagName event.srcElement.type 捕获释放 event.srcElement.setCapture(); event.srcElement.releaseCapture(); 事件按键 event.keyCode event.shiftKey event.altKey event.ctrlKey 事件返回值 event.ret...
阅读全文
posted @ 2009-12-07 20:54
sweting
阅读(304)
推荐(0)
摘要:
<style> @media print { .pn {display:none;} } </style> 或 <input type=button class="pn" value="print">或<script language="javascript"> function prn() { document.formname.p...
阅读全文
posted @ 2009-12-07 20:48
sweting
阅读(628)
推荐(0)
2009年12月6日
摘要:
. oncontextmenu="window.event.returnValue=false" 将彻底屏蔽鼠标右键 <table border oncontextmenu=return(false)> <td>no </table> 可用于Table 2. <body onselectstart="return false"> 取消选取、防止复制 ...
阅读全文
posted @ 2009-12-06 21:50
sweting
阅读(238)
推荐(0)
摘要:
在ActionScript 3 中,类是最基本的编程结构,所以必须先掌握编写类的基础知识。对于初学者,所以得类都必须放在.as文件中,每个as文件里只能定义一个public 类,而且类名字要与文件名相同。比如:你的类名为Example ,那么文件名必须为Example.as.在ActionScript 3.0 中所有的类都必须放在包中。包是对类进行分类的单位,其意义相当于文件系统的目录。包路径相对...
阅读全文
posted @ 2009-12-06 21:17
sweting
阅读(874)
推荐(0)
摘要:
1、概述 jQuery是一个非常优秀的Js库,与prototype,YUI,Mootools等众多的Js类库相比,它剑走偏锋,从web开发最实用的角度出发,抛除了一些中看但不实用的东西,为开发者提供一个短小精悍的类库。由于其个短小精悍,使用简单方便,性能相对高效。众多的开发者都选择Jquery来进行辅助的web开发。在使用jquery时开发,我们也会时常碰到许多的问题,但是jquery的代码很晦...
阅读全文
posted @ 2009-12-06 00:34
sweting
阅读(1916)
推荐(0)
摘要:
/* * author:prk * date:2008-08-17 * comment:analyse of jquery event * */ jQuery.event = { // add 事件到一个元素上。 add : function(elem, types, handler, data) { if (elem.nodeType == 3 || elem.nodeType == 8)...
阅读全文
posted @ 2009-12-06 00:32
sweting
阅读(1922)
推荐(0)
摘要:
1、概述 jQuery是一个非常优秀的JS库,与Prototype,YUI,Mootools等众多的Js类库相比,它剑走偏锋,从web开发实用的角度出发,抛除了其它Lib中一些不实用的东西,为开发者提供了短小精悍的类库。其短小精悍,使用简单方便,性能高效,能极大地提高开发效率,是开发web应用的最佳的辅助工具之一。因此大部分开发者在抛弃Prototype而选择Jquery来进行web开发。 一些开...
阅读全文
posted @ 2009-12-06 00:30
sweting
阅读(11607)
推荐(8)