Phiên bản đầy đủ: jsB@nk » Trình đơn » Trình đơn chuột phải » Menu chuột phải
URL: https://www.javascriptbank.com/right-click-context-menu-script.html
Một đoạn mã JavaScript khác để tạo trình đơn trên trang web với sự kiện nhấn phải chuột.
Phiên bản đầy đủ: jsB@nk » Trình đơn » Trình đơn chuột phải » Menu chuột phải
URL: https://www.javascriptbank.com/right-click-context-menu-script.html
<STYLE>#ie5menu {BACKGROUND-COLOR: #000000; BORDER-BOTTOM: 5px solid; BORDER-LEFT: 5px solid; BORDER-RIGHT: 5px solid; BORDER-TOP: 5px solid; CURSOR: crosshair; FONT-FAMILY: Verdana; LINE-HEIGHT: 20px; POSITION: absolute; VISIBILITY: hidden; WIDTH: 250px}.menuitems {PADDING-LEFT: 15px; PADDING-RIGHT: 15px}</STYLE><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<SCRIPT language=JavaScript>var display_url=0function showmenuie5(){ie5menu.style.left=document.body.scrollLeft+event.clientXie5menu.style.top=document.body.scrollTop+event.clientYie5menu.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="ff0000"if (display_url==1)window.status=event.srcElement.url}}function lowlightie5(){if (event.srcElement.className=="menuitems"){event.srcElement.style.backgroundColor=""event.srcElement.style.color=""window.status=''}}function jumptoie5(){if (event.srcElement.className=="menuitems")window.location=event.srcElement.url}</SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->
<BLOCKQUOTE> <DIV align=center><FONT color=#ff0000 face=vni-times size=2><B><!--[if IE]> <DIV id=ie5menu onclick=jumptoie5() onmouseout=lowlightie5() onmouseover=highlightie5()> <DIV class=menuitems url="http://www.javascriptbank.com">JavaScriptBank.com</DIV> <DIV class=menuitems url="http://www.javascriptbank.com">Link item #</DIV> <DIV class=menuitems url="http://http://www.javascriptbank.com">Link item #</DIV> <DIV class=menuitems url="http://www.javascriptbank.com">Link item #</DIV> <DIV class=menuitems url="http://www.javascriptbank.com">Link item #</DIV> <![endif]--></B></FONT></DIV></BLOCKQUOTE><BLOCKQUOTE></BLOCKQUOTE><DIV align=center><FONT color=#ff0000 face=Verdana><SCRIPT language=JavaScript1.2>document.oncontextmenu=showmenuie5if (document.all&&window.print)document.body.onclick=hidemenuie5 </SCRIPT><!-- This script downloaded from www.JavaScriptBank.com Come to view and download over 2000+ free javascript at www.JavaScriptBank.com-->