易截截图软件、单文件、免安装、纯绿色、仅160KB

asp.net常用的javascript经典例子

 自己在开发中碰到的+了一些在网上搜到的。。和大家分享下。
Dropdownlist无刷新的例子。xml.
例如文本验证!
下面是一个单选按纽前台不刷新的例子.有好的就往上贴
<mce:script language="javascript"><!--
function SetButton()
{
if(document.all.rdoByHuman.checked==true)
{
document.all.cboHrPut.disabled = "";
document.all.cboAnswerHr.disabled = "";


document.all.cboGroup.disabled = true;

}
if(document.all.rdoByGroup.checked==true)
{
document.all.cboHrPut.disabled = true;
document.all.cboAnswerHr.disabled = true;

document.all.cboGroup.disabled = "";



}
}

// --></mce:script>

<asp:RadioButton id="rdoByHuman" onclick="SetButton();" runat="server" GroupName="TotalGroup" Checked="True" Text="按人员"></asp:RadioButton>
e.Item.Attributes.Add("onmouseOver","this.style.backgroundColor='#dee3e7'");//鼠标移上去的颜色
e.Item.Attributes.Add("onmouseOut","this.style.backgroundColor='white'");
e.Item.Cells[2].Attributes.Add("onmouseOver","this.style.backgroundColor='red'");
e.Item.Cells[2].Attributes.Add("onmouseOut","this.style.backgroundColor='white'");//指定某列的颜色
e.Item.Cells[3].Style["cursor"]="hand";
e.Item.Cells[4].Attributes.Add("onclick","alert('你惦记的ID 是:"+e.Item.Cells[4].Text+"');");//指定显示字段
e.Item.Cells[1].Attributes.Add("title","'红孩是未解决的,蓝精灵是已解决的!'"+e.Item.Cells[0].Text.ToString());//显示title
e.Item.Cells[0].Attributes.Add("onclick","window.open('xinxiForm.aspx?idmain="+e.Item.Cells[0].Text+"','','ToolBar=no,width=260,height=200');");
屏闭一些键:
function KeyDown(){ //屏蔽鼠标右键、Ctrl+n、shift+F10、F5刷新、退格键
//alert("ASCII代码是:"+event.keyCode);
if ((window.event.altKey)&&
((window.event.keyCode==37)|| //屏蔽 Alt+ 方向键 ←
(window.event.keyCode==39))){ //屏蔽 Alt+ 方向键 →
a


相关文档:

JavaScript 获取对象的高度和宽度详细说明

scrollHeight: 获取对象的滚动高度。
scrollLeft:设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离
scrollTop:设置或获取位于对象最顶端和窗口中可见内容的最顶端之间的距离
scrollWidth:获取对象的滚动宽度
offsetHeight:获取对象相对于版面或由父坐标 offsetParent 属性指定的父坐标的高度
offsetL ......

flex与asp.net互操作系统,基于Socket的网络连接

Flash/Flex也支持基于Socket的网络连接 ,服务器端可以是C++,VB,C#,Java等任一语言开发。监听一个网络端口便可以接收到Flash/Flex开发的客户端的连接。     
     ActionScript 3.0提供了通过Socket连接的方式与服务器端通信。这点是超越传统B/S结构的重要特征。这样使得网 ......

JavaScript Module模式(译文)


JavaScript Module Pattern

JavaScript
Module
模式) 
来源:
1.      
http://yuiblog.com/blog/2007/06/12/module-pattern/
2.      
http://yuiblog.com/blog/2006/06/01/global-domination/
 
全局变量是有很大危害的。在
YU ......

我收集的javascript document命令

引用地址:http://bbs.syue.com/thread-36034-1-1.html
直接在ie地址栏输入命令,回车,执行js。
这样也可以用来改变和获取元素的值和属性,很实用的。
查看cookie
javascript:alert(document.cookie)
直接编辑cookie
javascript:document.cookie=window.prompt("Linx Edit cookie:",document.cookie);void( ......

Javascript 学习笔记之引用

引用是一个指向对象实际位置的指针。
例1:
var obj = new Object();
var objRef = obj; //obj与objRef指向同一个对象,objRef是一个引用

自修改(self-modifying)
例2:
var items = new Array("one","two","three");
var itemsRef = items; //创建一个引用
items.push("four");
alert(items.length == items ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号