$(function(){ $("#counter").html("\"気に入った記事なら押してクポー\" 3 kupo / 4826 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/664e4409f283a2b85182fbe5317ddb1b/article/1916?958605590599" scriptTag.charset = "UTF-8"; document.getElementsByTagName("head")[0].appendChild(scriptTag); }, 0); return false; }); });