在某范围内的内容(包括图片、文字)…
2016-06-02 12:56
232 查看
<table width="100%" border="0"
cellpadding="4" cellspacing="1"
bgcolor="B6B191">
<tr>
<td bgcolor="FFFDE8"
class="p12h">
<table width="140" border="0" cellspacing="0"
align="center">
<tr><td>
<div id="article1"
style="width:140;">
<TABLE cellSpacing="0" cellPadding="0" width="140"
border="0">
<tr><td height=67
align=center><a
href=http://www.alixixi.com
target=_blank><img
src=http://img.alixixi.com/mylogo1.gif width=110 height=60
border=0></a></td></tr><tr><td
height=67 align=center><a
href=http://www.alixixi.com
target=_blank><img
src=http://img.alixixi.com/mylogo1.gif width=110 height=60
border=0></a></td></tr><tr><td
height=67 align=center><a
href=http://www.alixixi.com
target=_blank><img
src=http://img.alixixi.com/mylogo1.gif width=110 height=60
border=0></a></td></tr><tr><td
height=67 align=center><a
href=http://www.alixixi.com
target=_blank><img
src=http://img.alixixi.com/mylogo1.gif width=110 height=60
border=0></a></td></tr><tr><td
height=67 align=center><a
href=http://www.alixixi.com
target=_blank><img
src=http://img.alixixi.com/mylogo1.gif width=110 height=60
border=0></a></td></tr><tr><td
height=67 align=center><a
href=http://www.alixixi.com
target=_blank><img
src=http://img.alixixi.com/mylogo1.gif width=110 height=60
border=0></a></td></tr><tr><td
height=67 align=center><a
href=http://www.alixixi.com
target=_blank><img
src=http://img.alixixi.com/mylogo1.gif width=110 height=60
border=0></a></td></tr>
</TABLE>
</div>
<div id="article2"
style="position:absolute;z-index:1;visibility:hidden"></div>
</td></tr>
</table>
<script>
articleHeight=134;
stopscrolla=false;
article1.scrollTop=0;
//more javascript from http://www.alixixi.com
with(article1){
style.width=0;
style.height=articleHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new
Function("stopscrolla=true");
onmouseout=new
Function("stopscrolla=false");
}
preTopa=0; currentTopa=0; stoptimea=0;
function init_srolltext1(){
article2.innerHTML="";
article2.innerHTML+=article1.innerHTML;
article1.innerHTML=article2.innerHTML+article2.innerHTML;
setInterval("scrollUp1()",50);
}
function scrollUp1(){
if(stopscrolla==true) return;
currentTopa+=1;
if(currentTopa==68)
{
stoptimea+=1;
currentTopa-=1;
if(stoptimea==50)
{
currentTopa=0;
stoptimea=0;
}
}
else {
preTopa=article1.scrollTop;
article1.scrollTop+=1;
if(preTopa==article1.scrollTop){
article1.scrollTop=article2.offsetHeight-articleHeight;
article1.scrollTop+=1;
}
}
}
init_srolltext1();
</script>
cellpadding="4" cellspacing="1"
bgcolor="B6B191">
<tr>
<td bgcolor="FFFDE8"
class="p12h">
<table width="140" border="0" cellspacing="0"
align="center">
<tr><td>
<div id="article1"
style="width:140;">
<TABLE cellSpacing="0" cellPadding="0" width="140"
border="0">
<tr><td height=67
align=center><a
href=http://www.alixixi.com
target=_blank><img
src=http://img.alixixi.com/mylogo1.gif width=110 height=60
border=0></a></td></tr><tr><td
height=67 align=center><a
href=http://www.alixixi.com
target=_blank><img
src=http://img.alixixi.com/mylogo1.gif width=110 height=60
border=0></a></td></tr><tr><td
height=67 align=center><a
href=http://www.alixixi.com
target=_blank><img
src=http://img.alixixi.com/mylogo1.gif width=110 height=60
border=0></a></td></tr><tr><td
height=67 align=center><a
href=http://www.alixixi.com
target=_blank><img
src=http://img.alixixi.com/mylogo1.gif width=110 height=60
border=0></a></td></tr><tr><td
height=67 align=center><a
href=http://www.alixixi.com
target=_blank><img
src=http://img.alixixi.com/mylogo1.gif width=110 height=60
border=0></a></td></tr><tr><td
height=67 align=center><a
href=http://www.alixixi.com
target=_blank><img
src=http://img.alixixi.com/mylogo1.gif width=110 height=60
border=0></a></td></tr><tr><td
height=67 align=center><a
href=http://www.alixixi.com
target=_blank><img
src=http://img.alixixi.com/mylogo1.gif width=110 height=60
border=0></a></td></tr>
</TABLE>
</div>
<div id="article2"
style="position:absolute;z-index:1;visibility:hidden"></div>
</td></tr>
</table>
<script>
articleHeight=134;
stopscrolla=false;
article1.scrollTop=0;
//more javascript from http://www.alixixi.com
with(article1){
style.width=0;
style.height=articleHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new
Function("stopscrolla=true");
onmouseout=new
Function("stopscrolla=false");
}
preTopa=0; currentTopa=0; stoptimea=0;
function init_srolltext1(){
article2.innerHTML="";
article2.innerHTML+=article1.innerHTML;
article1.innerHTML=article2.innerHTML+article2.innerHTML;
setInterval("scrollUp1()",50);
}
function scrollUp1(){
if(stopscrolla==true) return;
currentTopa+=1;
if(currentTopa==68)
{
stoptimea+=1;
currentTopa-=1;
if(stoptimea==50)
{
currentTopa=0;
stoptimea=0;
}
}
else {
preTopa=article1.scrollTop;
article1.scrollTop+=1;
if(preTopa==article1.scrollTop){
article1.scrollTop=article2.offsetHeight-articleHeight;
article1.scrollTop+=1;
}
}
}
init_srolltext1();
</script>
相关文章推荐
- 取标题多少字数,多出加上省略号
- 一个去掉HTML格式的ASP函数
- 图片多方向滚动控制效果
- Illustrator制作透明质感立体方块…
- 二级收缩菜单,点击出现二级菜单
- 跳转菜单如何实现新窗口打开连接
- 网页简体转繁体的JS代码
- Photoshop制作超酷的金属立体字
- KVO实现原理
- photoshop切片输出gif出现白边
- 二行代码解决全部网页木马
- 一行代码解决iframe挂马
- 一行代码解决iframe挂马
- 横式标签式按纽(鼠标移过,不同的…
- sql的安装问题_以前的某个程序安装…
- 如何将“新建记事本”添加到“右键快…
- "点击返回上一页"的代码
- 点击超连接弹出确认信息
- PS快速完美去除图片中的水印
- 菜单 鼠标移过中文文字变英文字母