自动翻页
来源:互联网 发布:洗菜机是骗局 知乎 编辑:程序博客网 时间:2024/05/19 23:25
鼠标放到翻页的地方,自动翻页
<LINK href="1/css.css"
type=text/css rel=stylesheet>
<TABLE cellSpacing=0 cellPadding=5 width="95%" align=center
border=0>
<TBODY>
<TR>
<TD height=30>
<DIV class=style1 align=center>翻页效果</DIV></TD></TR>
<TR>
<TD class=unnamed1 vAlign=top height=420><IFRAME
border=0 name=demo marginWidth=0 marginHeight=0
src="1/show.htm"
frameBorder=no width=600 scrolling=no height=415
allowTransparency>浏览器不支持嵌入式框架,或被配置为不显示嵌入式框架。</IFRAME></TD></TR></TBODY></TABLE>
IFAME里面要用的文件
<LINK href="show.files/css.css" type=text/css rel=stylesheet>
<STYLE type=text/css>BODY {
MARGIN: 0px
}
</STYLE>
<META content="MSHTML 6.00.2900.3059" name=GENERATOR></HEAD>
<BODY style="BACKGROUND-COLOR: transparent">
<TABLE cellSpacing=0 cellPadding=0 width=300 border=0>
<TBODY>
<TR>
<TD>
<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
<TBODY>
<TR>
<TD align=middle>
<DIV align=center>
<CENTER>
<TABLE height=222 cellSpacing=1 cellPadding=5 width="100%"
border=0><TBODY>
<TR>
<TD style="WORD-BREAK: break-all">
<SCRIPT language=JavaScript1.2>
iens6=document.all||document.getElementById
ns4=document.layers
//specify speed of scroll (greater=faster)
var speed=6
if (iens6){
document.write('<div id="container" style="position:relative;width:600;height:370;border:0px solid black;overflow:hidden">')
document.write('<div id="content" style="position:absolute;width:590;left:0;top:0">')
}
</SCRIPT>
<ILAYER clip="0,0,500,160" height="400" width="600"
name="nscontainer"><LAYER height="370" width="600"
name="nscontent"
visibility="hidden"><div align="center">111111111111111111111111111111111222222222<br>2222222222222222222222222222222222222222222222<br>22222222222222222222222222222222222222222222222<br>222222222222222222222223333333547<br>8567fsdafsdafasdffwertgfghfdhgjhhdf<br>111111111111111111111111111111111222222222<br>2222222222222222222222222222222222222222222222<br>22222222222222222222222222222222222222222222222<br>222222222222222222222223333333547<br>8567fsdafsdafasdffwertgfghfdhgjhhdf<br>111111111111111111111111111111111222222222<br>2222222222222222222222222222222222222222222222<br>22222222222222222222222222222222222222222222222<br>222222222222222222222223333333547<br>8567fsdafsdafasdffwertgfghfdhgjhhdf<br>111111111111111111111111111111111222222222<br>2222222222222222222222222222222222222222222222<br>22222222222222222222222222222222222222222222222<br>222222222222222222222223333333547<br>8567fsdafsdafasdffwertgfghfdhgjhhdf<br>111111111111111111111111111111111222222222<br>2222222222222222222222222222222222222222222222<br>22222222222222222222222222222222222222222222222<br>222222222222222222222223333333547<br>8567fsdafsdafasdffwertgfghfdhgjhhdf<br>111111111111111111111111111111111222222222<br>2222222222222222222222222222222222222222222222<br>22222222222222222222222222222222222222222222222<br>222222222222222222222223333333547<br>8567fsdafsdafasdffwertgfghfdhgjhhdf<br>111111111111111111111111111111111222222222<br>2222222222222222222222222222222222222222222222<br>22222222222222222222222222222222222222222222222<br>222222222222222222222223333333547<br>8567fsdafsdafasdffwertgfghfdhgjhhdf<br>111111111111111111111111111111111222222222<br>2222222222222222222222222222222222222222222222<br>22222222222222222222222222222222222222222222222<br>222222222222222222222223333333547<br>8567fsdafsdafasdffwertgfghfdhgjhhdf<br>gsaqwetghdfzvshkhjlkkjsghghdfgtuyikk</div></LAYER></ILAYER>
<SCRIPT language=JavaScript1.2>
if (iens6)
document.write('</div></div>')
</SCRIPT>
<TABLE width="96%">
<TBODY>
<TR>
<TD>
<P align=right>|<A onmouseover=moveup()
onmouseout=clearTimeout(moveupvar)
href="#"> 向上
</A>|<A onmouseover=movedown()
onmouseout=clearTimeout(movedownvar)
href="#"> 向下
</A>|</P></TD></TR></TBODY></TABLE>
<SCRIPT language=JavaScript1.2>
if (iens6){
var crossobj=document.getElementById? document.getElementById("content") : document.all.content
var contentheight=crossobj.offsetHeight
}
else if (ns4){
var crossobj=document.nscontainer.document.nscontent
var contentheight=crossobj.clip.height
}
function movedown(){
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+100))
crossobj.style.top=parseInt(crossobj.style.top)-speed
else if (ns4&&crossobj.top>=(contentheight*(-1)+100))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",100)
}
function moveup(){
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",100)
}
function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height
</SCRIPT>
</TD></TR></TBODY></TABLE></CENTER></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></BODY></HTML>
- 自动翻页
- firefox自动翻页插件
- Gallery Fling翻页以及自动翻页
- 轮播图 自动翻页 (手动停止,翻页)
- (自定义View)自动翻页ViewPager
- jquery图片点击自动翻页实现
- Qt textEdit自动翻页功能实现
- extjs实现自动翻页的功能
- IOS:UIScrollView 自动滑动翻页功能
- UI_滚动视图自动翻页应用
- 实现自动翻页,并显示页数
- jQuery 自动翻页与数据同步
- 用js实现定时自动翻页
- 翻页
- 翻页
- 翻页
- 翻页
- 翻页
- VB与各数据库的几种连接方式
- 我的股票:2007/04/23 净值:1.5158
- 本周计划
- 用MSHFLEXGRID控件显示的数据导出到EXCEL
- 如何实现VB与EXCEL的无缝连接
- 自动翻页
- C#制作鼠标可以穿透的窗体
- 从硬盘安装Ubuntu失败
- 今天正式加入CSDN大家庭
- 我对各敏捷开发方法的大致理解
- 利用HOOK拦截封包原理
- API函数大全
- 经典SQL自定义函数
- SQL语句优化技术分析