28 March, 2010

Use jquery to style your external links with image

You must have noticed in Wikipedia that all external links is followed by an image basically this tells user that the link will open in a new tab.
Lets see an example -
Blogger -An external Link
Fun with blogger -Internal link

You have noticed that the hyperlink blogger has an arrow image on right of it! This tells the user that the link will open up in a new tab when being clicked!One way of doing this is manually putting the class name to each anchor tag entry having external target! or just use jquery function and let Jquery do it for you.

# Understanding External Links strategy. What are external links?
External links are those links which points away from  your site.For this  we use a special attribute target="_blank" which tells the browser to open external link in new tab or window.
External link Looks like this
<a href="http://www.blogger.com/" target="_blank">Blogger </a>
# Purpose/Use  of JQuery. We will use jQuery to find out all a tags with target="_blank" attribute and will append a class name "external" to them by easily defining css for class external.
# Add Class name "external" To your blogger. Just Edit your Template:
Blogger Dashboard >
Layout > Edit HTML

a.external {
padding-right: 13px;
background: transparent url("http://4.bp.blogspot.com/_M0X9MzkzNXE/Srdo-XydVRI/AAAAAAAADpA/3n29SY7GrfI/s320/external.png") no-repeat scroll right center;

Now paste the above CSS code before ]]></b:skin>

#Append JQuery to your blogger. Copy below code and paste it Before the </head> in your template.
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"> </script> <script type="text/javascript"> $(document).ready(function() {     $('a[target="_blank"]').addClass("external"); }); </script>

This javascript code consist of two parts:
Jquery library-
 <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
And a function which search  target="_blank" attribute and will append a class name "external" to it.

That was all regarding Using jquery to make your external links looks cool and different.Stay in touch with me bu subscribing to my posts with RSS And MAIL
Please  give your feedback and do share this article with your friends.

12 March, 2010

Insert Adsense Block in the Middle of the post-Blogger

 How to place Adsense in the middle of Blogger posts.
The solution to this problem is quite simple: you only need to move the post body around the advertising code, just with a bunch of JavaScript and a couple of DIVs (divisions).
Works For both Old blogger and New Blogger.

1. In your Blogger template:


Find the tag <$BlogItemBody$> and replace it with following code:

<div id="prv<$BlogItemNumber$>"></div>

<div style="clear:both;margin:10px 0">
    <!-- Your AdSense code -->

<div id="fst<$BlogItemNumber$>">

<script type="text/javascript">
var obj0=document.getElementById("prv<$BlogItemNumber$>");
var obj1=document.getElementById("fst<$BlogItemNumber$>");
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);}


Find the tag <data:post.body/> (you must check Expand Widget Templates in Blogger console) and replace it with following code:

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

<div style="clear:both; margin:10px 0">
    <!-- Your AdSense code here -->

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

<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);}

Note that you must replace <!-- Your AdSense code --> with block code provided by Google.

2. In every blog post:

Put a special comment
<!-- adsense -->
in the exact point you want to appear AdSense advertising.

  1. Does this method violate Google ToS?

    No. Answering a direct support request Google stated this method doesn't violate any of their program policies.
  2. What if I forget to put in a post the <!-- adsense --> comment?

    Nothing. The advertising block will appear in the traditional position you defined in your template before implementing this modification.
  3. What happens in Blogger home page and archive pages where there several posts with <!-- adsense --> comment appears together?

    Exactly the same thing happening before this modification: Google automatically inject in your posts up to 3 AdSense blocks. So just the first 3 posts (in a top-down order) in your home page or archive pages will have ads.

09 March, 2010

Add to blogger :Bullets With Image hover effect

Bullets with image hover effect bloggerThis is a simple tutorial to learn to ADD bullets images to your blogger which change with while you place mouse on it.The image beside shows hovering effect .IF you are looking for free bullets icons or graphics for your blog you can check my article Best places to download free bullets .

Adding Bullets to Post Area

  • Login to your blogger
  • Click on Layout tab >> Click Edit HTML
  • Use your browser search (Cntrl + F) to find .post ul li or some thing like this might be different in different templates.
background:transparent url(http://i47.tinypic.com/deppy0.jpg) no-repeat scroll 0 4px;
and add in your .post ul li(in between curly brackets { and }) so that your code becomes

.post ul li {
background:transparent url(http://i47.tinypic.com/deppy0.jpg) no-repeat scroll 0 4px;
margin:0.3em 0;
padding:0 0 0.8em 20px;

This is not yet done ,if you save your template you have successfully added image as bullet in your template but it will not change when you take your mouse to your lists.
For that you have to add an another image generally of same style but with different color like i have done first green then blue.For doing that copy below part - and paste it just after .post ul li part
background:transparent url(http://i46.tinypic.com/330u3kp.jpg) no-repeat scroll 0 4px;

.post ul li:hover {
background:transparent url(http://i46.tinypic.com/330u3kp.jpg) no-repeat scroll 0 4px;

So now your Final code becomes-

.post ul li {
background:transparent url(http://i47.tinypic.com/deppy0.jpg) no-repeat scroll 0 4px;
margin:0.3em 0;
padding:0 0 0.8em 20px;
.post ul li:hover {
background:transparent url(http://i46.tinypic.com/330u3kp.jpg) no-repeat scroll 0 4px;

Note : If your theme does not have any thing like .post ul li   or   .post ul li:hover  in that case search for ]]></b:skin> and paste full code above it.

Adding Bullets to Sidebar

Adding bullets to sidebar is similar to adding it in posts area just add
background:transparent url(http://i47.tinypic.com/deppy0.jpg) no-repeat scroll 0 4px;
in your sidebar wrapper code if your sidebar already has an image you just need to replace the image with this http://i47.tinypic.com/deppy0.jpg

.sidebar ul li {
background:transparent url(http://i47.tinypic.com/deppy0.jpg) no-repeat scroll 0 4px;
margin:0 0 5px;
.sidebar ul li:hover {
background:transparent url(http://i46.tinypic.com/330u3kp.jpg) no-repeat scroll 0 4px;

Note : If your sidebar does not have any thing like .sidebar ul li:hover   you have to add one for your sidebar.
Note :Dont just copy paste blindly it will not work

06 March, 2010

Review contest :Earn hundreds of dollors and get exclusive template

A Review on Icongalore.com, Buytemplates.net, Brochuremoster.com and MukhangPera.com

Icongalore.com is an online store that sell high quality icons need for web development, application development, and other purposes. There are thousands of professionaly designed icons displayed in the website. The website contains icons suitable for various windows OS, such as XP style icons, Vista icons, and Windows 7 icons. They are further classified into categories to make it easy for the customers to choose the pack they are in need of. These various categories of icons come in five different formats, three states and in all standard sizes. Each of the icon package has a complete set of icons required for specific purposes and have be priced much lower than the standard market price.

The icons are grouped under various categories, such as Network Icons, Festival Icons, Socialmedia Icons, Vista Email Icons, Network DB Icons, Hotel Icons, Travel Rule Icons, Weather Icons, Accounting Icons, Navigation Icons, Travel Icons, Real Estate Icons, Ecommerce Icons, Transport Icons, Accounting Software Icons, E-commerce Icons, Conceptual Icons, Web Icons, People and Objects, Flag Icons, Multimedia Icons, Computer & Network Icons, Insurance Icons, Telecom Icons, Entertainment Icons, Medical Icons, Windows Theme Icons, Retail Icons, Banking Icons, Education Icons, Food & Beverage Icons, Object & Product Icons, Software Icons, Button Icons and many more.

Buytemplates.net is a renowned online store for high quality websites templates. The online store has been serving global clients over a decade now. Over these years the online web template store has been transformed into a superstore with thousands of web templates in various categories and web technologies. You can find all kinds of web templates that range from simple HTML web templates to the complex Joomla templates that run on CMS technology. Buytemplates.net has successfully adapted to various trend changes in the internet world and remains the best online web template store to this day. The store has three membership plans to suit the needs of its customers. These consist of budget, standard and premium membership programs. The website also offer plethora of freebies and complete online support until your websites are launched. All of the services provided by the website, such as template customization, custom designing, content insertion, or even hosting are priced very competitively. Best of all the freebies is the one year free web hosting service offered to every new member.

Brochuremonster.com is the right place for people that are on the lookout for high quality brochures and flyer templates. The website has been serving its clients with the best brochure designs available in the industry. The online store contains all of the conventional marketing tools, such as brochures, flyers, tri-folders, postcards, posters, and even folders. These templates make it easy to create wonder working marketing collateral within a short span. The online store has flexible options for its clients. You can either choose individual templates or join membership programs of the online store. Membership programs enable customers to download unlimited number of brochures flyers posters, etc with a one time fee for a period of six months. The store also provides custom design services and excellent customer care.

Mukhang Pera is a blog for money-conscious Filipinos. The blog is a great source of information on the latest offline and online contests, promos, discounts, how to make money, and more. All the information blogged there has been filtered for the Philippine audience but readers from other countries can still learn a lot from the blog.

Win prizes worth hundreds of dollars from Mukhang Pera.


First Prize
  1. Windows7 Network Icons and Vista DB Network icons Package worth $ 180
  2. Custom Flash banner design from bannerwind.com worth $ 199
  3. Text link ad from bizbrim.com worth $ 10 (One month) - for related websites only
  4. 5 GB Linux Reseller Hosting and a 2 GB Windows Reseller Hosting from webspace2host.in for one (1) year
Second Prize
  1. Get any one brochure package from brochuremonster.com worth $ 149
  2. Custom logo or WordPress theme worth $ 99
  3. 2,000 MB hosting from http://www.bhardwajweb.com for one year
  4. 1000EC credits http://i-heart-contest.com
Third Prize
  1. Two Joomla templates and sharepoint templates from buytemplates.net worth $ 116
  2. One year membership at memberwind.com. Get free access to 6 product sites that have various products, such as web templates, brochures, banners, icons, logos, and illustrations for member download.
  3. Text link ad from http://www.stunningmesh.com for 1 month
There's more! Anyone who participates will receive a professionally designed web template from the sponsors!!!

  • Read the Terms and Conditions before you enter the contest. Your participation in the contest implies that you have read and agreed to the terms and conditions of the sponsors regarding this contest.
  • The contest will run from February 1 to 28, 2010. Credits earned after the closing date will not be counted.
  • To participate in this contest your blog should be at least 3 months old.
  • Participants can post the review on any number of blogs but only one post per blog will be accepted.
  • Post this review along with sponsors' ad banners, rules, and prizes. Care should be taken that the hyperlinks in the review are "dofollow" links and are live.
  • You can follow us on twitter and earn credits as well.
  • You can also post reviews about the contest on different social media sites to gain credits
  • You can get the maximum credits if you write your own review about any of the sponsors' websites (buytemplates.net, brochuremonster.com, or templatewind.com) and mukhangpera.com
  • Submit your blog entry URL, social media username, and twitter username and tweets by posting a comment at http://mukhangpera.com/2010/02/contest-win-prizes-worth-hundreds-of-dollars-from-mukhang-pera/
  • There are corresponding points depending on the type of entries: For blog post - 3 points For twitter followers - 2 points For social media bookmarks - 1 point each (e.g. digg, stumbleupon, etc.) Writing a short review about any of the four sites on your own and posting it on your blogs - 10 points
  • In cases of ties, winner will be selected using random.org

Contest Page: http://mukhangpera.com/2010/02/contest-win-prizes-worth-hundreds-of-dollars-from-mukhang-pera/