ساخت منو برای راست کلیک:
<html><head><STYLE> #contextMenu { position: absolute; visibility: hidden; width: 120px; background-color: lightgrey; layer-background-color: lightgrey; border: 2px outset white; } .A:Menu { color: black; text-decoration: none; cursor: default; width: 100% } .A:MenuOn { color: white; text-decoration: none; background-color: darkblue; cursor: default; width: 100% } </STYLE> <SCRIPT> var menu; function showMenu (evt) { if (document.all) { document.all.contextMenu.style.pixelLeft = event.clientX; document.all.contextMenu.style.pixelTop = event.clientY; document.all.contextMenu.style.visibility = 'visible'; return false; } else if (document.layers) { if (evt.which == 3) { document.contextMenu.left = evt.x; document.contextMenu.top = evt.y; document.contextMenu.onmouseout = function (evt) { this.visibility = 'hide'; }; document.contextMenu.visibility = 'show'; return false; } } return true; } if (document.all) document.oncontextmenu =showMenu; if (document.layers) { document.captureEvents(Event.MOUSEDOWN); document.onmousedown = showMenu; } </SCRIPT> </head> <body> <DIV ID="contextMenu" ONMOUSEOUT="menu = this; this.tid = setTimeout ('menu.style.visibility = \'hidden\'', 20);" ONMOUSEOVER="clearTimeout(this.tid);" > <A HREF="http://js.coo.ir"; CLASS="menu" ONMOUSEOVER="this.className = 'menuOn'" ONMOUSEOUT="this.className = 'menu';" > js.coo.ir </A> <BR> <A HREF="http://Yahoo.com"; CLASS="menu" ONMOUSEOVER="this.className = 'menuOn'" ONMOUSEOUT="this.className = 'menu';" > Yahoo.com </A> <br> Script By Manu. </DIV> </body> Right Click And See!!!...!!!</html>