框架无滚动条的javascript脚本
2015-04-01 16:04
127 查看
框架无滚动条的javascript脚本
主要是通过修改scrolling来去除iframe的滚动条
代码比较简单
<!DOCTYPE html>
<html>
<head>
<script>
function removeScroll()
{ document.getElementById("myframe").scrolling="no"; }
</script>
</head>
<body>
<iframe id="myframe" src="/default.asp" scrolling="auto"> <p>Your browser does not support iframes.</p> </iframe> <p>The value of the scrolling attribute is: <script>
document.write(document.getElementById("myframe").scrolling); </script>
<p>
<input type="button" value="Remove Scrollbars"> <p>Internet Explorer, Google Chrome, Opera, and Safari have problems with setting the scrolling attribute.</p>
</body>
</html>
主要是通过修改scrolling来去除iframe的滚动条
代码比较简单
<!DOCTYPE html>
<html>
<head>
<script>
function removeScroll()
{ document.getElementById("myframe").scrolling="no"; }
</script>
</head>
<body>
<iframe id="myframe" src="/default.asp" scrolling="auto"> <p>Your browser does not support iframes.</p> </iframe> <p>The value of the scrolling attribute is: <script>
document.write(document.getElementById("myframe").scrolling); </script>
<p>
<input type="button" value="Remove Scrollbars"> <p>Internet Explorer, Google Chrome, Opera, and Safari have problems with setting the scrolling attribute.</p>
</body>
</html>
相关文章推荐
- [Javascript]JS当前页面和框架自动刷新的方法[脚本代码大全]
- javascript 添加表单脚本 利用了bootstrap 框架美化
- [Javascript]JS当前页面和框架自动刷新的方法[脚本代码大全]
- 页面内容随滚动条滚动动态载入JavaScript脚本。
- 框架页面高度自动刷新Javascript脚本
- 框架页面高度自动刷新的Javascript脚本
- javascript 在没有找到何时的脚本管理框架前, 使用如下方式在页面上使用脚本
- 网页分块无框架隐藏(javascript脚本)
- 框架页面高度自动刷新Javascript脚本
- 推荐9款不错的绘制图表JavaScript框架脚本
- 使用do 框架进行javascript无阻塞加载脚本
- 推荐9款很棒的网页绘制图表JavaScript框架脚本
- 框架页面高度自动刷新Javascript脚本
- 让你的iOS应用程序支持运行JavaScript脚本:JavaScriptCore框架详解
- javascript 隐藏框架和远程脚本
- 框架页面高度自动刷新的Javascript脚本
- 推荐9款很棒的网页绘制图表JavaScript框架脚本
- 关于Javascript脚本单元测试框架
- JavaScript运动框架大集结---拥有JavaScript完美运动框架你将制作任意基于web2.0网页动画
- 站内搜索脚本例子六(JavaScript)