BTC USD 83,613.5 Gold USD 4,157.01
Time now: Jun 1, 12:00 AM

Nak kongsi tips..

blogger noob

Active Member
Messages
1,325
Joined
Oct 30, 2011
Messages
1,325
Reaction score
4
Points
25
Salam sumer...x taulah klu tips ni da ader kat cni atau x.klu da ader tlg delete ya..

Tips nak elak content blog dari di 'copy':


Go to Layout and click on add new gadget > select Html/Javacsript

Now in the box copy and paste the following code


<script type="text/javascript">
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>


Click on save and log out.Then check whether u r able to copy or not .:)

p/s tp x berkesan untuk image...:-?


my_Logo1.png
 
Last edited:
Salam sumer...x taulah klu tips ni da ader kat cni atau x.klu da ader tlg delete ya..

Tips nak elak content blog dari di 'copy':


Go to Layout and click on add new gadget > select Html/Javacsript

Now in the box copy and paste the following code


<script type="text/javascript">
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>


Click on save and log out.Then check whether u r able to copy or not .:)

p/s tp x berkesan untuk image...:-?


my_Logo1.png

Bagus ilmu ni.. terima kasih. ia sangat berguna. :D
 
disable right click :D

Trima kasih saudara.Mohon tunjuk ajar mcm mn nak buat 'disable right click'?:)

p/s tp slps sy 'disable copy content',viewer jatuh mendadak.sbr je lah...msh baru dlm 'acara' nie..:(
 
Last edited:
boleh x tolong custome script ni.. klu dia nak copy jugak.. die kena follow blog yg dia nak copy tu
 
How to Disable Right click in Blogger / Blogspot ?

Step 1 : Go to Dashboard > Layout > Add Gadget > HTML / JavaScript
Step 2 : Copy the code from this file and paste it in that blogger widget.
Step 3 : Save the html/javascript and view you blog.


Code:
<script language=JavaScript>
<!--

//Disable right mouse click Script

var message="[COLOR="Red"]Function Disabled![/COLOR]";

///////////////////////////////////
function clickIE4(){
if (event.button==2){
alert(message);
return false;
}
}

function clickNS4(e){
if (document.layers||document.getElementById&&!document.all){
if (e.which==2||e.which==3){
alert(message);
return false;
}
}
}

if (document.layers){
document.captureEvents(Event.MOUSEDOWN);
document.onmousedown=clickNS4;
}
else if (document.all&&!document.getElementById){
document.onmousedown=clickIE4;
}

document.oncontextmenu=new Function("alert(message);return false")

// -->
</script>

bile klik kanan akan kuar pop-up Function disabled
ayat function disabled boleh tuko dgn ayat sendiri. contoh, hah!!wat ape tu :D
 
Trima kash saudara!:)Sy ader jumpa untk disable post dan image skali.sy da cuba tp x berkesan jg untk image.saudara blh cuba mn tau berjaya.

<script type="text/javascript">
var omitformtags=["input", "textarea", "select"]
omitformtags=omitformtags.join("|")
function disableselect(e){
if (omitformtags.indexOf(e.target.tagName.toLowerCase())==-1)
return false
}
function reEnable(){
return true
}
if (typeof document.onselectstart!="undefined")
document.onselectstart=new Function ("return false")
else{
document.onmousedown=disableselect
document.onmouseup=reEnable
}
</script>
 
Last edited:
boleh x tolong custome script ni.. klu dia nak copy jugak.. die kena follow blog yg dia nak copy tu

Maaf saudara yg tu sy blom jumpa lg.mn tau ada kwn2 otai d cni yg blh jawabkan.sy pon nk jg mcm tu sbb blom ader follower ni...:eek:
 
Back
Top
Log in Register