[TYPO3] inserting adsense as a lib.object?
Christopher Torgalson
bedlamhotel at gmail.com
Thu Dec 13 17:27:15 CET 2007
Morten Kjems wrote:
> Hi.
>
> I am trying to create some Typo Script for a lip.object holding som
> adsense code.
>
> Here is what I got:
>
> lib.venstre_ad_tricks >
>
> lib.venstre_ad_tricks = TEXT
> lib.venstre_ad_tricks.value = <script type="text/javascript"><!--
> google_ad_client = "pub-9999999999999999"; //160x600, oprettet 13-12-07
> google_ad_slot = "9999999999"; google_ad_width = 160; google_ad_height =
> 600; //--></script><script type="text/javascript"
> src=http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
>
> The complete adsense code is written as one line and it dont work.
>
> How do I write it with several lines so it workes?
>
> Here is what it should look like:
>
> <script type="text/javascript"><!--
> google_ad_client = "pub-9999999999999999";
> //160x600, oprettet 13-12-07
> google_ad_slot = "9999999999";
> google_ad_width = 160;
> google_ad_height = 600;
> //--></script>
> <script type="text/javascript"
> src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
> </script>
>
> Thanks for helping.
lib.venstre_ad_tricks.value (
<script type="text/javascript"><!--
google_ad_client = "pub-9999999999999999";
//160x600, oprettet 13-12-07
google_ad_slot = "9999999999";
google_ad_width = 160;
google_ad_height = 600;
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
)
--
Christopher Torgalson / bedlamhotel at gmail.com
More information about the TYPO3-english
mailing list