MAUSE' NİN SAĞ TUŞU TIKLANDIĞI ZAMAN ÇIKAN MENÜ
ÖN İZLEME YAPMAK İÇİN SAĞ TUŞ TIKLAYINIZ
AŞAĞIDAKİ KODU CTRL+C TUŞU İLE KOPYALAYIN
KOD
<HTML><HEAD> <style> #menu{ position:absolute; width:150px; border:2px solid black; background-color:menu; font-family:Verdana; line-height:20px; cursor:default; visibility:hidden; } .menuitems{ padding-left:15px; padding-right:15px; } </style> <script language="JavaScript1.2"> var display_url=1 function showmenu(){ var rightedge=document.body.clientWidth-event.clientX var bottomedge=document.body.clientHeight-event.clientY if (rightedge<menu.offsetWidth) menu.style.left=document.body.scrollLeft+event.clientX-menu.offsetWidth else menu.style.left=document.body.scrollLeft+event.clientX if (bottomedge<menu.offsetHeight) menu.style.top=document.body.scrollTop+event.clientY-menu.offsetHeight else menu.style.top=document.body.scrollTop+event.clientY menu.style.visibility="visible" return false } function hidemenu(){ menu.style.visibility="hidden" } function over(){ if (event.srcElement.className=="menuitems"){ event.srcElement.style.backgroundColor="highlight" event.srcElement.style.color="yellow" if (display_url==1) window.status=event.srcElement.url } } function out(){ if (event.srcElement.className=="menuitems"){ event.srcElement.style.backgroundColor="" event.srcElement.style.color="black" window.status='' } } function linkTo(){ if (event.srcElement.className=="menuitems") window.location=event.srcElement.url } </script> </HEAD> <BODY> <!--[if IE 5]> <![endif]--> <br><br> <![if ! IE 5]> <br> <center> <p><b></b></p> </center> <![endif]> <div id="menu" onMouseover="over()" onMouseout="out()" onClick="linkTo()" style="background-color: #CCCCCC"> <div class="menuitems" url="http://www.kodmaster.tr.gg">Link 1</div> <div class="menuitems" url="http://www.kodmaster.tr.gg">Link 2</div> <div class="menuitems" url="http://www.kodmaster.tr.gg">Link 3</div> <hr> <div class="menuitems" url="http://www.kodmaster.tr.gg">Link 4</div> <div class="menuitems" url="http://www.kodmaster.tr.gg">Link 5</div> <div class="menuitems" url="http://www.kodmaster.tr.gg">Link 6</div> <div class="menuitems" url="http://www.kodmaster.tr.gg">Link 7</div> <div class="menuitems" url="http://www.kodmaster.tr.gg">Link 8</div> <div class="menuitems" url="http://www.kodmaster.tr.gg" style="width: 146px; height: 32px">Link 9</div> </div> <script language="JavaScript1.2"> document.oncontextmenu=showmenu if (document.all&&window.print) document.body.onclick=hidemenu </script> </BODY> </HTML>