摘要:
在一些系统管理,分配权限时可能经常需求构建树形菜单,然后选择部分功能点授权给用户 用下面的javascript脚本结合.net自带的树形控件,很方便的实现了多级选择。 <script language="javascript">function window_onload() {document.all("treeMenu").attachEvent("oncheck",tree_oncheck);}//当树上的checkBox被选中时触发function tree_oncheck(){//得到当前选中的nodevar n 阅读全文
posted @ 2011-09-28 22:47
绿荷
阅读(372)
评论(0)
推荐(0)
摘要:
如下js可以载入一个还没有在页面中的图片,并且可以获得其高度和宽度:Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->functionEnhancedImage(src,onLoaded){varself=this;this.src=src;this.width=0;this.height=0;this.onLoaded=onLoaded;this.loaded=false;this.image=null;this.load=function( 阅读全文
posted @ 2011-09-28 17:43
绿荷
阅读(509)
评论(0)
推荐(0)

浙公网安备 33010602011771号