能完成公司资产和资源的管理

源代码在线查看: 右键菜单的淡入淡出效果.htm

软件大小: 1321 K
上传用户: yufei66900
关键词: 资源
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
				右键菜单的淡入淡出效果
				
				 								var intDelay=1; //设置菜单显示速度,越大越慢 				var intInterval=30; //每次更改的透明度 				function showmenuie5(){ 				var rightedge=document.body.clientWidth-event.clientX 				var bottomedge=document.body.clientHeight-event.clientY 				if (rightedge				ie5menu.style.left=document.body.scrollLeft+event.clientX-ie5menu.offsetWidth 				else 				ie5menu.style.left=document.body.scrollLeft+event.clientX 				if (bottomedge				ie5menu.style.top=document.body.scrollTop+event.clientY-ie5menu.offsetHeight 				else 				ie5menu.style.top=document.body.scrollTop+event.clientY 				ie5menu.style.visibility="visible" 				//ie5menu.style.visibility="" 				ie5menu.filters.alpha.opacity=0 				GradientShow() 				return false 				} 				function hidemenuie5(){ 				//ie5menu.style.visibility="hidden" 				GradientClose() 				} 				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 jumptoie5(){ 				if (event.srcElement.className=="menuitems"){ 				if (event.srcElement.url != ''){ 				if (event.srcElement.getAttribute("target")!=null) 				window.open(event.srcElement.url,event.srcElement.getAttribute("target")) 				else 				window.location=event.srcElement.url 				} 				} 				} 								function GradientShow() //实现淡入的函数 				{ 				ie5menu.filters.alpha.opacity+=intInterval 				if (ie5menu.filters.alpha.opacity				} 								function GradientClose() //实现淡出的函数 				{ 				ie5menu.filters.alpha.opacity-=intInterval 				if (ie5menu.filters.alpha.opacity>0) { 				 setTimeout("GradientClose()",intDelay) 				 } 				else { 				 ie5menu.style.visibility="hidden" 				 } 				} 								function ChangeBG() //改变菜单项的背景颜色,这里的两种颜色值可以改为你需要的 				{ 				oEl=event.srcElement 				if (oEl.style.background!="navy") { 				  oEl.style.background="navy" 				  } 				  else { 				  oEl.style.background="#cccccc" 				  } 				} 				// --> 				
				
				.cMenu {
					BORDER-RIGHT: #666666 2px solid; BORDER-TOP: #e4e4e4 2px solid; FONT-SIZE: 9pt; FILTER: alpha(opacity=0); VISIBILITY: hidden; BORDER-LEFT: #e4e4e4 2px solid; WIDTH: 110px; CURSOR: default; COLOR: #000000; LINE-HEIGHT: 20px; BORDER-BOTTOM: #666666 2px solid; POSITION: absolute; BACKGROUND-COLOR: #d6d3ce; FONT-: normal
				}
				.menuitems {
					PADDING-RIGHT: 3px; PADDING-LEFT: 15px; FONT-SIZE: 9pt; PADDING-BOTTOM: 0px; MARGIN: 2px; PADDING-TOP: 0px
				}
				
				
				
				
								classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2>								onmouseout=lowlightie5()>
				后退
				前进
				
				
				
				刷新
				加入收藏夹
				查看源文件
				
				
				
				属性
				 								function click_obj(id){ 				switch(id){ 				case 0: 				history.back() 				break 				case 1: 				history.forward() 				break 				case 2: 				window.location.reload() 				break 				case 3: 				window.external.AddFavorite(location.href, document.title) 				break 				case 4: 				window.location = "view-source:" + window.location.href 				break 				case 5: 				document.all.WebBrowser.ExecWB(10,1) 				break 				} 				} 								if (document.all&&window.print){ 				ie5menu.className="cMenu" 				document.oncontextmenu=showmenuie5 				document.body.onclick=hidemenuie5 				} 				//--> 				
				
							

相关资源