svnno****@sourc*****
svnno****@sourc*****
2007年 12月 22日 (土) 06:45:14 JST
Revision: 340 http://svn.sourceforge.jp/cgi-bin/viewcvs.cgi?root=slashdotjp&view=rev&rev=340 Author: tach Date: 2007-12-22 06:45:13 +0900 (Sat, 22 Dec 2007) Log Message: ----------- add slashdot-it javascript Added Paths: ----------- images/slashdot-it.js -------------- next part -------------- Added: images/slashdot-it.js =================================================================== --- images/slashdot-it.js 2007-12-21 21:29:02 UTC (rev 339) +++ images/slashdot-it.js 2007-12-21 21:45:13 UTC (rev 340) @@ -0,0 +1,15 @@ +( + function() { + var url = encodeURIComponent(window.slashdot_url || window.location.href); + var sty = window.slashdot_badge_style || 'h0'; + 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 + '&url=' + url + '"' + + ' height="' + dy + '" width="' + dx + '" scrolling="no" frameborder="0"></iframe>' + document.write(iframe); + } +)()