Advertisements on the D site

Jacob Carlborg doob at me.com
Mon Dec 9 00:19:48 PST 2013


On 2013-12-09 05:54, ed wrote:

> In the sources for that page there is this...
> ---
> [snip]
>
> <div id="google_ad">
> <!-- Google ad -->
> <script type="text/javascript"><!--
> /**/google_ad_client = "pub-5628673096434613";
> /**/google_ad_width = 728;
> /**/google_ad_height = 90;
> /**/google_ad_format = "728x90_as";
> /**/google_ad_channel ="3651639259";
> /**/google_page_url = document.location;
> //--></script>
> <script type="text/javascript"
> src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
> </script>
> </div>
> </div><!--/content-->
>
> [snip]
> ---
>
> But it appears the ad parameters are commented out with a <!-- .. --> so
> I don't know why it appears for you and not me.

They're not commented out.

Comment starts and ends here:
<!-- Google ad -->

Comment starts here, but inside the JavaScript block. I have no idea how 
browsers handle this:
<script type="text/javascript"><!--

JavaScript comment starts and ends here:
/**/google_ad_client = "pub-5628673096434613";

Comment ends here, but inside the JavaScript block and commented out 
using JavaScript:
//--></script>

Comment starts and ends here:
<!--/content-->

-- 
/Jacob Carlborg


More information about the Digitalmars-d mailing list