http://q.hatena.ne.jp/1285591626
矢印がでないようにするには、どうしたらいいでしょうか?以下がやりたいことになります。
●項目、サブ項目ともに矢印がでないようにするには。
●項目矢印無し、サブ項目矢印有り。
●項目矢印有り、サブ項目矢印無し。
CSSではなく、ddsmoothmenu.jsを編集します。
・項目、サブ項目ともに矢印がでないようにする
66行目から5行分を次のようにコメントアウトするか削除します。
// $curobj.children("a:eq(0)").css(this.istopheader? {paddingRight: smoothmenu.arrowimages.down[2]} : {}).append( //add arrow images // '<img src="'+ (this.istopheader && setting.orientation!='v'? smoothmenu.arrowimages.down[1] : smoothmenu.arrowimages.right[1]) // +'" class="' + (this.istopheader && setting.orientation!='v'? smoothmenu.arrowimages.down[0] : smoothmenu.arrowimages.right[0]) // + '" style="border:0;" />' // )
・項目矢印無し、サブ項目矢印有り。
66行目から5行分を次のように変更します。
if (! this.istopheader) { $curobj.children("a:eq(0)").append( //add arrow images '<img src="'+ smoothmenu.arrowimages.right[1] +'" class="' + smoothmenu.arrowimages.right[0] + '" style="border:0;" />' )}
・項目矢印有り、サブ項目矢印無し。
66行目から5行分を次のように変更します。
if (this.istopheader) { $curobj.children("a:eq(0)").css(this.istopheader? {paddingRight: smoothmenu.arrowimages.down[2]} : {}).append( //add arrow images '<img src="'+ (this.istopheader && setting.orientation!='v'? smoothmenu.arrowimages.down[1] : smoothmenu.arrowimages.right[1]) +'" class="' + (this.istopheader && setting.orientation!='v'? smoothmenu.arrowimages.down[0] : smoothmenu.arrowimages.right[0]) + '" style="border:0;" />' )}
ご回答ありがとうございます!!