Skip to content

Instantly share code, notes, and snippets.

@bsdmad
Last active December 19, 2015 21:39
Show Gist options
  • Save bsdmad/6021900 to your computer and use it in GitHub Desktop.
Save bsdmad/6021900 to your computer and use it in GitHub Desktop.
mouseOver した 特定 element の innerText に対して 1.05 倍して表示したい。良く分からん…
document.getElementsByClassName("attributes")[0].children[0].children[10].children[0].onmouseout = function() {this.innerHTML = '支払金額税抜:'};
document.getElementsByClassName("attributes")[0].children[0].children[10].children[0].onmouseover = function() {this.innerHTML = '税込金額は' + parseInt(parseInt(document.getElementsByClassName("attributes")[0].children[0].children[10].children[1].innerText.replace(/,/, '')) * 1.05) + '円'};
@bsdmad
Copy link
Author

bsdmad commented Jul 18, 2013

メチャクチャだけど、取り敢えず動いたw

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment