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