Friday, May 8, 2015

Tutorial : Disable Right Click With Cute Allert Message Classic Template

Hi! I am comeback again. Just for classic template!
 Preview :

1. Dashboard > Template > Ctrl +F <style type="text/css"> atau </style>
2. Copy code ini dan pastekan di atas code tadi
<div id="disable" class="click" onMouseover="highlightie5(event)" onMouseout="lowlightie5(event)" onClick="jumptoie5(event)" display:none>
Don't Copying Mine. Ctrl +F Please!</div><script language="JavaScript1.2"> //set this variable to 1 if you wish the URLs of the highlighted menu to be displayed in the status bar var display_url=0 var ie5=document.all&&document.getElementById var ns6=document.getElementById&&!document.all if (ie5||ns6) var menuobj=document.getElementById("disable") function showmenuie5(e){ //Find out how close the mouse is to the corner of the window var rightedge=ie5? document.body.clientWidth-event.clientX : window.innerWidth-e.clientX var bottomedge=ie5? document.body.clientHeight-event.clientY : window.innerHeight-e.clientY //if the horizontal distance isn't enough to accomodate the width of the context menu if (rightedge<menuobj.offsetWidth) //move the horizontal position of the menu to the left by it's width document.body.scrollLeft+event.clientX-menuobj.offsetWidth : window.pageXOffset+e.clientX-menuobj.offsetWidth else //position the horizontal position of the menu where the mouse was clicked document.body.scrollLeft+event.clientX : window.pageXOffset+e.clientX //same concept with the vertical position if (bottomedge<menuobj.offsetHeight) document.body.scrollTop+event.clientY-menuobj.offsetHeight : window.pageYOffset+e.clientY-menuobj.offsetHeight else document.body.scrollTop+event.clientY : window.pageYOffset+e.clientY"visible" return false } function hidemenuie5(e){"hidden" } function highlightie5(e){ var firingobj=ie5? event.srcElement : if (firingobj.className=="menuitems"||ns6&&firingobj.parentNode.className=="menuitems"){ if (ns6&&firingobj.parentNode.className=="menuitems") firingobj=firingobj.parentNode //up one node"highlight""E6E4E5" if (display_url==1) window.status=event.srcElement.url } } function lowlightie5(e){ var firingobj=ie5? event.srcElement : if (firingobj.className=="menuitems"||ns6&&firingobj.parentNode.className=="menuitems"){ if (ns6&&firingobj.parentNode.className=="menuitems") firingobj=firingobj.parentNode //up one node"""826A92" window.status='' } } function jumptoie5(e){ var firingobj=ie5? event.srcElement : if (firingobj.className=="menuitems"||ns6&&firingobj.parentNode.className=="menuitems"){ if (ns6&&firingobj.parentNode.className=="menuitems") firingobj=firingobj.parentNode if (firingobj.getAttribute("target"))"url"),firingobj.getAttribute("target")) else window.location=firingobj.getAttribute("url") } } if (ie5||ns6){'' document.oncontextmenu=showmenuie5 document.onclick=hidemenuie5 } </script>
 3. Copy code dibawah dan pastekan di atas code </style>
border:3px dashed #58ACFA;
background: url(Url Background);
color: #666;
padding: 5px;
 Jangan lupa ganti yang aku tebelin, italic, line, warnain. Diganti sama yang kau suka!

Cr : Here

No comments:

Post a Comment

Moshi - Moshi

Leave comment here
Request ? tell in cbox
Dont bad words

Obey the rules ? Free comment :)

Related Posts Plugin for WordPress, Blogger...