将marquee放在table中,再调整table的位置
<script language=javascript><!--
var index = 6
link = new Array(5);
text = new Array(5);
link[0] ='****.php'
link[1] ='****.php'
link[2] ='****.php'
link[3] ='****.php'
link[4] ='****.php'
link[5] ='****.php'
text[0] ='***********'
text[1] ='***********'
text[2] ='***********'
text[3] ='***********'
text[4] ='***********'
text[5] ='***********'
document.write ("<table align=center><tr><td>");
document.write ("<marquee scrollamount='1' scrolldelay='100' direction= 'down' width='200' height='150'>");
for (i=0;i<index;i++){
document.write ("<a href="+link[i]+" target='_blank'>");
document.write (text[i] + "</a><br><br>");
}document.write ("</marquee>")
document.write ("</td></tr></table>");// --></script>
<script language=javascript><!--
var index = 6
link = new Array(5);
text = new Array(5);
link[0] ='****.php'
link[1] ='****.php'
link[2] ='****.php'
link[3] ='****.php'
link[4] ='****.php'
link[5] ='****.php'
text[0] ='***********'
text[1] ='***********'
text[2] ='***********'
text[3] ='***********'
text[4] ='***********'
text[5] ='***********'
document.write ("<table align=center><tr><td>");
document.write ("<marquee scrollamount='1' scrolldelay='100' direction= 'down' width='200' height='150'>");
for (i=0;i<index;i++){
document.write ("<a href="+link[i]+" target='_blank'>");
document.write (text[i] + "</a><br><br>");
}document.write ("</marquee>")
document.write ("</td></tr></table>");// --></script>
解决方案 »
- 如何取出一个代码块里的每一行代码
- 请问HTML怎么循环输出数据?
- uploadify在虚拟服务器下500错误
- 救急?
- 【在线等,救急!!】GridView 模板列如何用JS实现两个文本框之和赋值给另外一个文本框?
- 十分奇怪而又很简单的javascript问题,大家看看是什么鬼东西在作怪,是对于脚本控制某个页面对象的!
- 高分求解 如何在<tr>里动态添加,删除多个INPUT对象,并能取他们的值
- JS是否可以实现特定字体的控制?(txt文件中)
- 怎么算角度
- 用过dojo的都来聊聊
- 怎样做一个超级链接,在按上去之后,能弹出download对话框,把链接所指的文件download下来?急!!!
- 在javascript中,对richedit区域进行操作。
function myscroll()
{
if(document.all.text.style.pixelRight<=300)
document.all.text.style.pixelRight++;
else
document.all.text.style.pixelRight=0;
}
</script>
<body onload=setInterval(myscroll,10)>
<div align=center id="text"
style="position:absolute;right:100">like marquee
</div>
<body>