Java



Контекстное меню для Netscape Navigator и Internet Explorer - часть 6


<html> <head> <title>Microsoft context menu</title> <script language="JavaScript" type="text/javascript"> <!--

var winPopup = window.createPopup();

var mWidth = 247; var mHeight = 67;

function goContext() { var winPopupBody = winPopup.document.body;

winPopupBody.innerHTML = winContext.innerHTML; winPopup.show( event.offsetX, event.offsetY, mWidth, mHeight, document.body ); document.body.onmouseup = closePopup; }

function closePopup() { winPopup.hide(); }

//--> </script> </head> <body oncontextmenu="goContext(); return false"> <div id=winContext style="DISPLAY: none"> <div id="cells"> <div onmouseover="this.style.background='#ffffff'" style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: white 1px solid; PADDING-LEFT:

10px; FONT-WEIGHT: bold; FONT-SIZE: 8pt; BACKGROUND: #cccccc; LEFT: 0px; PADDING-BOTTOM: 2px; BORDER-LEFT: white 1px solid; CURSOR: hand; COLOR: black;

PADDING-TOP: 2px; BORDER-BOTTOM: black 1px solid; FONT-FAMILY: verdana; POSITION: relative; TOP: 0px; HEIGHT: 20px" onclick="parent.oIframe.location.href='http://search.microsoft.com';" onmouseout="this.style.background='#cccccc'">  Главная

страница</div> <div onmouseover="this.style.background='#ffffff'" style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: white 1px solid; PADDING-LEFT:

10px; FONT-WEIGHT: bold; FONT-SIZE: 8pt; BACKGROUND: #cccccc; LEFT: 0px; PADDING-BOTTOM: 2px; BORDER-LEFT: white 1px solid; CURSOR: hand; COLOR: black;

PADDING-TOP: 2px; BORDER-BOTTOM: black 1px solid; FONT-FAMILY: verdana; POSITION: relative; TOP: 0px; HEIGHT: 20px" onclick="parent.oIframe.location.href='http://search.microsoft.com';" onmouseout="this.style.background='#cccccc'">  Какое-то

действие</div> <div onmouseover="this.style.background='#ffffff'" style="BORDER-RIGHT: black 1px solid; PADDING-RIGHT: 2px; BORDER-TOP: white 1px solid; PADDING-LEFT:




Содержание  Назад  Вперед