WordPress.org

Ready to get started?Download WordPress

Forums

Problem with nested table code for displaying Adsense (1 post)

  1. Pattaya_Web
    Member
    Posted 3 years ago #

    I'm trying to run 3 adsense adds in a footer column.

    I want 1 x 120 x 240 ad in the left column and 2 x 125 x 125 ads in the right column. Space is a little tight but there is room for the overall 245px width with 5px of padding between the two columns.

    The code I have used is:

    <table>
    <tr>
    <td valign="top">
    <table>
    <tr>
    <td><script type="text/javascript"><!--
    google_ad_client = "pub-29950426944xxxxx";
    /* Pattaya Web 120x240 */
    google_ad_slot = "82020xxxxx";
    google_ad_width = 120;
    google_ad_height = 240;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </td>
    </tr>
    </table>
    </td>
    <td valign="top">
    <table>
    <tr>
    <td><script type="text/javascript"><!--
    google_ad_client = "pub-29950426944xxxxx";
    /* Pattaya Web 125x125 */
    google_ad_slot = "716017xxxxx";
    google_ad_width = 125;
    google_ad_height = 125;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    <script type="text/javascript"><!--
    google_ad_client = "pub-29950426944xxxxx";
    /* Pattaya Web 125x125 #2 */
    google_ad_slot = "235594xxxxxx";
    google_ad_width = 125;
    google_ad_height = 125;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    </td>
    </tr>
    </table>
    </td>
    </tr>
    </table>

    I can get the 120 x 240 to dispaly and the first of the 125 x 125 ads to display but not the one I want below the first 125 x 125

    I'm not a coder so quite happy with the results but would like to get the second 125 x 125 displaying.

    Suggestions please?

Topic Closed

This topic has been closed to new replies.

About this Topic