Showing posts with label JavaScript. Show all posts

Country Specific Url te .com a redirect na di

wallpaper
/
/blogger te ad'n
Blogspot blog a na url/address gamtuam a om te hn veh le uh le .com redirect di na deih le a nuai a script na xml sung a <head> nuai chet a guang le chin
----------------------------------------------------------------------
<script type='text/javascript'>
// country specific url link te .com a redirect na script ahi
/* current blog url link a full a lak na varable */
var blog = document.location.href.toLowerCase();
/* Domain, .com a omsa ahih le redirct louh na di */
if (!blog.match(/\.blogspot\.com/)) {
/* Country TLD te redirect na di */
blog = blog.replace(/\.blogspot\..*?\//, &quot;.blogspot.com/ncr/&quot;);
/* tua tab pen a url thak pen .com a khek na */
window.location.replace(blog);
}
// blogspot adi chauh ahi
</script>
-------------------------------------------------------------------------
suppose na blog url xyz.blogspot.com hi ta eih chu, hilele na lut chiang a xyz.blogspot.in hn chi di.. UK apat lut le chi xyz.blogspot.co.uk , pakistan apat lut le chin xyz.blogspot.pk chih dan amau country specific url na blog url domain suak zel..
Tu'n a tung a script pen na <head> nuai a guang le chin xyz.blogspot.com ngen a hn pai di.. . .in . .co.uk or .pk a last na ah type tei2 le chin le .com a hon ki rediret di..




Tutorial on how to Disable Right/left Click using JavaScript For Blogger

Today i will be  posting on  how to disable right click for blogger..
before doing this you can back up your Template if you like,, but here we will be just Adding GADGET, no need to worry
.
First we have Sign in to Blogger and then goto Dashboard

then select Layout. See Pic

After that you will see Add Gadget in sidebar/footer, click on that see pic 



After you Click  AddGadget,, Pop up will come up,, see pic 









In that Popup Tab Choose HTML/Javasccript
And you will see a Blank Field Poping up See Pic   








And in that Blank Content Paste This Script..below
                                                     



<script language=javascript>
<!--

var message="function disable by biakmuancj";

///////////////////////////////////
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>

or this one

<!- START disable copy paste --><script src='demo-to-prevent-copy-paste-on-blogger_files/googleapis.js'></script><script type='text/javascript'> if(typeof document.onselectstart!="undefined" ) {document.onselectstart=new Function ("return false" ); } else{document.onmousedown=new Function ("return false" );document.onmouseup=new Function ("return false"); } </script><!-- End disable copy paste -->


Then Save your Template.
After that Refresh your blog.. it should work just fine..