
[03]JavaScript学习
xbf321
这个作者很懒,什么都没留下…
展开
-
javascript 点击按钮打开模态窗体
下面是例子////兴百放///Time:2006.12.4 var newWin=null; function winOpen() { newWin=showModalDialog("Default.aspx",window,"status:no;resizable:yes;dialogHeight:200px;dialogWidth:360px;unadorne:yes"); } ///原创 2006-12-04 10:53:00 · 1509 阅读 · 0 评论 -
js弹出对话框把地址写到剪切板
//<![CDATA[thisURL=window.location.href;var text = document.getElementById(B7);function copyToClipBoard(){var clipBoardContent=;//初始清空clipBoardContent+=text.value;//写入TitleclipBoard原创 2007-05-19 16:00:00 · 842 阅读 · 0 评论 -
js 日历控件
// ********************// Begin Popup Calendar// ********************var popCalDstFld;var temp;var popCalWin;var divCal;var iframeTemp;var currentDate;var imgPath = "";var divCalHeight = 180;v原创 2007-03-31 09:04:00 · 766 阅读 · 0 评论 -
javascript常用功能
事件源对象 event.srcElement.tagName event.srcElement.type 捕获释放 event.srcElement.setCapture(); event.srcElement.releaseCapture(); 事件按键 event.keyCode event.shiftKey event.altKey event.ctrlKey 事件返回值 e转载 2007-03-27 18:16:00 · 793 阅读 · 0 评论 -
asp.net Js 小技巧 :在框架中,点击退出按钮,跳出框架,转向登陆页
在上左右的框架中,点击左边或者上面的退出按钮,跳出主框架,返回到登陆页的JavaScrip代码: Response.Write("top.location.href=login.aspx;");原创 2007-03-27 09:58:00 · 2589 阅读 · 3 评论 -
js的日期控件
调用方式//WebCalendar ver 3.0//作者:meizz(梅花雪疏影横斜)//网站:http://www.meizz.com//ver 2.0:walkingpoison(水晶龙)//ver 1.0:meizz(梅花雪疏影横斜)document.write("");document.write("");function meizz_writeIframe(){ var s原创 2007-03-13 14:47:00 · 766 阅读 · 0 评论 -
省份城市级联的js文件(不带县)
把此文件全部考下来,复制到记事本,然后改后缀名为CreateCity.js即可,不包括县,只到两级function initcity(slcity) { province = document.creator ? document.creator["province"].value : document.getElementById(province).value; switc原创 2007-03-13 14:41:00 · 10961 阅读 · 0 评论 -
屏蔽鼠标右健的javascipt
function document.oncontextmenu(){ var s = event.srcElement.tagName; if (s && s != "INPUT" && s != "TEXTAREA" || event.srcElement.disabled || document.selection.createRange().text.length == 0) { ev原创 2007-03-13 11:28:00 · 787 阅读 · 0 评论 -
asp.net 中的JavaScript应用
//关闭,父窗口弹出对话框,子窗口直接关闭this.Response.Write("window.close();");//关闭,父窗口和子窗口都不弹出对话框,直接关闭this.Response.Write("");this.Response.Write("{top.opener =null;top.close();}");this.Response.Write("");//弹出窗口刷新当前页面w转载 2007-03-12 16:05:00 · 814 阅读 · 0 评论 -
scrollLeft,scrollWidth,clientWidth,offsetWidth之完全详解
scrollLeft,scrollWidth,clientWidth,offsetWidth之完全详解 scrollHeight: 获取对象的滚动高度。 scrollLeft:设置或获取位于对象左边界和窗口中目前可见内容的最左端之间的距离 scrollTop:设置或获取位于对象最顶端和窗口中可见内容的最顶端之间的距离 scrollWidth:获取对象的滚动宽度 offsetHeight:获取原创 2007-09-21 14:05:00 · 955 阅读 · 0 评论