Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    May 2009
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    adsense code in a variable

    hello

    can anyone help me on this script?
    this is my script

    Code:
    <script type="text/javascript">
    <!--
    function fc() {
            var tt = '
    <script type="text/javascript"><!--
    google_ad_client = "pub-7623161287453232";
    /* Download Butt 234x60, created 5/14/09 */
    google_ad_slot = "0574420856";
    google_ad_width = 234;
    google_ad_height = 60;
    //-->
    </script>
    <script type="text/javascript"
    src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
    </script>
    ';
            document.getElementById("dl").innerHTML = tt;    
    }
    
    //-->
    </script>
    
    
        <div id="dl">&nbsp;<h3 style="font-size: 24pt;" id="zeit">dd</h3></div>
        
            <script type="text/javascript">
            <!--
                fc();
            //-->
            </script>
    in a part of my script I want to add google adsense code in "tt" variable
    but I get error when I add the google code into that .
    I think //--> in the google code makes problem.
    can you add the adsense code in the tt variable without any error?
    please help me.

    Regards
    Last edited by minusp; 05-15-2009 at 03:26 PM.


 

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •