kamean 2004-05-06 09:25:00
<iframe>中我不想用滚动条,而想用两个按钮代替,用滚动条看起来不美观
当鼠标移到按钮上面的时候 <iframe>里面的内容就缓慢滚动 当点下左键的时候就快一点滚动
请各位大虾指点一下 谢谢了
...全文
164 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
stanleycheung 2004-05-10
  • 打赏
  • 举报
回复
结贴。。。
kamean 2004-05-09
  • 打赏
  • 举报
回复
谢谢 谢谢你了!!!
stanleycheung 2004-05-08
  • 打赏
  • 举报
回复
够用了,慢慢研究
有两处图片链接,换成自己合适的
一个图片为向上(加速),一个图片为向下(加速)

以下代码放在head区
<script language="JavaScript">
function movstar(a,time){
movx=setInterval("mov("+a+")",10)
}
function movover(){
clearInterval(movx)
}
function mov(a){
scrollx=new_date.document.body.scrollLeft
scrolly=new_date.document.body.scrollTop
scrolly=scrolly+a
new_date.window.scroll(scrollx,scrolly)
}
function o_down(theobject){
object=theobject
while(object.filters.alpha.opacity>60){
object.filters.alpha.opacity+=-10}
}
function o_up(theobject){
object=theobject
while(object.filters.alpha.opacity<100){
object.filters.alpha.opacity+=10}
}
function wback(){
if(new_date.history.length==0){window.history.back()}
else{new_date.history.back()}
}
</script>

以下代码放在body区适当的位置
<table width="412" border="0" cellspacing="0" height="145">
<tr>
<td width="398" height="242" style="border: 1 solid #737373">
<div align="center">
<iframe border=0 frameborder=0 framespacing=0 height=100% marginheight=0
marginwidth=0 name=new_date noResize scrolling=no src="p_time/Untitled.htm" width=100% vspale="0"></iframe>
</div>
</td>
<td height="242" width="9">
<div align="center">
<a href="javascript:void(0)"><img src="img/up.gif" width="15" height="25" class=opacity onMouseDown=movover();movstar(-3,2) onMouseOut=movover();o_up(this) onMouseOver=movstar(-1,20);o_down(this) onMouseUp=movover();movstar(-1,20) border=0>
</div>
<div align="center">
<a href="javascript:void(0)"><img src="img/down.gif" width="15" height="25" class=opacity onMouseDown=movover();movstar(3,2) onMouseOut=movover();o_up(this) onMouseOver=movstar(1,20);o_down(this) onMouseUp=movover();movstar(1,20) border=0>
</div>
</td>
</tr>
</table>
kamean 2004-05-06
  • 打赏
  • 举报
回复
不是
我是说用两个图片来做按钮
我知道怎么不用滚动条 但是我想要的效果是用两个按钮
leeeel 2004-05-06
  • 打赏
  • 举报
回复
<body scroll=no
threezxw 2004-05-06
  • 打赏
  • 举报
回复
关注!!!

61,120

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧