摘要: 在网络资料管理里因为模仿windows系统的资源管理系统,所以需要用到右键菜单,纯JS写的吧又不能用.NET里的服务器控件,所以就自己模仿别人的写了一个! 1.首先加个样式表,如下: <styletype="text/css"> /*右键菜单*/ .cMenu{BACKGROUND-COLOR:#FFFFFF;border:1pxsolid#ACA899;COLOR:#000000;C...阅读全文
posted @ 2008-11-18 13:24 可可NET 阅读(224) 评论(0) 编辑
posted @ 2009-04-24 15:31 可可NET 阅读(711) 评论(2) 编辑
在网络资料管理里因为模仿windows系统的资源管理系统,所以需要用到右键菜单,纯JS写的吧又不能用.NET里的服务器控件,所以就自己模仿别人的写了一个!
文章来源:http://blog.csdn.net/mrhu7002/archive/2008/11/18/3325353.aspx
posted @ 2008-11-18 13:25 可可NET 阅读(149) 评论(0) 编辑
  1. 在网络资料管理里因为模仿windows系统的资源管理系统,所以需要用到右键菜单,纯JS写的吧又不能用.NET里的服务器控件,所以就自己模仿别人的写了一个!
  2. 1.首先加个样式表,如下:
  3.     <style type="text/css">
  4.     /*右键菜单*/
  5.     .cMenu {BACKGROUND-COLOR:#FFFFFF; border:1px solid #ACA899; COLOR:#000000; CURSOR:default; FONT-SIZE:10px; color:#000000; line-height:150%; POSITION:absolute; VISIBILITY:hidden; WIDTH:162px; padding:2px;}
  6.     .cMenu a {color:#000000; text-decoration: none; cursor:default;} .cMenu a:link,.cMenu a:visited,.cMenu a:active {color:#000000; text-decoration: none} .cMenu a:hover {color:#000000; text-decoration: none}
  7.     .menuitems {font-size:10px;MARGIN:0px; padding:1px 3px 0px 15px;cursor:pointer} 
  8.     .menuoff {font-size:10px;MARGIN:0px; padding:1px 3px 0px 15px; color:#ACA899;} 
  9.         .STYLE2 { FONT-SIZE: 10px }
  10.     #popitmenu { BORDER-RIGHT: black 1px solid; BORDER-TOP: black 1px solid; Z-INDEX: 100; VISIBILITY: hidden; FONT: 10px/18px Verdana; BORDER-LEFT: black 1px solid; BORDER-BOTTOM: black 1px solid; POSITION: absolute; BACKGROUND-COLOR: white }
  11.     #popitmenu A { DISPLAY: block; PADDING-LEFT: 6px; COLOR: black; TEXT-DECORATION: none }
  12.     #popitmenu A:hover { BACKGROUND-COLOR: #ccff9d }
  13.     /*右键菜单结束*/
  14.     </style>
  15. 2.加上这个JS代码:
  16.     <!--右键菜单!-->
  17.     <script>
  18.         function showmenuie5()
  19.         {
  20.             var rightedge=window.document.documentElement.clientWidth-event.clientX 
  21.             var bottomedge=window.document.documentElement.clientHeight-event.clientY 
  22.             if (rightedge<ie5menu.offsetWidth) 
  23.                 ie5menu.style.left=window.document.documentElement.scrollLeft+event.clientX-ie5menu.offsetWidth 
  24.             else 
  25.                 ie5menu.style.left=window.document.documentElement.scrollLeft+event.clientX
  26.                 
  27.             if (bottomedge<ie5menu.offsetHeight) 
  28.                 ie5menu.style.top=window.document.documentElement.scrollTop+event.clientY-ie5menu.offsetHeight 
  29.             else 
  30.                 ie5menu.style.top=window.document.documentElement.scrollTop+event.clientY 
  31.                 ie5menu.style.visibility="visible" 
  32.                 return false 
  33.         } 
  34.         
  35.         function hidemenuie5()
  36.         { 
  37.             ie5menu.style.visibility="hidden" 
  38.         } 
  39.         
  40.         function highlightie5()
  41.         { 
  42.             if (event.srcElement.className=="menuitems")
  43.             { 
  44.                 event.srcElement.style.backgroundColor="highlight" 
  45.                 event.srcElement.style.color="white" 
  46.             } 
  47.         }
  48.          
  49.         function lowlightie5()
  50.         { 
  51.             if (event.srcElement.className=="menuitems")
  52.             { 
  53.                 event.srcElement.style.backgroundColor="" 
  54.                 event.srcElement.style.color="#000000" 
  55.             } 
  56.         }
  57.         
  58.         function ChangeBG()
  59.         {
  60.              oEl=event.srcElement 
  61.         } 
  62.     </script>
  63.     <!--右键菜单结束!-->
  64. 3.这是右键菜单的详细内容
  65.         <div class="cMenu" id="ie5menu" onmouseout="lowlightie5()" onmouseover="highlightie5()" style="left: 0px; top: 0px"
  66.             <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LB_Thumbnails_Click"><div class="menuitems">缩 略 图</div></asp:LinkButton>
  67.             <asp:LinkButton ID="LinkButton5" runat="server" OnClick="LB_tiled_Click"><div class="menuitems">平 铺</div></asp:LinkButton>
  68.             <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LB_icon_Click"><div class="menuitems">图 标</div></asp:LinkButton>
  69.             <asp:LinkButton ID="LinkButton3" runat="server" OnClick="LB_list_Click"><div class="menuitems">列 表</div></asp:LinkButton>
  70.             <asp:LinkButton ID="LinkButton4" runat="server" OnClick="LB_particularList_Click"><div class="menuitems">详细列表</div></asp:LinkButton>
  71.             <hr noshade size="1" color="#ACA899"/>
  72.             <asp:LinkButton ID="LinkButton6" runat="server" OnClientClick="javascript:window.location.href=window.location.href;"><div class="menuitems">刷 新</div></asp:LinkButton>
  73.             <a onclick="javascript:history.go(-1);"><div class="menuitems">返 回</div></a>
  74.             <a href="#" onclick="newdir();" ><div class="menuitems">新建文件夹</div></a>
  75.             <a href='upload.aspx?paneid=<%= paneid%> '><div class="menuitems">上 传</div></a>
  76.             <a href="#" onclick="if(ischecked()){movedir();}else{return false;}" id="movedira" ><div class="menuitems">剪 切</div></a>
  77.             <a href="#" onclick="if(ischecked()){copydir();}else{return false;}" id="copydira" ><div class="menuitems">复 制</div></a>
  78.             <asp:LinkButton ID="lbk_del" runat="server" OnClick="lbk_del_Click"><div class="menuitems">删 除</div></asp:LinkButton>
  79.             <a href='# ' onclick="if(ischecked()){sharelink();}else{return false;}" id="sharea"><div class="menuitems">共 享</div></a>
  80.             <a href="#" id="naminga" style="display:none" ><div class="menuitems">重 命 名</div></a>
  81.             <a id="movediraoff" ><div class="menuoff">剪 切</div></a>
  82.             <a id="copydiraoff" ><div class="menuoff">复 制</div></a>
  83.             <a id="lbk_deloff" ><div class="menuoff">删 除</div></a>
  84.             <a id="shareaoff" ><div class="menuoff">共 享</div></a>
  85.             <a id="namingoff" ><div class="menuoff">重 命 名</div></a>
  86.             <hr size="1pt" color="#ACA899"/>
  87.             <a href="#" onclick="closeShow_icon();" ><div class="menuitems">打开/关闭工具栏</div></a>
  88.             <hr noshade size="1" color="#ACA899"/>
  89.             <a href="http://www.beyondchina.com.cn" target="_blank" ><div class="menuoff">BeyondChina</div></a>
  90.         </div>
  91. 4.在页面的最后加上:
  92. <script language="javascript"
  93. if (document.all&&window.print){ 
  94. ie5menu.className="cMenu" 
  95. document.oncontextmenu=showmenuie5 
  96. document.onclick=hidemenuie5 
  97. //--> 
  98. var disp=document.getElementById("hi_display").value;
  99. document.getElementById("movedira").style.display=disp;
  100. document.getElementById("lbk_del").style.display=disp;
  101. document.getElementById("copydira").style.display=disp;
  102. document.getElementById("sharea").style.display=disp;
  103. if(disp=="none")
  104. {
  105.     document.getElementById("movediraoff").style.display="";
  106.     document.getElementById("lbk_deloff").style.display="";
  107.     document.getElementById("copydiraoff").style.display="";
  108.     document.getElementById("shareaoff").style.display="";
  109. }
  110. else
  111. {
  112.     document.getElementById("movediraoff").style.display="none";
  113.     document.getElementById("lbk_deloff").style.display="none";
  114.     document.getElementById("copydiraoff").style.display="none";
  115.     document.getElementById("shareaoff").style.display="none";
  116. }
  117. </script>
  118. <script type="text/javascript" language="javascript">
  119.     function rightclk(tem,id,paneid)   
  120.     {   
  121.         var evt="";
  122.         evt = evt ? evt : (window.event ? window.event : null);   
  123.         var rightnum=window.event?event.button:evt.button;   
  124.         if (rightnum==2)   
  125.         {   
  126.             //进行弹出菜单操作...   
  127.             if(id!=null&&paneid!=null)
  128.             {
  129.                 document.getElementById("naminga").href="rework.aspx?id="+id+"&paneid="+paneid;
  130.                 document.getElementById("namingoff").style.display="none";
  131.                 document.getElementById("naminga").style.display="";
  132.             }
  133.             else
  134.             {
  135.                 document.getElementById("naminga").style.display="none";
  136.                 document.getElementById("namingoff").style.display="";
  137.             }
  138.         }
  139.         else
  140.         {   
  141.             //进行弹出菜单操作... 
  142.             document.getElementById("naminga").style.display="none";
  143.             document.getElementById("namingoff").style.display="";
  144.         }
  145.     }
  146. </script>
 
posted @ 2008-11-18 13:24 可可NET 阅读(224) 评论(0) 编辑

关键字过滤方法在网上看到的都是用替换的方法,这种方法个人感觉有时候并不可取!也因为我项目中用到了这个功能,贴出来看看哈````
  #region 关键字过滤         ///          /// 关键字过滤         ///          /// 字符串         /// 关键字         ///          public static bool FilterKey(string str, string key)        {            string[] Key = Filtrate().Split(',');//关键字列表             for (int i = 0; i 
文章来源:http://blog.csdn.net/mrhu7002/archive/2008/10/24/3135583.aspx
posted @ 2008-10-24 19:02 可可NET 阅读(82) 评论(0) 编辑
using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using Microsoft.Win32;using System.Diagnostics;/* * 作者:Tom Hu * 日期:2008-10-10 * BLOG:http://hi.baidu.com/huqing7002/blog *  *  * */namespace WebDisk{    ///      /// 压缩文件夹     ///      public class RarClass    {        public RarClass()        {         
文章来源:http://blog.csdn.net/mrhu7002/archive/2008/10/10/3048118.aspx
posted @ 2008-10-10 18:08 可可NET 阅读(69) 评论(0) 编辑
用Table实现GridView控件功能,很多时候大家都是用微软提供的控件,但有时候需要自己写的时候又不知道从哪里写起,这里讲的是用最简单的控件实现微软自带的强大控件功能,当然这里的需求并不是复杂的!
文章来源:http://blog.csdn.net/mrhu7002/archive/2008/08/07/2779862.aspx
posted @ 2008-08-07 13:35 可可NET 阅读(28) 评论(0) 编辑
摘要: prototype 学习之简单实例,这里写的代码实现了用户注册时无刷新判断用户是否存在功能!文章来源:http://blog.csdn.net/mrhu7002/archive/2008/08/05/2768468.aspx阅读全文
posted @ 2008-08-05 14:23 可可NET 阅读(42) 评论(0) 编辑
摘要: rep_daqjcrb文章来源:http://blog.csdn.net/mrhu7002/archive/2008/02/21/2111866.aspx阅读全文
posted @ 2008-02-22 02:14 可可NET 阅读(11) 评论(0) 编辑
摘要: asp.net程序中最常用的二十四种编程代码文章来源:http://blog.csdn.net/mrhu7002/archive/2008/02/03/2080047.aspx阅读全文
posted @ 2008-02-04 00:05 可可NET 阅读(11) 评论(0) 编辑
摘要: 阅读全文 类别:asp.net+sql+c#||oracle查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/5bf0b5eff7c294ebce1b3e8e.html阅读全文
posted @ 2008-01-09 18:59 可可NET 阅读(31) 评论(0) 编辑
摘要: 阅读全文 类别:下载大全列表查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/b3c567a73937fa91d143588e.html阅读全文
posted @ 2008-01-09 11:11 可可NET 阅读(45) 评论(0) 编辑
摘要: 阅读全文 类别:c#视频教程查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/11aaf4139469b2065baf531b.html阅读全文
posted @ 2008-01-08 17:06 可可NET 阅读(39) 评论(0) 编辑
摘要: 阅读全文 类别:下载大全列表查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/3ee37faf4e5e7bfffaed5053.html阅读全文
posted @ 2008-01-08 15:01 可可NET 阅读(28) 评论(0) 编辑
摘要: 阅读全文 类别:三少爷的视频查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/8caf001f2765fecca68669f1.html阅读全文
posted @ 2008-01-08 09:56 可可NET 阅读(112) 评论(0) 编辑
摘要: 阅读全文 类别:三少爷的视频查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/9b9ebb2f15a7073c1e3089f1.html阅读全文
posted @ 2008-01-08 09:55 可可NET 阅读(75) 评论(0) 编辑
摘要: 阅读全文 类别:少爷图库查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/6c4329f45cdfe5eb7709d73c.html阅读全文
posted @ 2008-01-07 17:37 可可NET 阅读(150) 评论(0) 编辑
摘要: 阅读全文 类别:下载大全列表查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/1b0eeb1b1438d3feae513370.html阅读全文
posted @ 2008-01-07 15:45 可可NET 阅读(75) 评论(0) 编辑
摘要: 阅读全文 类别:少爷图库查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/31f124e941d50c3bb90e2dde.html阅读全文
posted @ 2008-01-07 13:09 可可NET 阅读(17) 评论(0) 编辑
摘要: 阅读全文 类别:生活频道查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/9114c5fe299fae355d6008c4.html阅读全文
posted @ 2007-12-27 15:26 可可NET 阅读(11) 评论(0) 编辑
摘要: 阅读全文 类别:少爷图库查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/9dde9d0eed7146e337d122e7.html阅读全文
posted @ 2007-12-27 14:38 可可NET 阅读(20) 评论(0) 编辑
摘要: 阅读全文 类别:asp.net+sql+c#||oracle查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/2eb9f4090ee68e86d0581b7a.html阅读全文
posted @ 2007-12-27 11:39 可可NET 阅读(27) 评论(0) 编辑
摘要: 阅读全文 类别:svg 专场查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/818c70fbfd4153126c22ebc4.html阅读全文
posted @ 2007-12-26 17:13 可可NET 阅读(32) 评论(0) 编辑
摘要: 阅读全文 类别:少爷图库查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/75f65a3ebe7dc43971cf6c3e.html阅读全文
posted @ 2007-12-25 10:03 可可NET 阅读(17) 评论(0) 编辑
摘要: 阅读全文 类别:职场生涯查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/22ce220817251c34e8248867.html阅读全文
posted @ 2007-12-21 10:33 可可NET 阅读(19) 评论(0) 编辑
摘要: 阅读全文 类别:asp.net+sql+c#||oracle查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/2bcaf1073e0ce6c97a8947bf.html阅读全文
posted @ 2007-12-20 12:00 可可NET 阅读(32) 评论(0) 编辑
摘要: 阅读全文 类别:asp.net+sql+c#||oracle查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/292bf4c84438c9137e3e6fc0.html阅读全文
posted @ 2007-12-20 10:20 可可NET 阅读(44) 评论(0) 编辑
摘要: 阅读全文 类别:asp.net+sql+c#||oracle查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/89cbe35c9e8baf40faf2c0fd.html阅读全文
posted @ 2007-12-18 14:38 可可NET 阅读(96) 评论(0) 编辑
摘要: 阅读全文 类别:asp.net+sql+c#||oracle查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/68dea2945ad5811dd21b7099.html阅读全文
posted @ 2007-12-18 09:49 可可NET 阅读(41) 评论(0) 编辑
摘要: 阅读全文 类别:职场生涯查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/b69a27082063fbd263d98619.html阅读全文
posted @ 2007-12-14 09:44 可可NET 阅读(11) 评论(0) 编辑
摘要: 阅读全文 类别:网络写手-->三少爷查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/3b37027ffe60e70b29388a51.html阅读全文
posted @ 2007-12-07 17:41 可可NET 阅读(115) 评论(0) 编辑
摘要: 阅读全文 类别:下载大全列表查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/6518f22afdb7f92ed52af1b0.html阅读全文
posted @ 2007-12-06 12:37 可可NET 阅读(119) 评论(0) 编辑
摘要: 阅读全文 类别:asp.net+sql+c#||oracle查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/c038a810c90ee502203f2ea9.html阅读全文
posted @ 2007-12-06 12:26 可可NET 阅读(193) 评论(0) 编辑
摘要: 阅读全文 类别:职场生涯查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/280fd51fde27f6f6e0fe0b90.html阅读全文
posted @ 2007-12-05 17:45 可可NET 阅读(18) 评论(0) 编辑
摘要: 阅读全文 类别:js && html && xml && 正则查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/05f3edfcd98c1afefd037f43.html阅读全文
posted @ 2007-12-04 20:59 可可NET 阅读(66) 评论(0) 编辑
摘要: 阅读全文 类别:下载大全列表查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/6de896de6559065bcdbf1aa5.html阅读全文
posted @ 2007-12-04 11:29 可可NET 阅读(1165) 评论(1) 编辑
摘要: 阅读全文 类别:下载大全列表查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/22b02ab3349497a4d8335af1.html阅读全文
posted @ 2007-12-03 11:35 可可NET 阅读(20) 评论(0) 编辑
摘要: http://wt.ylmf.net/ylmf/OneKey_1.2.exe?C382E6C795944658002TFlag=1194833256&OPIN=5A8E9C34534067260FB9AB1FA00EEE20/OneKey_1.2.exe 类别:下载大全列表查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/22b02...阅读全文
posted @ 2007-12-03 11:35 可可NET 阅读(41) 评论(0) 编辑
摘要: 阅读全文 类别:下载大全列表查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/1da588349b2d67b4d1a2d3f1.html阅读全文
posted @ 2007-12-03 11:34 可可NET 阅读(18) 评论(0) 编辑
摘要: EditPlus 是一款功能强大的文字处理软件。它可以充分的替换记事本,它也提供网页作家及程序设计师许多强悍的功能。支持 HTML、CSS、PHP、ASP、Perl、C/C++、Java、JavaScript、VBScript 等多种语法的着色显示。程序内嵌网页浏览器,其它功能还包含 FTP 功能、HTML 编辑、URL 突显、自动完成、剪贴文本、行列选择、强大的搜索与替换、多重撤销/重做、拼写检...阅读全文
posted @ 2007-12-03 11:34 可可NET 阅读(73) 评论(0) 编辑
摘要: 阅读全文 类别:下载大全列表查看评论文章来源:http://hi.baidu.com/huqing7002/blog/item/24c3570e985d02c97acbe1f0.html阅读全文
posted @ 2007-12-03 11:31 可可NET 阅读(53) 评论(0) 编辑