tlogic
Inactive User
Hi guys,
I'm trying to implement a google adsence code to my html website however when i copy and paste my code into the the 'template.tpl' the ad keeps appearing on the left hand side instead on the right handside, is there a special html command where i can shift the ad to the right hand side of the page
here is my source code of my page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<TR><TD width="100%"><HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.6000.16643" name=GENERATOR></HEAD>
<BODY>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD class=head_left><IMG alt="" src="images/head_left.png"></TD>
<TD class=head_main vAlign=center>
<DIV
style="MARGIN-TOP: 10px; FLOAT: left">{$app->setting->site_name}
</DIV>
<DIV style="FLOAT: right">
<TABLE cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD><IMG alt="" src="images/stat_box_top_left.png"></TD>
<TD class=stat_box_top></TD>
<TD><IMG alt="" src="images/stat_box_top_right.png"></TD></TR>
<TR>
<TD class=stat_box_left></TD>
<TD class=stat_box_main>{if $is_Glink} <B>##Words Sold##:</B>
{$words_used|number_format|escape} <BR><B>##Available##:</B>
{$words_avail|number_format|escape} {else} <B>##Pixels Sold##:</B>
{$pixels_used|number_format|escape} <BR><B>##Available##:</B>
{$pixels_avail|number_format|escape} {/if} </TD>
<TD class=stat_box_right></TD></TR>
<TR>
<TD><IMG alt="" src="images/stat_box_bot_left.png"></TD>
<TD class=stat_box_bot></TD>
<TD><IMG alt=""
src="images/stat_box_bot_right.png"></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></TD></TR><TR><TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD class=nav_left><IMG alt="" src="images/nav_left.png"></TD>
<TD class=nav_main align=left><A
href="{url|escape href='/index.php'}">##Home##</A> | {if
$is_Glink}<A href="{url|escape href='/get_words.php'}">##Get Words##</A>
| <A href="{url|escape href='/word_list.php'}">##Word
List##</A>{else}<A href="{url|escape href='/get_pixels.php'}">##Get
Pixels##</A> | <A
href="{url|escape href='/pixel_list.php'}">##Pixel List##</A>{/if}
| <A href="{url|escape href='/tell_a_friend.php'}">##Tell a
Friend##</A> | {if $app->setting->link_to_us_enabled}
<A href="{url|escape href='/link_to_us.php'}">##Link to Us##</A> |
{/if} <A href="{url|escape href='/blog.php'}">##Blog##</A> {if
$app->setting->rss_feeds_enabled()} | <A
href="{url|escape href='/rss.php'}">##RSS##</A> {/if}
{language_selector} {if $app->setting->user_accounts} {if
$smarty.session.user_id}
Welcome, <STRONG>{$smarty.session.first_name} {$smarty.session.last_name}</STRONG>
| <A class=tlinks
href="{url|escape href='/account.php'}">##Your Account##</A> |
<A class=tlinks href="{url|escape href='/logout.php'}">##Log
Out##</A> {else} <A href="{url|escape href='/login.php'}">##Log In##</A>
| <A href="{url|escape href='/signup.php'}">##Create
Account##</A> {/if} {/if}
<TD class=nav_right><IMG alt=""
src="images/nav_right.png"></TD></TR></TBODY></TABLE></TD></TR><TR><TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD class=toolbar_main vAlign=center><BR> <BR> {if $links}
{foreach item=link from=$links} {$link} {/foreach} {/if}
{if $is_Glink eq false} {if $smarty.session.magnify}<A
href="index.php?magnify=0{if $smarty.request.grid>1}&grid={$smarty.request. grid|escape}{/if}">##Magnifier Off##</A>{else}<A
href="index.php?magnify=1{if $smarty.request.grid>1}&grid={$smarty.request. grid|escape}{/if}">##Magnifier On##</A>{/if}
{/if} </TD></TR></TBODY></TABLE></TD></TR></BODY></HTML>
:
below is the google adsence code i'm trying to put in my page.
<script type="text/javascript"><!--
google_ad_client = "pub-8528842442593961";
/* 120x600, created 01/06/08 */
google_ad_slot = "1279157971";
google_ad_width = 120;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
I'll appreciate any help guys, coz this driving my up the wall.
I'm trying to implement a google adsence code to my html website however when i copy and paste my code into the the 'template.tpl' the ad keeps appearing on the left hand side instead on the right handside, is there a special html command where i can shift the ad to the right hand side of the page
here is my source code of my page:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<TR><TD width="100%"><HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<META content="MSHTML 6.00.6000.16643" name=GENERATOR></HEAD>
<BODY>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD class=head_left><IMG alt="" src="images/head_left.png"></TD>
<TD class=head_main vAlign=center>
<DIV
style="MARGIN-TOP: 10px; FLOAT: left">{$app->setting->site_name}
</DIV>
<DIV style="FLOAT: right">
<TABLE cellSpacing=0 cellPadding=0>
<TBODY>
<TR>
<TD><IMG alt="" src="images/stat_box_top_left.png"></TD>
<TD class=stat_box_top></TD>
<TD><IMG alt="" src="images/stat_box_top_right.png"></TD></TR>
<TR>
<TD class=stat_box_left></TD>
<TD class=stat_box_main>{if $is_Glink} <B>##Words Sold##:</B>
{$words_used|number_format|escape} <BR><B>##Available##:</B>
{$words_avail|number_format|escape} {else} <B>##Pixels Sold##:</B>
{$pixels_used|number_format|escape} <BR><B>##Available##:</B>
{$pixels_avail|number_format|escape} {/if} </TD>
<TD class=stat_box_right></TD></TR>
<TR>
<TD><IMG alt="" src="images/stat_box_bot_left.png"></TD>
<TD class=stat_box_bot></TD>
<TD><IMG alt=""
src="images/stat_box_bot_right.png"></TD></TR></TBODY></TABLE></DIV></TD></TR></TBODY></TABLE></TD></TR><TR><TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD class=nav_left><IMG alt="" src="images/nav_left.png"></TD>
<TD class=nav_main align=left><A
href="{url|escape href='/index.php'}">##Home##</A> | {if
$is_Glink}<A href="{url|escape href='/get_words.php'}">##Get Words##</A>
| <A href="{url|escape href='/word_list.php'}">##Word
List##</A>{else}<A href="{url|escape href='/get_pixels.php'}">##Get
Pixels##</A> | <A
href="{url|escape href='/pixel_list.php'}">##Pixel List##</A>{/if}
| <A href="{url|escape href='/tell_a_friend.php'}">##Tell a
Friend##</A> | {if $app->setting->link_to_us_enabled}
<A href="{url|escape href='/link_to_us.php'}">##Link to Us##</A> |
{/if} <A href="{url|escape href='/blog.php'}">##Blog##</A> {if
$app->setting->rss_feeds_enabled()} | <A
href="{url|escape href='/rss.php'}">##RSS##</A> {/if}
{language_selector} {if $app->setting->user_accounts} {if
$smarty.session.user_id}
Welcome, <STRONG>{$smarty.session.first_name} {$smarty.session.last_name}</STRONG>
| <A class=tlinks
href="{url|escape href='/account.php'}">##Your Account##</A> |
<A class=tlinks href="{url|escape href='/logout.php'}">##Log
Out##</A> {else} <A href="{url|escape href='/login.php'}">##Log In##</A>
| <A href="{url|escape href='/signup.php'}">##Create
Account##</A> {/if} {/if}
<TD class=nav_right><IMG alt=""
src="images/nav_right.png"></TD></TR></TBODY></TABLE></TD></TR><TR><TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%">
<TBODY>
<TR>
<TD class=toolbar_main vAlign=center><BR> <BR> {if $links}
{foreach item=link from=$links} {$link} {/foreach} {/if}
{if $is_Glink eq false} {if $smarty.session.magnify}<A
href="index.php?magnify=0{if $smarty.request.grid>1}&grid={$smarty.request. grid|escape}{/if}">##Magnifier Off##</A>{else}<A
href="index.php?magnify=1{if $smarty.request.grid>1}&grid={$smarty.request. grid|escape}{/if}">##Magnifier On##</A>{/if}
{/if} </TD></TR></TBODY></TABLE></TD></TR></BODY></HTML>
:
below is the google adsence code i'm trying to put in my page.
<script type="text/javascript"><!--
google_ad_client = "pub-8528842442593961";
/* 120x600, created 01/06/08 */
google_ad_slot = "1279157971";
google_ad_width = 120;
google_ad_height = 600;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
I'll appreciate any help guys, coz this driving my up the wall.