5,951
edits
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
<script> | <script> | ||
function toggleReferences() { | function toggleReferences() { | ||
/* var x = document.getElementById("sup"); | |||
if (x.style.display === "none") { | if (x.style.display === "none") { | ||
x.style.display = "inline"; | x.style.display = "inline"; | ||
} else { | } else { | ||
x.style.display = "none"; | x.style.display = "none"; | ||
} | }*/ | ||
var x = document.getElementById("myDIV"); | |||
var y = x.getElementsByClassName("reference"); | |||
var i; | |||
for (i = 0; i < y.length; i++) { | |||
y[i].style.backgroundColor = "red"; | |||
} | |||
} | } | ||
</script> | </script> | ||
Line 17: | Line 23: | ||
</html> | </html> | ||
<div id="myDIV" style="background: tomato; height: 30px;"> | <div id="myDIV" style="background: tomato; height: 30px;"> | ||
Example text<ref>aaa</ref> more example text<ref>aaa</ref> | Example text<ref>aaa</ref> more example text<ref>aaa</ref> | ||
</div> |