Create  Edit  Diff  FrontPage  Index  Search  Changes  History  Source  RSS  Login

alpsroute.rb - History


  • Added words are showed as here.
  • Removed words are showed as here.
! 概要
[[ALPS Route|http://route.alpslab.jp/]]で作成したルートマップを日記に貼るプラグインです。

http://www.nofuture.tv/diary/20070122.html#p03

! 使い方
<%=alpsroute('routeid', 'width', 'height')%>
routeid: ルートid(必須)
width:   幅(省略時: 320px)
height:  高さ(省略時: 240px)


! 備考
[設定なし]

! その他
添付できないのでソースを貼っておきます。

# alpsroute.rb: $Revision: 1.3 1.4 $
# Copyright (c) 2007 NOGATA Jun <nogajun@gmail.com>
# Distributed under the GPL
def alpsroute( routeid = "" , width = 320, height = 240 )
    "<object codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0' width='#{width}' height='#{height}'class='alpsroute'>
        <param name='movie' value='http://route.alpslab.jp/fslide.swf'>
        <param name='flashvars' value='#{routeid}'>
        <embed src='http://route.alpslab.jp/fslide.swf' width='#{width}' height='#{height}' type='application/x-shockwave-flash' flashvars='routeid=#{routeid}'>
     </object>"
end
Last modified:2019/07/17 22:32:42
Keyword(s):
References: