电脑爱好者,提供IT资讯信息及各类编程知识文章介绍,欢迎大家来本站学习电脑知识。 最近更新 | 联系我们 RSS订阅本站最新文章
电脑爱好者
站内搜索: 
当前位置:首页>> Javascript>>用文字或图片控制marpuee上下滚动文字:

用文字或图片控制marpuee上下滚动文字

来源:远方网络 | 2006-1-5 10:23:30 | (有3863人读过)


<SCRIPT language=JavaScript>
<!--
function out(dir)
{
scrolltext.trueSpeed = true;
scrolltext.direction =dir;
scrolltext.scrollAmount=1;
scrolltext.scrollDelay=50;
scrolltext.stop();
scrolltext.start();
}

function scroll(dir,speed)
{
scrolltext.trueSpeed = true;
scrolltext.direction = dir;
scrolltext.scrollAmount=1;
scrolltext.scrollDelay=speed;
scrolltext.stop();
scrolltext.start();
}

function MM_jumpMenu(targ,selObj,restore){ //v3.0
eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
if (restore) selObj.selectedIndex=0;
}
//-->
</SCRIPT>
<center>
<table cellspacing=1 cellpadding=0 width=300 border=0 bordercolor="#333333" bgcolor="#999999">
<tbody>
<tr>
<td valign=center width=143 rowspan=4 bgcolor="#FFFFFF">
<marquee id=scrolltext onMouseOver=this.stop() onMouseOut=this.start() scrollamount=1 scrolldelay=60 direction=up width=146 height=140 name="scrolltext">
<font size="2">·<a href="#" target="_blank">
<font color="#FF0000">11111111111</font></a><br>
·<a href="#" target="_blank"><font color="#FF0000">22222222222</font></a><br>
·<a href="#" target="_blank">33333333333</a><br>
·<a href="#" target="_blank">44444444444</a><br>
·<a href="#" target="_blank">55555555555</a><br>
·<a href="#" target="_blank">66666666666</a><br>
·<a href="#">77777777777</a><br>
·<a href="#" target="_blank">88888888888</a><br>
·<a href="#" target="_blank">99999999999</a></font><br>
</marquee></td>
<td valign=center width=10 bgcolor="#FFFFFF"><a onMouseOver="scroll('down',40)"

onMouseOut="out('up')" href="javascript:;"><font size="2">向下</font></a></td>
</tr>
<tr>
<td valign=center height="120" width="10" bgcolor="#FFFFFF"></td>
</tr>
<tr>
<td valign=center width=10 bgcolor="#FFFFFF"><a onMouseOver="scroll('up',40)" onMouseOut="out('up')" href="javascript:;"><font size="2">向上</font></a></td>
</tr>
<tr>
<td valign=center width="10"></td>
</tr>
</tbody>
</table>


<script>var speed=3;</script>
<img src="http://www.blueidea.com/bbs/icon/icon17.gif" onmousedown="speed=10" onmouseup="speed=3" onmouseover="ifrscroll=setInterval('ifr.scrollBy(0,speed)',1)" onmouseout=clearInterval(ifrscroll)><br>
<img src="http://www.blueidea.com/bbs/icon/icon16.gif" onmousedown="speed=10" onmouseup="speed=3" onmouseover="ifrscroll=setInterval('ifr.scrollBy(0,-speed)',1)" onmouseout=clearInterval(ifrscroll)>
<iframe id=ifr scrolling=no src="http://www.blueidea.com/bbs/"></iframe>


Javascript热门文章排行
网站赞助商
购买此位置

 

关于我们 | 网站地图 | 文档一览 | 友情链接| 联系我们

Copyright © 2003-2024 电脑爱好者 版权所有 备案号:鲁ICP备09059398号