[Slashdotjp-dev 895] [412] add feature: enable to send title for slashdot-it

アーカイブの一覧に戻る

svnno****@sourc***** svnno****@sourc*****
2008年 1月 11日 (金) 17:08:31 JST


Revision: 412
          http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=412
Author:   tach
Date:     2008-01-11 17:08:31 +0900 (Fri, 11 Jan 2008)

Log Message:
-----------
add feature: enable to send title for slashdot-it

Modified Paths:
--------------
    images/slashdot-it.js


-------------- next part --------------
Modified: images/slashdot-it.js
===================================================================
--- images/slashdot-it.js	2008-01-11 08:07:20 UTC (rev 411)
+++ images/slashdot-it.js	2008-01-11 08:08:31 UTC (rev 412)
@@ -2,13 +2,14 @@
   function() {
     var url = encodeURIComponent(window.slashdot_url || window.location.href);
     var sty = window.slashdot_badge_style || 'h0';
+    var title = encodeURIComponent(window.slashdot_title || document.title);
     var dx=130, dy=25;
     if ( sty[0]=='v' ) {
       dx=52;
       dy=80;
     }
     
-    var iframe = '<iframe src="http://slashdot.jp/slashdot-it.pl?style=' + sty + '&amp;url=' + url + '"' +
+    var iframe = '<iframe src="http://slashdot.jp/slashdot-it.pl?style=' + sty + '&amp;url=' + url + '&amp;title=' + title + '"' +
                   ' height="' + dy + '" width="' + dx + '" scrolling="no" frameborder="0"></iframe>'
     document.write(iframe);
   }


Slashdotjp-dev メーリングリストの案内
アーカイブの一覧に戻る