javascript编程的组件

源代码在线查看: 自定义鼠标右键弹出式菜单.htm

软件大小: 270 K
上传用户: Butterflies
关键词: javascript 编程
下载地址: 免注册下载 普通下载 VIP

相关代码

				
				
				自定义鼠标右键弹出式菜单
				
				.div1 {
					BORDER-RIGHT: windowframe 1px solid; BORDER-TOP: buttonface 1px solid; BORDER-LEFT: buttonface 1px solid; BORDER-BOTTOM: windowframe 1px solid
				}
				.div2 {
					BORDER-RIGHT: buttonshadow 1px solid; BORDER-TOP: window 1px solid; BORDER-LEFT: window 1px solid; BORDER-BOTTOM: buttonshadow 1px solid
				}
				.MouseOver {
					FONT-SIZE: 12px; CURSOR: hand; COLOR: highlighttext; BACKGROUND-COLOR: highlight
				}
				.MouseOut {
					FONT-SIZE: 12px; CURSOR: default; COLOR: buttontext; BACKGROUND-COLOR: buttonface
				}
				
				
								function PopupMouseRightButtonUpMenu()				{				 if(MouseMenu.style.visibility=='visible') MouseMenu.style.visibility='hidden';				 if (event.srcElement.tagName=='A' || event.srcElement.tagName=='TEXTAREA' || event.srcElement.tagName=='INPUT' || document.selection.type!='None')				    return true;				 else				    {				     if (event.clientX+150 > document.body.clientWidth) MouseMenu.style.left=event.clientX+document.body.scrollLeft-150;				     else MouseMenu.style.left=event.clientX+document.body.scrollLeft;				     if (event.clientY+DivH > document.body.clientHeight) MouseMenu.style.top=event.clientY+document.body.scrollTop-DivH;				     else MouseMenu.style.top=event.clientY+document.body.scrollTop;				     MouseMenu.style.visibility='visible';				    }				return false;				}				function DrawMouseRightButtonUpMenu(){				DivH=2;				//oSelection = document.selection;				var HrStr='';				var MenuItemStr1='				var MenuItemStr2="";				var historyMenu=['window.history.back()\">			

相关资源