[aquaskk-changes 606] CVS update: htdocs

Back to archive index

t-suw****@users***** t-suw****@users*****
2009年 11月 5日 (木) 23:09:24 JST


Index: htdocs/footer.js
diff -u htdocs/footer.js:1.2 htdocs/footer.js:1.3
--- htdocs/footer.js:1.2	Thu Nov  5 22:43:58 2009
+++ htdocs/footer.js	Thu Nov  5 23:09:24 2009
@@ -1,4 +1,4 @@
-/* $Id: footer.js,v 1.2 2009/11/05 13:43:58 t-suwa Exp $ */
+/* $Id: footer.js,v 1.3 2009/11/05 14:09:24 t-suwa Exp $ */
 
 document.open();
 document.writeln('<div class="footer">');
@@ -15,13 +15,16 @@
 document.writeln('</div>');
 
 var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
-document.write(unescape("%3Cscript src='"
-                        + gaJsHost
-                        + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
-try {
-    var pageTracker = _gat._getTracker("UA-3237761-1");
-pageTracker._trackPageview();
-} catch(err) {
-}
+var s = document.createElement('script');
+s.src = gaJsHost + 'google-analytics.com/ga.js';
+s.type = 'text/javascript';
+document.body.appendChild(s);
+
+document.writeln('<script type="text/javascript">');
+document.writeln('try {');
+document.writeln('    var pageTracker = _gat._getTracker("UA-3237761-1");');
+document.writeln('    pageTracker._trackPageview();');
+document.writeln('} catch(err) {}');
+document.writeln('</script>');
 
 document.close();



aquaskk-changes メーリングリストの案内
Back to archive index