tasarimin icin sag tiklama engeli kodu
Kod
<script language="JavaScript1.2">
//Disable select-text script (IE4+, NS6+)- By Andy Scott
//Exclusive permission granted to Dynamic Drive to feature script
//Visit http://www.sanal-reklam.net for this script
function disableselect(e){
return false
}
function reEnable(){
return true
}
//if IE4+
document.onselectstart=new Function ("return false")
//if NS6
if (window.sidebar){
document.onmousedown=disableselect
document.onclick=reEnable
}
</script> <!--www.kodarsivimiz.tr.gg kod sonu--> Sağ Tık Engeli <!--www.kodarsivimiz.tr.gg kod baslangici--> <script>
browserName = navigator.appName
browserVersion = parseInt(navigator.appVersion)
document.onmousedown = checkforRightMouseButtonClick;
if (browserVersion<5 && browserName=="Netscape")
{
window.onmousedown = checkforRightMouseButtonClick;
}
function rightClickPressed()
{
alert("Bu Sitede Sağ Tıklamak Yasaktır!");
}
function checkforRightMouseButtonClick(mouseEvent)
{
if ( ((browserName=="Microsoft Internet Explorer") && (event.button >1)) ||
((browserName=="Ne tscape") && (mouseEvent.which > 1)) )
{
rightClickPressed()
return false;
}
else
return true;
}
</script>
|