แอดเซนส์ในบลอกเกอร์มันลงไปอยู่ข้างล่างสุดของบลอก ผมจะแก้ไงครับ ?

เริ่มโดย สมถะมหาทรัพย์, 29 ธันวาคม 2008, 13:59:07

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

สมถะมหาทรัพย์

ผมเปลี่ยนเทมเพลทไปมา  จนแอดเซนส์ที่มันเคยอยู่ด้านข้างของเนื้อหา ลงไปอยู่ด้านล่างสุดๆของบลอก   ผมอยากจะให้มันกลับมาอยู่ด้านข้างเหมือนเดิม  ทำยังไงอ่าครับ   :-X   

อีกคำถาม  เราจะมีวิธีขยายเทมเพลทให้มันกว้างขึ้นไหมครับ   แหะ  แหะ :-[    :-X    :-X

zenar218

1. วิธีใส่adsenseในblogger (ใส่ในแม่แบบhtml)

ปกติโค้ดadsenseจะเป็นแบบนี้
<script type="text/javascript"><!--
google_ad_client = "pub-xxxxxxxxxxxxxxxx";
/* ชื่อ */
google_ad_slot = "xxxxxxxxx";
google_ad_width = 120;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


ถ้าจะใส่ต้องแก้< ตรง<--ให้เป็น &lt; (less than)
แก้>ตรง-->ให้เป็น &gt; (greater than)

โค้ดข้างบนแก้ 2 ตัวนั้นจะได้แบบนี้ครับ

<script type="text/javascript">&lt;!--
google_ad_client = "pub-xxxxxxxxxxxxxxxx";
/* ชื่อ */
google_ad_slot = "xxxxxxxxx";
google_ad_width = 120;
google_ad_height = 600;
//--&gt;
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>


2. ถ้าใส่ที่side bar ก็แค่เพิ่มgadget เลือก html แล้วใส่โค้ดไปธรรมดาครับ
3. ขยายเทมเพลตทำได้ ต้องลองหาbody#layout #header แล้วแก้ width=กี่px แล้วแต่เทมเพลต

ฉนวนกันเสียง แผ่นซับเสียง  [direct=https://www.zen-acoustic.com]ติดตั้งผนังกันเสียง ปรึกษาด้านอะคูสติก ติดต่อ ZEN ACOUSTIC[/direct]
เว็บไซต์ หยุดที่นี่ ดอตคอม [direct=https://www.yudtini.com]เว็บไซต์รวบรวมสาระต่างๆครบ ในที่เดียว[/direct]
ฝึกเล่นโอเทลโล่ ที่นี่ [direct=https://www.thaiothello.com]ชมรมหมากกระดานโอเทลโล่ (Thailand Othello Association)[/direct]
สอนธรรมะทาง Tiktok อ้างอิงพระไตรปิฎก [direct=https://www.tiktok.com/@zen.the.upasaka]Zen The Upasaka[/direct]
เฟสบุคผมเอง [direct=https://www.facebook.com/zenar218]Zen Thammatorn[/direct]

สมถะมหาทรัพย์

มันเป็นจังสิครับ
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html expr:dir='data:blog.languageDirection' xmlns='http://www.w3.org/1999/xhtml' xmlns:b='http://www.google.com/2005/gml/b' xmlns:data='http://www.google.com/2005/gml/data' xmlns:expr='http://www.google.com/2005/gml/expr'>
  <head>
    <b:include data='blog' name='all-head-content'/>
    <title><data:blog.pageTitle/></title>
    <b:skin><![CDATA[/*
* Blogger Template Style
*
* Sand Dollar
* by Jason Sutter
* Updated by Blogger Team
*/

/* Variable definitions
   ====================
   <Variable name="textcolor" description="Text Color"
             type="color" default="#000" value="#000000">

   <Variable name="bgcolor" description="Page Background Color"
             type="color" default="#f6f6f6" value="#f6f6f6">

   <Variable name="pagetitlecolor" description="Blog Title Color"
             type="color" default="#F5DEB3" value="#F5DEB3">

   <Variable name="pagetitlebgcolor" description="Blog Title Background Color"
             type="color" default="#DE7008" value="#DE7008">

  <Variable name="descriptionColor" description="Blog Description Color"
            type="color" default="#9E5205" / value="#9E5205">

   <Variable name="descbgcolor" description="Description Background Color"
             type="color" default="#F5E39e" value="#F5E39e">

   <Variable name="titlecolor" description="Post Title Color"
             type="color" default="#9E5205" value="#9E5205">

   <Variable name="datecolor" description="Date Header Color"
             type="color" default="#777777" value="#777777">

   <Variable name="footercolor" description="Post Footer Color"
             type="color" default="#444444" value="#444444">

   <Variable name="linkcolor" description="Link Color"
             type="color" default="#DE7008" value="#DE7008">

   <Variable name="footerlinkcolor" description="Post Footer Link Color"
             type="color" default="#968a0a" value="#968a0a">

   <Variable name="visitedlinkcolor" description="Visited Link Color"
             type="color" default="#DE7008" value="#DE7008">

   <Variable name="sidebarcolor" description="Sidebar Title Color"
             type="color" default="#B8A80D" value="#B8A80D">

   <Variable name="sidebarlinkcolor" description="Sidebar Link Color"
             type="color" default="#999999" value="#999999">

   <Variable name="bordercolor" description="Border Color"
             type="color" default="#e0ad12" value="#e0ad12">

   <Variable name="bodyfont" description="Text Font"
             type="font"
             default="normal normal 100% 'Trebuchet MS',Trebuchet,Verdana,Sans-Serif" value="normal normal 100% 'Trebuchet MS',Trebuchet,Verdana,Sans-Serif">

   <Variable name="headerfont" description="Sidebar Title Font"
             type="font"
             default="normal bold 150% Verdana,Sans-serif" value="normal bold 150% Verdana,Sans-serif">

   <Variable name="dateHeaderFont" description="Date Header Font"
             type="font"
             default="normal bold 105% 'Trebuchet MS',Trebuchet,Verdana,Sans-serif" value="normal bold 105% 'Trebuchet MS',Trebuchet,Verdana,Sans-serif">

   <Variable name="pagetitlefont" description="Blog Title Font"
             type="font" default="normal bold 300% Verdana,Sans-Serif" value="normal bold 300% Verdana,Sans-Serif">

   <Variable name="titlefont" description="Post Title Font"
             type="font" default="normal bold 160% Verdana,Sans-Serif" value="normal bold 160% Verdana,Sans-Serif">
   <Variable name="startSide" description="Start side in blog language"
             type="automatic" default="left" value="left">
   <Variable name="endSide" description="End side in blog language"
             type="automatic" default="right" value="right">
*/

body {
  margin:0px;
  padding:0px;
  background:$bgcolor;
  color:$textcolor;
  font-size: small;
}

#outer-wrapper {
  font:$bodyfont;
}
         
a {
color:$linkcolor;
}
         
a:hover {
color:$titlecolor;
}

a img {
  border-width: 0;
}
                       
#content-wrapper {
  padding-top: 0;
  padding-$endSide: 1em;
  padding-bottom: 0;
  padding-$startSide: 1em;
}

@media all  {
  div#main {
    float:$endSide;
    width:66%;
    padding-top:30px;
    padding-$endSide:0;
    padding-bottom:10px;
    padding-$startSide:1em;
    border-$startSide:dotted 1px $bordercolor;
    word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
    overflow: hidden;     /* fix for long non-text content breaking IE sidebar float */
  }           
  div#sidebar {
    margin-top:20px;
    margin-$endSide:0px;
    margin-bottom:0px;
    margin-$startSide:0;
    padding:0px;
    text-align:$startSide;
    float: $startSide;
    width: 31%;
    word-wrap: break-word; /* fix for long text breaking sidebar float in IE */
    overflow: hidden;     /* fix for long non-text content breaking IE sidebar float */
  }
}
                       
@media handheld  {
  div#main {
   float:none;
   width:90%;
}
 
  div#sidebar {
    padding-top:30px;
    padding-$endSide:7%;
    padding-bottom:10px;
    padding-$startSide:3%;
  }                         
}
                       
#header {
  padding-top:0px;
  padding-$endSide:0px;
  padding-bottom:0px;
  padding-$startSide:0px;
  margin-top:0px;
  margin-$endSide:0px;
  margin-bottom:0px;
  margin-$startSide:0px;
  border-bottom:dotted 1px $bordercolor;
  background:$descbgcolor;
}
                  
h1 a:link  {
text-decoration:none;
color:$pagetitlecolor
}
         
h1 a:visited  {
  text-decoration:none;
  color:$pagetitlecolor
}

h1,h2,h3 {
  margin: 0;
}

h1 {
  padding-top:25px;
  padding-$endSide:0px;
  padding-bottom:10px;
  padding-$startSide:5%;
  color:$pagetitlecolor;
  background:$pagetitlebgcolor;
  font:$pagetitlefont;
  letter-spacing:-2px;
}
         
h3.post-title {
  color:$titlecolor;
  font:$titlefont;
  letter-spacing:-1px;
}

h3.post-title a,
h3.post-title a:visited {
  color: $titlecolor;
}
         
h2.date-header  {
  margin-top:10px;
  margin-$endSide:0px;
  margin-bottom:0px;
  margin-$startSide:0px;
  color:$datecolor;
  font: $dateHeaderFont;
}
         
h4 {
color:#aa0033;
}
                  
#sidebar h2 {
  color:$sidebarcolor;
  margin:0px;
  padding:0px;
  font:$headerfont;
}

#sidebar .widget {
  margin-top:0px;
  margin-$endSide:0px;
  margin-bottom:33px;
  margin-$startSide:0px;
  padding-top:0px;
  padding-$endSide:0px;
  padding-bottom:0px;
  padding-$startSide:0px;
  font-size:95%;
}

#sidebar ul {
  list-style-type:none;
  padding-$startSide: 0;
  margin-top: 0;
}

#sidebar li {
  margin-top:0px;
  margin-$endSide:0px;
  margin-bottom:0px;
  margin-$startSide:0px;
  padding-top:0px;
  padding-$endSide:0px;
  padding-bottom:0px;
  padding-$startSide:0px;
  list-style-type:none;
  font-size:95%;
}

.description {
  padding:0px;
  margin-top:7px;
  margin-$endSide:12%;
  margin-bottom:7px;
  margin-$startSide:5%;
  color:$descriptionColor;
  background:transparent;
  font:bold 100% Verdana,Sans-Serif;
}

.post {
  margin-top:0px;
  margin-$endSide:0px;
  margin-bottom:30px;
  margin-$startSide:0px;
}
         
.post strong {
  color:$textcolor;
  font-weight:bold;
}

pre,code {
color:$sidebarlinkcolor;
}

strike {
color:$sidebarlinkcolor;
}

.post-footer  {
  padding:0px;
  margin:0px;
  color:$footercolor;
  font-size:80%;
}
.post-footer a {
  border:none;
  color:$footerlinkcolor;
  text-decoration:none;
}

.post-footer a:hover {
  text-decoration:underline;
}

#comments {
  padding:0px;
  font-size:110%;
  font-weight:bold;
}

.comment-author {
  margin-top: 10px;
}

.comment-body {
  font-size:100%;
  font-weight:normal;
  color:black;
}

.comment-footer {
  padding-bottom:20px;
  color:$footercolor;
  font-size:80%;
  font-weight:normal;
  display:inline;
  margin-$endSide:10px
}

.deleted-comment  {
  font-style:italic;
  color:gray;
}

.comment-link  {
  margin-$startSide:.6em;
}

.profile-textblock {
  clear: both;
  margin-$startSide: 0;
}

.profile-img {
  float: $startSide;
  margin-top: 0;
  margin-$endSide: 5px;
  margin-bottom: 5px;
  margin-$startSide: 0;
  border: 2px solid $pagetitlebgcolor;
}

#sidebar a:link  {
  color:$sidebarlinkcolor;
  text-decoration:none;
}   

#sidebar a:active  {
  color:#ff0000;
  text-decoration:none;
}     

#sidebar a:visited  {
  color:sidebarlinkcolor;
  text-decoration:none;
}

#sidebar a:hover {
  color:$sidebarcolor;
  text-decoration:none;
}

.feed-links {
  clear: both;
  line-height: 2.5em;
}

#blog-pager-newer-link {
  float: $startSide;
}
 
#blog-pager-older-link {
  float: $endSide;
}

#blog-pager {   
  text-align: center;
}

.clear {
  clear: both;
}

.widget-content {
  margin-top: 0.5em;
}

/** Tweaks for layout editor preview */

body#layout #outer-wrapper {
  margin-top: 0;
}

body#layout #main,
body#layout #sidebar {
  margin-top: 10px;
  padding-top: 0;
}
]]></b:skin>
  </head>

  <body>
  <div id='outer-wrapper'><div id='wrap2'>

    <!-- skip links for text browsers -->
    <span id='skiplinks' style='display:none;'>
      <a href='#main'>skip to main </a> |
      <a href='#sidebar'>skip to sidebar</a>
    </span>

    <div id='header-wrapper'>
      <b:section class='header' id='header' maxwidgets='1' showaddelement='no'>
<b:widget id='Header1' locked='true' title='ปะทิวสอง (Header)' type='Header'/>
</b:section>
    </div>

    <div id='content-wrapper'>

      <div id='crosscol-wrapper' style='text-align:center'>
        <b:section class='crosscol' id='crosscol' showaddelement='no'/>
      </div>

      <div id='main-wrapper'>
        <b:section class='main' id='main' showaddelement='no'>
<b:widget id='Blog1' locked='true' title='Blog Posts' type='Blog'/>
<b:widget id='HTML3' locked='false' title='ใครเข้ามาดูเราบ้างนะ....' type='HTML'/>
<b:widget id='HTML1' locked='false' title='จองโรงแรมออนไลน์ในจังหวัดชุมพร' type='HTML'/>
<b:widget id='AdSense2' locked='false' title='' type='AdSense'/>
<b:widget id='AdSense1' locked='false' title='' type='AdSense'/>
<b:widget id='Followers1' locked='false' title='Followers' type='Followers'/>
<b:widget id='BlogArchive1' locked='false' title='Blog Archive' type='BlogArchive'/>
<b:widget id='Profile1' locked='false' title='About Me' type='Profile'/>
</b:section>
      </div>

      <div id='sidebar-wrapper'>
        <b:section class='sidebar' id='sidebar' preferred='yes'/>
      </div>

      <!-- spacer for skins that want sidebar and main to be the same height-->
      <div class='clear'>&#160;</div>

    </div> <!-- end content-wrapper -->
  </div></div> <!-- end outer-wrapper -->
</body>
</html>
  ผมต้องการย้ายตั้งแต่
<b:widget id='AdSense2' locked='false' title='' type='AdSense'/>
<b:widget id='AdSense1' locked='false' title='' type='AdSense'/>
<b:widget id='Followers1' locked='false' title='Followers' type='Followers'/>
<b:widget id='BlogArchive1' locked='false' title='Blog Archive' type='BlogArchive'/>
<b:widget id='Profile1' locked='false' title='About Me' type='Profile'/>
</b:section>
      </div>

      <div id='sidebar-wrapper'>
        <b:section class='sidebar' id='sidebar' preferred='yes'/>
      </div>

      <!-- spacer for skins that want sidebar and main to be the same height-->
      <div class='clear'>&#160;</div>

    </div> <!-- end content-wrapper -->
  </div></div> <!-- end outer-wrapper -->
</body>
</html>
                ให้มันไปอยู่ด้านข้างของบลอกครับ   ทำยังไงอ่ะครับ :-[ :-X             

thongseed

[direct=http://www.rcseed.blogspot.com]RC ของเล่นคนรวย_1[/direct]  [direct=http://www.rcjeed.blogspot.com]RC ของเล่นคนรวย_2[/direct]  [direct=http://www.technoenter.blogspot.com]technoenter อัพเดท[/direct]  [direct=http://www.notebookhot.co.cc]Notebook ใหม่ ๆ จ้า[/direct]

zerohate

ลองเปลี่ยนแม่แบบ ให้เป็น แม่แบบดั่งเดิมดีกว่าไหมครับ ผมว่าจะแก้ง่ายกว่าอ่ะ
[direct=http://www.thaimetalhead.com/]Thailand Metal Music[/direct]

yuyie

"There's too many things I haven't done yet, Too many sunsets I haven't seen...

You can't waste the day wishing it'd slow down, You would've thought by now, I'd have learned something"

สมถะมหาทรัพย์

อ้างถึงลองเปลี่ยนแม่แบบ ให้เป็น แม่แบบดั่งเดิมดีกว่าไหมครับ ผมว่าจะแก้ง่ายกว่าอ่ะ


ง่ายกว่าจริงๆด้วยครับ     ;D   ;D


ขอบคุณครับผม