将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>
解决方案 »
- 为什么我不能在拍拍网上点别人QQ头像进行临时会话
- 各位大哥救命啊~!!在线等答案!~~~
- 到底是怎么循环的呢?
- 救火啊~如何用JAVASRCIPT 如何实现reset按钮~~~急啊`~``
- 我写的代码怎么不行?有五张小图怎么移上去就显示大图?
- 关于iframe的内存释放问题。
- 如何编写合并、拆分单元格的语句
- 这个功能能实现吗?????????????????????????????????
- Unicode的javascript用法
- 怎样去掉BUTTON的灰底色,换成做好的图片上去?
- 怎样做一个超级链接,在按上去之后,能弹出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>