标签:
左右30%--70%,点击左边的复选框,右边显示相应的反应。
main2.html
<html> <frameset cols="30%, 70%"> <frame id="leftfrm" src="left2.html"> <frame id="rightfrm" src="right2.html"> </frameset> </html>
left2.html
<html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <script> function myfunc() { parent.frames["rightfrm"].document.getElementById("rightnode").innerHTML = "hello*****************"; } </script> </head> <body> <input type="checkbox" name="checkbox" value="plyer1" onclick="myfunc()">tiger_roads </body> </html>
right2.html
<html> <body> <div id="rightnode">hi</div> </body> </html>
没点复选框之前
点之后
标签:
原文地址:http://www.cnblogs.com/kaituorensheng/p/4543812.html