About the blog

You can read and download quick reference cards from my blog space for free. The topics cover web design with asp.net, C#, Ajax, statistical programming with SAS, R, software development with visual studio, Delphi, etc.

If you have any question or good suggestion, please contact me or leave a comment. The companion website associated with this blog is http://www.winscard.com, please take a moment to visit it if you want to get more cards.


How to add/place the adsense gadget on the left and right side

By default, the Adsense gadget can be placed on the sidebar or footer or header or between posts as shown below(click the image to zoom in).

How about placing the adsense gadget at the left/right side of the main page? as shown below (click the image to zoom in). By doing this, the effect will be like the one shown on my blog homepage.

To do this, you need to change the layout in the HTML editing mode.

<table><tr>
<td valign='top'>LEFT Adsense gadget</td>
<td>Body Layout</td>
<td valign='top' >RIGHT Adsense gadget</td>
</tr></table>


Where the body layout is the code between body tag of the original HTML template file, and the left/right adsense gadget code is like this

<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar1' preferred='yes'>
<b:widget id='AdSense1' locked='false' title='' type='AdSense'/>
</b:section>
</div>


and


<div id='sidebar-wrapper'>
<b:section class='sidebar' id='sidebar2' preferred='yes'>
<b:widget id='AdSense2' locked='false' title='' type='AdSense'/>
</b:section>
</div>

No comments:

Post a Comment