$(function(){ $("#counter").html("\"気に入った記事なら押してクポー\" 2 kupo / 955 view"); $("#star").click(function(){ setTimeout(function(){ var scriptTag = document.createElement("script"); scriptTag.type = "text/javascript"; scriptTag.src = "https://wiki.ffo.jp:8017/counter.yaws/s/50d4c005333f628f11b4f844474b6007/article/12586?380701251575" scriptTag.charset = "UTF-8"; document.getElementsByTagName("head")[0].appendChild(scriptTag); }, 0); return false; }); });