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