Cara Halang Entry dari di Copy


Step 1;

Design > Page Element > Add a Gadget > HTML / JavaScript

Step 2;

Masukkan kod ini :

<script type="text/javascript">
* Disable Text Selection script- &#169; Dynamic Drive DHTML code library (
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at for full source code

function disableSelection(target){
if (typeof target.onselectstart!="undefined") //IE route
target.onselectstart=function(){return false}
else if (typeof!="undefined") //Firefox route"none"
else //All other route (ie: Opera)
target.onmousedown=function(){return false} = "default"

//Sample usages
//disableSelection(document.body) //Disable text selection on entire body
//disableSelection(document.getElementById("mydiv")) //Disable text selection on element with id="mydiv"
<script type="text/javascript">
disableSelection(document.body) //disable text selection on entire body of page

Template by