摘要: 在网络资料管理里因为模仿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) 编辑
在网络资料管理里因为模仿windows系统的资源管理系统,所以需要用到右键菜单,纯JS写的吧又不能用.NET里的服务器控件,所以就自己模仿别人的写了一个!
文章来源:http://blog.csdn.net/mrhu7002/archive/2008/11/18/3325353.aspx
文章来源:http://blog.csdn.net/mrhu7002/archive/2008/11/18/3325353.aspx
posted @ 2008-11-18 13:25 可可NET 阅读(149) 评论(0) 编辑
- 在网络资料管理里因为模仿windows系统的资源管理系统,所以需要用到右键菜单,纯JS写的吧又不能用.NET里的服务器控件,所以就自己模仿别人的写了一个!
- 1.首先加个样式表,如下:
- <style type="text/css">
- /*右键菜单*/
- .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;}
- .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}
- .menuitems {font-size:10px;MARGIN:0px; padding:1px 3px 0px 15px;cursor:pointer}
- .menuoff {font-size:10px;MARGIN:0px; padding:1px 3px 0px 15px; color:#ACA899;}
- .STYLE2 { FONT-SIZE: 10px }
- #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 }
- #popitmenu A { DISPLAY: block; PADDING-LEFT: 6px; COLOR: black; TEXT-DECORATION: none }
- #popitmenu A:hover { BACKGROUND-COLOR: #ccff9d }
- /*右键菜单结束*/
- </style>
- 2.加上这个JS代码:
- <!--右键菜单!-->
- <script>
- function showmenuie5()
- {
- var rightedge=window.document.documentElement.clientWidth-event.clientX
- var bottomedge=window.document.documentElement.clientHeight-event.clientY
- if (rightedge<ie5menu.offsetWidth)
- ie5menu.style.left=window.document.documentElement.scrollLeft+event.clientX-ie5menu.offsetWidth
- else
- ie5menu.style.left=window.document.documentElement.scrollLeft+event.clientX
- if (bottomedge<ie5menu.offsetHeight)
- ie5menu.style.top=window.document.documentElement.scrollTop+event.clientY-ie5menu.offsetHeight
- else
- ie5menu.style.top=window.document.documentElement.scrollTop+event.clientY
- ie5menu.style.visibility="visible"
- return false
- }
- function hidemenuie5()
- {
- ie5menu.style.visibility="hidden"
- }
- function highlightie5()
- {
- if (event.srcElement.className=="menuitems")
- {
- event.srcElement.style.backgroundColor="highlight"
- event.srcElement.style.color="white"
- }
- }
- function lowlightie5()
- {
- if (event.srcElement.className=="menuitems")
- {
- event.srcElement.style.backgroundColor=""
- event.srcElement.style.color="#000000"
- }
- }
- function ChangeBG()
- {
- oEl=event.srcElement
- }
- </script>
- <!--右键菜单结束!-->
- 3.这是右键菜单的详细内容
- <div class="cMenu" id="ie5menu" onmouseout="lowlightie5()" onmouseover="highlightie5()" style="left: 0px; top: 0px">
- <asp:LinkButton ID="LinkButton1" runat="server" OnClick="LB_Thumbnails_Click"><div class="menuitems">缩 略 图</div></asp:LinkButton>
- <asp:LinkButton ID="LinkButton5" runat="server" OnClick="LB_tiled_Click"><div class="menuitems">平 铺</div></asp:LinkButton>
- <asp:LinkButton ID="LinkButton2" runat="server" OnClick="LB_icon_Click"><div class="menuitems">图 标</div></asp:LinkButton>
- <asp:LinkButton ID="LinkButton3" runat="server" OnClick="LB_list_Click"><div class="menuitems">列 表</div></asp:LinkButton>
- <asp:LinkButton ID="LinkButton4" runat="server" OnClick="LB_particularList_Click"><div class="menuitems">详细列表</div></asp:LinkButton>
- <hr noshade size="1" color="#ACA899"/>
- <asp:LinkButton ID="LinkButton6" runat="server" OnClientClick="javascript:window.location.href=window.location.href;"><div class="menuitems">刷 新</div></asp:LinkButton>
- <a onclick="javascript:history.go(-1);"><div class="menuitems">返 回</div></a>
- <a href="#" onclick="newdir();" ><div class="menuitems">新建文件夹</div></a>
- <a href='upload.aspx?paneid=<%= paneid%> '><div class="menuitems">上 传</div></a>
- <a href="#" onclick="if(ischecked()){movedir();}else{return false;}" id="movedira" ><div class="menuitems">剪 切</div></a>
- <a href="#" onclick="if(ischecked()){copydir();}else{return false;}" id="copydira" ><div class="menuitems">复 制</div></a>
- <asp:LinkButton ID="lbk_del" runat="server" OnClick="lbk_del_Click"><div class="menuitems">删 除</div></asp:LinkButton>
- <a href='# ' onclick="if(ischecked()){sharelink();}else{return false;}" id="sharea"><div class="menuitems">共 享</div></a>
- <a href="#" id="naminga" style="display:none" ><div class="menuitems">重 命 名</div></a>
- <a id="movediraoff" ><div class="menuoff">剪 切</div></a>
- <a id="copydiraoff" ><div class="menuoff">复 制</div></a>
- <a id="lbk_deloff" ><div class="menuoff">删 除</div></a>
- <a id="shareaoff" ><div class="menuoff">共 享</div></a>
- <a id="namingoff" ><div class="menuoff">重 命 名</div></a>
- <hr size="1pt" color="#ACA899"/>
- <a href="#" onclick="closeShow_icon();" ><div class="menuitems">打开/关闭工具栏</div></a>
- <hr noshade size="1" color="#ACA899"/>
- <a href="http://www.beyondchina.com.cn" target="_blank" ><div class="menuoff">BeyondChina</div></a>
- </div>
- 4.在页面的最后加上:
- <script language="javascript">
- if (document.all&&window.print){
- ie5menu.className="cMenu"
- document.oncontextmenu=showmenuie5
- document.onclick=hidemenuie5
- }
- //-->
- var disp=document.getElementById("hi_display").value;
- document.getElementById("movedira").style.display=disp;
- document.getElementById("lbk_del").style.display=disp;
- document.getElementById("copydira").style.display=disp;
- document.getElementById("sharea").style.display=disp;
- if(disp=="none")
- {
- document.getElementById("movediraoff").style.display="";
- document.getElementById("lbk_deloff").style.display="";
- document.getElementById("copydiraoff").style.display="";
- document.getElementById("shareaoff").style.display="";
- }
- else
- {
- document.getElementById("movediraoff").style.display="none";
- document.getElementById("lbk_deloff").style.display="none";
- document.getElementById("copydiraoff").style.display="none";
- document.getElementById("shareaoff").style.display="none";
- }
- </script>
- <script type="text/javascript" language="javascript">
- function rightclk(tem,id,paneid)
- {
- var evt="";
- evt = evt ? evt : (window.event ? window.event : null);
- var rightnum=window.event?event.button:evt.button;
- if (rightnum==2)
- {
- //进行弹出菜单操作...
- if(id!=null&&paneid!=null)
- {
- document.getElementById("naminga").href="rework.aspx?id="+id+"&paneid="+paneid;
- document.getElementById("namingoff").style.display="none";
- document.getElementById("naminga").style.display="";
- }
- else
- {
- document.getElementById("naminga").style.display="none";
- document.getElementById("namingoff").style.display="";
- }
- }
- else
- {
- //进行弹出菜单操作...
- document.getElementById("naminga").style.display="none";
- document.getElementById("namingoff").style.display="";
- }
- }
- </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
文章来源: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
文章来源: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) 编辑
