Showing posts with label Hacks. Show all posts
Showing posts with label Hacks. Show all posts
| 0 comments ]

In normal cases all blogger users can put the adsense block at the top of the post or at the bottom Only.
but the problem here is that alot of bloggers don’t get high CTR ( clicks ) by this placement,
so they should play with the ads placement,
the best solution here is to put you google ads blocks in the middle of the post in your blogspot blog.

and you have to check out Google AdSense heat map

blogger don’t offer this option by default settings, so you have to be tricky to do it,
here is easy and fast way to do it.

Procedure :--

  • go to your blogger account,

  • and navigate to Layout >> edit html,

  • and check check Expand Widget Templates

  • Find the tag : "<data :post.body/>"

Code:-
<div expr:id='"aim1" + data:post.id'></div>

<div style="clear:both; margin:10px 0">

  <!-- Your AdSense code here -->

</div>

<div expr:id='"aim2" + data:post.id'>

  <data :post.body/>

</div>

<script type="text/javascript">

var obj0=document.getElementById("aim1<data :post.id/>");

var obj1=document.getElementById("aim2<data :post.id/>");

var s=obj1.innerHTML;

var r=s.search(/\x3C!-- adsense --\x3E/igm);

if(r>0) {obj0.innerHTML=s.substr(0,r);obj1.innerHTML=s.substr(r+16);}

</script>
Note that you must replace
<!-- Your AdSense code -->

with block code provided by Google.

Now you are done, just to put your google adsense block in the middle of the post, you have to put this code in the exact place you want to put AdSense block.

Enjoy earning with your blog too.. do comment for any type blog topic or any help!!!

Thanks,
-Amaresh

| 0 comments ]

Right click on any internet browser is very important element.
and we must use it when it comes to copy or editing texts and etc..
and it’s very important when it comes to webmasters too.

but some people may use it in a bad way, and you may want to make click right disabled on your blog.
to protect you text, images links and etc….

so all what you have to do is only simple step.
you’ll need to add new html/javascript element to your layout.
now go to your blogger account.
navigate to Layout >> Add a Gadget >> and select html/javascript

then copy the next code and past in in html/javascript text box area

Code for this:-
<script language="JavaScript">
<!--
//Disable right mouse click Script
//By Maximus (maximus@nsimail.com) w/ mods by DynamicDrive
//copied from http://bloghelpforbegineers.blogspot.com
//For full source code, visit http://www.dynamicdrive.com
//var message="Function Disabled!";
var message="You are not Autherised to this copy contact "http://bloghelpforbegineers.blogspot.com";
///////////////////////////////////
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>

then save the html/javascript. and view you blog.

when you try to do right click. a message will tell you that “Function disabled”

and if you want to change this words” Function Disabled”

find the next line in the code

var message="You are not Autherised to this copy contact "http://bloghelpforbegineers.blogspot.com";
and change Function Disabled! to what ever you want.

i hope it helps.


Enjoy chat with your blog too.. do comment for any type blog topic or any help!!!

Thanks,
-Amaresh