Skip to content

Instantly share code, notes, and snippets.

@amuhororo
Created April 24, 2016 11:45
Show Gist options
  • Save amuhororo/3b8b68e4cbd69bd7875ecb9cd66fccb2 to your computer and use it in GitHub Desktop.
Save amuhororo/3b8b68e4cbd69bd7875ecb9cd66fccb2 to your computer and use it in GitHub Desktop.
glyph改造メモ。[glyph]でもfix指定しなければインライン表示になるようにしたいな。
if(mp.line==null) mp.line = "nextpage.gif";
$("#glyph_image").remove();
var j_layer=TG.layer.getLayer("message0");
var j_next=$("<img id='glyph_image' />");
j_next.attr("src","./tyrano/images/kag/"+mp.line);
j_next.css("display","none");
if(mp.fix=="true"){
j_next.css("position","absolute");
j_next.css("top",mp.top+"px");
j_next.css("left",mp.left+"px");
j_next.css("z-index","99999");
j_layer.append(j_next);
}else{
j_layer.find(".message_inner").append(j_next);
j_layer.find(".message_inner p").css("display","inline");
}
TG.stat.flag_glyph="true";
TG.ftag.nextOrder();
$(j_next).click(function(){
$(".layer_event_click").click()
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment