站点首页 | 实用文章 | 考试相关 | 论文中心 | 故事小说 | 教程中心
热门文章
搜索
您现在的位置: hglm >> 教程中心 >> 网页制作 >> Javascript >> 教程正文
JavaScript特效源代码 - 文本滚动菜单

在网页的<BODY></BODY>中
加入下面的代码:

<script language=javascript>
<!--
var index = 9
link = new Array(8);
text = new Array(8);

link[0] ='http://www.51step.net/index.html'
link[1] ='http://www.51step.net/index.html'
link[2] ='http://www.51step.net/index.html'
link[3] ='http://www.51step.net/index.html'
link[4] ='http://www.51step.net/index.html'
link[5] ='http://www.51step.net/index.html'
link[6] ='http://www.51step.net/index.html'
link[7] ='http://www.51step.net/index.html'
link[8] ='http://www.51step.net/index.html'


text[0] ='我要起步网(0)'
text[1] ='我要起步网(1)'
text[2] ='我要起步网(2)'
text[3] ='我要起步网(3)'
text[4] ='我要起步网(4)'
text[5] ='我要起步网(5)'
text[6] ='我要起步网(6)'
text[7] ='我要起步网(7)'
text[8] ='我要起步网(8)'

document.write ("<marquee scrollamount='1' scrolldelay='100' direction= 'up' width='150' height='150'>");

for (i=0;i<index;i++){
document.write ("&nbsp;<img src='images/webnew.gif' width='12' height='12'><a href="+link[i]+" target='_blank'>");
document.write (text[i] + "</A><br>");
}
document.write ("</marquee>")
// -->
</script>

Copyright(c) hglm.com All rights reserved. 浙ICP备06001730号