文件名称:js 多种方法
文件大小:30KB
文件格式:TXT
更新时间:2015-08-03 03:01:44
js 大全
是否显示滚动条 <html> <frameset id="myFrameset" cols="50%,50%"> <frame id="leftFrame" src="frame_a_scrolling.htm"> <frame id="rightFrame" src="frame_a.htm"> </frameset> </html> <html> <head> [removed] function enableScrolling() { parent.document.getElementById("leftFrame").scrolling="yes" parent.document.getElementById("rightFrame").scrolling="yes" } function disableScrolling() { parent.document.getElementById("leftFrame").scrolling="no" parent.document.getElementById("rightFrame").scrolling="no" } [removed] </head> <body bgcolor="#EFE7D6"> <form> <input type="button" value="Scroll bars"> <input type="button" value="No scroll bars"> </form>
Right-click inside the frames and select "View Source" to see the source code.
</body> </html>