1
Code:

<div id="an_hien_10" style="display: none;">
 Nội dung-Có cả mã html
</div>
<button onclick="if(document.getElementById('an_hien_10') .style.display=='none') {document.getElementById('an_hien_10') .style.display=''}else{document.getElementById('an_hien_10') .style.display='none'}" title="Nhấn để xem/Ẩn đi" type="button">AO-4f5d5s6p</button>
-----------

<!DOCTYPE html>
<html>
<body>

<p>Click the button to open a new window called "MsgWindow" with some text.</p>

<button onclick="myFunction()">Try it</button>

<script>
function myFunction() {
    var myWindow = window.open("", "MsgWindow", "width=1000, height=500, top=50, left=100");
    myWindow.document.write("<p>This is 'MsgWindow'. I am 200px wide and 100px tall!</p>");
}
</script>

</body>
</html>

-------------



<!DOCTYPE html>
<html>
<head>

</head>
<body>
<form>
<div id="an_hien_2" style="display: none;">
 <input type="radio" name="O_2s2p" value="1.7">2s<sup>1</sup>
<input type="radio" name="O_2s2p" value="2.05">2s<sup>2</sup>
<input type="radio" name="O_2s2p" value="2.4">2s<sup>2</sup>2p<sup>1</sup>
<input type="radio" name="O_2s2p" value="2.75">2s<sup>2</sup>2p<sup>2</sup>
<input type="radio" name="O_2s2p" value="3.1">2s<sup>2</sup>2p<sup>3</sup>
<input type="radio" name="O_2s2p" value="3.45">2s<sup>2</sup>2p<sup>4</sup>
<input type="radio" name="O_2s2p" value="3.8">2s<sup>2</sup>2p<sup>5</sup>
<input type="radio" name="O_2s2p" value="4.15">2s<sup>2</sup>2p<sup>6</sup>
</div>
<button onclick="if(document.getElementById('an_hien_2') .style.display=='none') {document.getElementById('an_hien_2') .style.display=''}else{document.getElementById('an_hien_2') .style.display='none'}" title="Nhấn để xem/Ẩn đi" type="button">AO-2s2p</button></form>
<script>
function myFunction() {
    var O_2s2p= document.forms[0];
    var txt = "";
    var i;
    for (i = 0; i < O_2s2p.length; i++) {
        if (O_2s2p[i].checked) {
            txt = txt + O_2s2p[i].value + " ";
        }
    }
    document.getElementById("xem123").innerHTML= "Gia trị " + txt;
}
</script>

<button onclick="myFunction()" >Xem</button>
<p id="xem123"></p>

</body>
</html>

-------------











Đăng nhận xét

 
Top