type=text/css rel=stylesheet>    <TABLE cellSpacing=0 cellPadding=5 width="95%" align=center
   ">

自动翻页

80酷酷网    80kuku.com

  翻页

鼠标放到翻页的地方,自动翻页

<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 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 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" solid black;overflow:hidden">')
document.write('<div id="content" <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
2222222222222222222222222222222222222222222222
22222222222222222222222222222222222222222222222
222222222222222222222223333333547
8567fsdafsdafasdffwertgfghfdhgjhhdf
111111111111111111111111111111111222222222
2222222222222222222222222222222222222222222222
22222222222222222222222222222222222222222222222
222222222222222222222223333333547
8567fsdafsdafasdffwertgfghfdhgjhhdf
111111111111111111111111111111111222222222
2222222222222222222222222222222222222222222222
22222222222222222222222222222222222222222222222
222222222222222222222223333333547
8567fsdafsdafasdffwertgfghfdhgjhhdf
111111111111111111111111111111111222222222
2222222222222222222222222222222222222222222222
22222222222222222222222222222222222222222222222
222222222222222222222223333333547
8567fsdafsdafasdffwertgfghfdhgjhhdf
111111111111111111111111111111111222222222
2222222222222222222222222222222222222222222222
22222222222222222222222222222222222222222222222
222222222222222222222223333333547
8567fsdafsdafasdffwertgfghfdhgjhhdf
111111111111111111111111111111111222222222
2222222222222222222222222222222222222222222222
22222222222222222222222222222222222222222222222
222222222222222222222223333333547
8567fsdafsdafasdffwertgfghfdhgjhhdf
111111111111111111111111111111111222222222
2222222222222222222222222222222222222222222222
22222222222222222222222222222222222222222222222
222222222222222222222223333333547
8567fsdafsdafasdffwertgfghfdhgjhhdf
111111111111111111111111111111111222222222
2222222222222222222222222222222222222222222222
22222222222222222222222222222222222222222222222
222222222222222222222223333333547
8567fsdafsdafasdffwertgfghfdhgjhhdf
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"
}
var webSiteID = 6;window.onload=getcontent_height
</SCRIPT>
                </TD></TR></TBODY></TABLE></CENTER></DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></BODY></HTML>



分享到
  • 微信分享
  • 新浪微博
  • QQ好友
  • QQ空间
点击: