Hello.
I am trying to put the Google Adsense script inside my website. I made a simple site using table. I tried putting the script within a <tr><td> </td></tr> coding but when I preview, the advertisement appears at the bottom left of the page.
Please tell me how I can position javascripts in my website. Thank you very much.
You can put adsense anywhere on your page,if you want it in a particular place and want it in a table,make sure your putting it in the right one. a basic table reads like
<table>
<tr>
<td>YOU PUT CONTENT HERE</td>
</tr></table>
Obviously a lot will depend on where you align your table as to where it goes on the page,perhaps you could post your url and say where you want adsense to go.
If you're using Frontpage or similar program to develop your page, you can use truespeed suggestion easily. Just type: YOU PUT CONTENT HERE at the place you want to put your adsense ads.
Preview it and change the layout at the proper place you want. After you satisfied with the placement, go to the HTML section/tab and replace the words "YOU PUT CONTENT HERE" with your ads code.
Don't alter any other codes, just replace that words and you should be fine.
Good luck.
Hi. Thanks for the advice.
I am not using Frontpage or any particular software. I just created the website directly from the frihost admin. I made a table to slot in my contents.
But when it comes to the adsense script, I couldn't get it to stay within the table cell that I wanted it to. The adsense code is inserted between the <td> code is here </td>.
But when I preview it, the adsense advertisement appears at the bottom of the page outside the table. I wonder why.
| genchan wrote: |
Hi. Thanks for the advice.
I am not using Frontpage or any particular software. I just created the website directly from the frihost admin. I made a table to slot in my contents.
But when it comes to the adsense script, I couldn't get it to stay within the table cell that I wanted it to. The adsense code is inserted between the <td> code is here </td>.
But when I preview it, the adsense advertisement appears at the bottom of the page outside the table. I wonder why. |
If you post the url of the page your working on,or the html for the page,i or someone esle will show you how and where to place the adsense code correctly.
truespeed is right.
Post your code here and someone will be able to help you correctly.
I haven't applied to frihost hosting so i don't know what you have there on the admin panel.
Could it possibly be the Colspan attribute?
Try putting the colspan="2" or colspan="3" in the <td> tag.
Hope it helps
Otherwise, just post the HTML here and we'll fix it 
Hi. I found out the problem. I was about to post the URL here when I thought I try saving the file and checking it online. And it works fine.
What I normally do is I copy and paste the google adsense in my page and preview it. When I preview, the script appears at the bottom of the page. So I thought something is wrong.
So earlier, out of trial and error, I decided to save the editing and open the page from Admin. And it shows up correctly. So I guess it won't work during preview. I wonder why.
Thanks for all your help 