登录123 | 账号: 密码: 今天是: 加入收藏 返回首页 

同城供应求购,商机就在身边 免费企业商铺,免费发布商机 关注商业资讯,把握商业机会 同城库存二手,晒出您的宝贝,淘进新的宝贝
全国企业黄页大全,加入即可得到推广
返回同城123首页
同城123信息网,最全最专业的同城分类信息网
同城生活贴吧,贴出生活的精彩 同城房屋租售,卖房、买房、租房、出租 同城招聘求职,优秀人才/高薪岗位等您来 同城婚恋交友,寻找你的TA
免费无极限,广告任意发
供应求购 免费商铺 商业资讯 库存二手 黄页大全 生活贴吧 房屋租售 招聘求职 婚恋交友 自助广告

可以通过点击上下箭头来控制上下滚动图像,并且可以改变图像的滚动方向
发布时间:2010/12/30 19:23:23 发布人:网络游民 点击:185

以下代码加入<head>区域 
<SCRIPT language=JavaScript>
<!--
//more javascript from http://Www.VeryAsp.Net
var downLayerId;
var dropDegree = 10;
var doDirect;
var DirectTerm = 6000;
var curDropIdx = 0;

function DirectDown()
{
clearInterval(doDirect);
clearInterval(downLayerId);


if (document.all["DropHit"].length == null)
{
//alert("");
//return false;
}else{
for(i = curDropIdx ;i < document.all["DropHit"].length + curDropIdx;i++)
{
document.all["DropHit"][i%document.all["DropHit"].length].style.posTop = document.all["DropHit"][i%document.all["DropHit"].length].style.posHeight * (-1*((i-curDropIdx)%document.all["DropHit"].length));
}

var temp = 'setInterval("DownLayer()",20)';
downLayerId = eval(temp);
direction = "down";
}
}

function DownLayer()
{
if(document.all["DropHit"][curDropIdx].style.posTop < document.all["DropHit"][curDropIdx].style.posHeight)
{
for(j = curDropIdx ;j < document.all["DropHit"].length + curDropIdx;j++)
{
document.all["DropHit"][j%document.all["DropHit"].length].style.posTop += dropDegree;
}
}
else
{
clearInterval(downLayerId);

for(j = curDropIdx ;j < document.all["DropHit"].length + curDropIdx;j++)
{
document.all["DropHit"][j%document.all["DropHit"].length].style.posTop = document.all["DropHit"][j%document.all["DropHit"].length].style.posHeight *((-1*((j-curDropIdx)%document.all["DropHit"].length))+1);
}
curDropIdx = (curDropIdx + 1) ;
curDropIdx = curDropIdx > document.all["DropHit"].length-1 ? curDropIdx%document.all["DropHit"].length:curDropIdx;
var temp = 'setInterval("DirectDown()",DirectTerm)';
doDirect = eval(temp);
}
}

function DirectUp()
{
clearInterval(doDirect);
clearInterval(downLayerId);
var tempIdx = 0;

if (document.all["DropHit"].length == null)
{
alert("????");
//return false;
}else{

for(i = 0;i<document.all["DropHit"].length;i++)
{
tempIdx = (document.all["DropHit"].length + curDropIdx - i) %document.all["DropHit"].length;

document.all["DropHit"][tempIdx].style.posTop = i*document.all["DropHit"][tempIdx].style.posHeight;

}

var temp = 'setInterval("UpLayer()",20)';
downLayerId = eval(temp);
direction = "up";

}
}

function UpLayer()
{
var tempIdx = 0;
if(document.all["DropHit"][curDropIdx].style.posTop < document.all["DropHit"][curDropIdx].style.posHeight && document.all["DropHit"][curDropIdx].style.posTop > document.all["DropHit"][curDropIdx].style.posHeight * (-1))
{
for(j = 0 ;j < document.all["DropHit"].length;j++)
{
tempIdx = (document.all["DropHit"].length + curDropIdx - j) %document.all["DropHit"].length;
document.all["DropHit"][tempIdx].style.posTop -= dropDegree;
}
}
else
{
clearInterval(downLayerId);
for(j = 0;j<document.all["DropHit"].length;j++)
{
tempIdx = (document.all["DropHit"].length + curDropIdx - j) % document.all["DropHit"].length;

document.all["DropHit"][tempIdx].style.posTop = (j-1)*(document.all["DropHit"][tempIdx].style.posHeight);
}
curDropIdx = (curDropIdx - 1) ;
curDropIdx = curDropIdx < 0 ? document.all["DropHit"].length-1:curDropIdx;
var temp = 'setInterval("DirectUp()",DirectTerm)';
doDirect = eval(temp);
}
}
-->
</SCRIPT>

以下代码加入<body>区域 

<TABLE cellSpacing=0 cellPadding=0 width=864 border=0>
        <TBODY>
        <TR>
          <TD width=843 height=224>
           <DIV
            style="LEFT: 0px; OVERFLOW: hidden; WIDTH: 843px; POSITION: relative; TOP: 0px; HEIGHT: 222px">
   <!--每一层滚动部分-->
            <DIV id=DropHit
            style="LEFT: 0px; VISIBILITY: visible; WIDTH: 864px; POSITION: absolute; TOP: 0px; HEIGHT: 220px">
            <TABLE cellSpacing=0 cellPadding=0 width=843 border=0>
              <TBODY>
              <TR>
                <TD align=middle width="20%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD height=157>
                        <DIV align=center><IMG
                        height=152
                        src="JSfiles/iframe2/1638637.jpg"
                        width=122 border=0></DIV></TD></TR>
                    <TR>
                      <TD height=67>
                        <DIV align=center>温岚热舞如电动马达</DIV></TD></TR></TBODY></TABLE></TD>
                <TD align=middle width="20%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD height=157>
                        <DIV align=center><IMG
                        height=152
                        src="JSfiles/iframe2/1638637.jpg"
                        width=122 border=0></DIV></TD></TR>
                    <TR>
                      <TD height=67>
                        <DIV align=center>温岚热舞如电动马达</DIV></TD></TR></TBODY></TABLE></TD>
                <TD align=middle width="20%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD height=157>
                        <DIV align=center><IMG
                        height=152
                        src="JSfiles/iframe2/1638637.jpg"
                        width=122 border=0></DIV></TD></TR>
                    <TR>
                      <TD height=67>
                        <DIV align=center>温岚热舞如电动马达</DIV></TD></TR></TBODY></TABLE></TD>
                <TD align=middle width="20%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD height=157>
                        <DIV align=center><IMG
                        height=152
                        src="JSfiles/iframe2/1638637.jpg"
                        width=122 border=0></DIV></TD></TR>
                    <TR>
                      <TD height=67>
                        <DIV align=center>温岚热舞如电动马达</DIV></TD></TR></TBODY></TABLE></TD>
                <TD align=middle width="20%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD height=157>
                        <DIV align=center><IMG
                        height=152
                        src="JSfiles/iframe2/1638637.jpg"
                        width=122 border=0></DIV></TD></TR>
                    <TR>
                      <TD height=67>
                        <DIV align=center>温岚热舞如电动马达</DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
      <!--结束-->
      <!--第二层滚动部分-->
      <DIV id=DropHit
            style="LEFT: 0px; VISIBILITY: visible; WIDTH: 864px; POSITION: absolute; TOP: 0px; HEIGHT: 220px">
            <TABLE cellSpacing=0 cellPadding=0 width=843 border=0>
              <TBODY>
              <TR>
                <TD align=middle width="20%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD height=157>
                        <DIV align=center><IMG
                        height=152
                        src="JSfiles/iframe2/1638636.jpg"
                        width=122 border=0></DIV></TD></TR>
                    <TR>
                      <TD height=67>
                        <DIV align=center>
                          <DIV align=center>
                            <DIV align=center><A  href="#" target=_blank>张柏芝为安徒生担模特</A></DIV>
                          </DIV>
                        </DIV></TD></TR></TBODY></TABLE></TD>
                <TD align=middle width="20%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD height=157>
                        <DIV align=center><IMG
                        height=152
                        src="JSfiles/iframe2/1638636.jpg"
                        width=122 border=0></DIV></TD></TR>
                    <TR>
                      <TD height=67>
                        <DIV align=center>
                          <DIV align=center>
                            <DIV align=center><A  href="#" target=_blank>张柏芝为安徒生担模特</A></DIV>
                          </DIV>
                        </DIV></TD></TR></TBODY></TABLE></TD>
                <TD align=middle width="20%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD height=157>
                        <DIV align=center><IMG
                        height=152
                        src="JSfiles/iframe2/1638636.jpg"
                        width=122 border=0></DIV></TD></TR>
                    <TR>
                      <TD height=67>
                        <DIV align=center>
                          <DIV align=center>
                            <DIV align=center><A  href="#" target=_blank>张柏芝为安徒生担模特</A></DIV>
                          </DIV>
                        </DIV></TD></TR></TBODY></TABLE></TD>
                <TD align=middle width="20%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD height=157>
                        <DIV align=center><IMG
                        height=152
                        src="JSfiles/iframe2/1638636.jpg"
                        width=122 border=0></DIV></TD></TR>
                    <TR>
                      <TD height=67>
                        <DIV align=center>
                          <DIV align=center>
                            <DIV align=center><A  href="#" target=_blank>张柏芝为安徒生担模特</A></DIV>
                          </DIV>
                        </DIV></TD></TR></TBODY></TABLE></TD>
                <TD align=middle width="20%">
                  <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
                    <TBODY>
                    <TR>
                      <TD height=157>
                        <DIV align=center><IMG
                        height=152
                        src="JSfiles/iframe2/1638636.jpg"
                        width=122 border=0></DIV></TD></TR>
                    <TR>
                      <TD height=67>
                        <DIV align=center>
                          <DIV align=center>
                            <DIV align=center><A  href="#" target=_blank>张柏芝为安徒生担模特</A></DIV>
                          </DIV>
                        </DIV></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE></DIV>
      <!--结束-->
      </DIV>
      
      </TD>
          <TD vAlign=top>
            <TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
              <TBODY>
              <TR>
                <TD><IMG height=24 src="JSfiles/best_b1.gif"
                  width=21></TD></TR>
              <TR>
                <TD><A href="javascript:DirectUp()"><IMG height=34
                  src="JSfiles/best_btn_up.gif" width=21
                  border=0></A></TD></TR>
              <TR>
                <TD><IMG height=108 src="JSfiles/best_b2.gif"
                  width=21></TD></TR>
              <TR>
                <TD><A href="javascript:DirectDown()"><IMG height=34
                  src="JSfiles/best_btn_down.gif" width=21
                  border=0></A></TD></TR>
              <TR>
                <TD><IMG height=24 src="JSfiles//best_b3.gif"
                  width=21></TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<SCRIPT language=JavaScript>
//直接调用
DirectDown();
 
</SCRIPT>

 

回复此帖
123发布网广告位【218】 123发布网广告位【219】
 ※ 发布回复   ↓请遵循123发布网同城生活贴吧/论坛发帖规则;↓寻一夜情、包养、招嫖类信息的一律全部删除,并报公安备案↓  
回复标题:  
回复内容:
上传图片:
验 证 码:  

123发布网广告位【220】 123发布网广告位【221】
网站首页 | 关于我们 | 广告业务 | 关于VIP | 免责声明 | 联系我们 | 设为首页 | 加入收藏 | 意见反馈 | 网站建设
123发布网 版权所有 www.123fbw.com  联系电话:18331151646  QQ:1016964448
 CopyRight © 2007-2016 All Right Reserved  联系站长  津ICP备10002728号  统计: