Last active
December 19, 2015 21:39
-
-
Save bsdmad/6021900 to your computer and use it in GitHub Desktop.
mouseOver した 特定 element の innerText に対して 1.05 倍して表示したい。良く分からん…
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) + '円'}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
メチャクチャだけど、取り敢えず動いたw