http://eurocup.163.com/“欧洲杯热讯"后台添加怎么做?

longhorn008 2004-06-16 11:14:47
觉得这个效果不错,想用到公告上,哪位大侠指点迷津。
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD>欧洲足球锦标赛</TD>
<TR>
<TD align=middle bgColor=#ffffff height=25>
<SCRIPT language=JavaScript>
var strArray=new Array();
strArray[4]='<a href="http://eurocup.163.com/2004w06/12584/2004w06_1087331676373.html"

target="_blank">范尼关键时刻又做救火英雄 荷兰1-1战平德国</a>'
strArray[0]='<a href="http://eurocup.163.com/2004w06/12584/2004w06_1087321909308.html"

target="_blank">巴罗什海因茨各入一球 捷克逆转2-1拉脱维亚</a>'
strArray[1]='<a href="http://eurocup.163.com/2004w06/12584/2004w06_1087332735523.html"

target="_blank">直击范尼斯特尔鲁伊:郁闷全场 “闪光”一刻</a>'
strArray[2]='<a href="http://eurocup.163.com/2004w06/12584/2004w06_1087322837011.html"

target="_blank">直击内德维德:钢铁战士压阵 捷克人笑到最后</a>'
strArray[3]='<a href="http://eurocup.163.com/2004w06/12584/2004w06_1087327277706.html"

target="_blank">球迷一齐为拉脱维亚鼓掌 教练置疑裁判判罚?</a>'
showId=Math.floor(Math.random()*5);
tempStr=strArray[showId];
strArray[showId]=strArray[0];
strArray[0]=tempStr;
</SCRIPT>

<SCRIPT>
document.write('<table width=100% border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=252>'
+'<div id="toptable" style="width:252;">'
+'<table width=252 border=0 cellspacing=0 cellpadding=0>'
+'<tr><td width=252 height=21 class=text14 align="center" >'+strArray[0]+'</td></tr>'
+'<tr><td height=21 class=text14 align="center" >'+strArray[1]+'</td></tr>'
+'<tr><td height=21 class=text14 align="center" >'+strArray[2]+'</td></tr>'
+'<tr><td height=21 class=text14 align="center" >'+strArray[3]+'</td></tr>'
+'<tr><td height=21 class=text14 align="center" >'+strArray[4]+'</td></tr>'
+'</td></tr>'
+'</table>'
+'</div>'
+'</td></tr>'
+'</table>');

marqueesHeight=21;
stopscroll=false;
toptable.scrollTop=0;

with(toptable){
style.width=0;
style.height=marqueesHeight;
style.overflowX="visible";
style.overflowY="hidden";
noWrap=true;
onmouseover=new Function("stopscroll=true");
onmouseout=new Function("stopscroll=false");
}

preTop=0; currentTop=21; stoptime=0;
toptable.innerHTML+=toptable.innerHTML;

function init_srolltext(){
toptable.scrollTop=0;
setInterval("scrollUp()",40);
}init_srolltext();

function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==22)
{
stoptime+=1;
currentTop-=1;
if(stoptime==80)
{
currentTop=0;
stoptime=0;
}
}
else {
preTop=toptable.scrollTop;
toptable.scrollTop+=1;
if(preTop==toptable.scrollTop){
toptable.scrollTop=42;
toptable.scrollTop+=1;
}
}

}

</SCRIPT>
</TD></TR>
<TR>
<TD></TD></TR></TBODY></TABLE>
...全文
197 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
lang11zi 2004-06-18
  • 打赏
  • 举报
回复
strArray[i]就用id号
BlueDestiny 2004-06-17
  • 打赏
  • 举报
回复
function
longhorn008 2004-06-17
  • 打赏
  • 举报
回复
补充一点,上面代码是我保存整个页面看到的,
strArray[4]='<a href="http://eurocup.163.com/2004w06/12584/2004w06_1087331676373.html"

target="_blank">范尼关键时刻又做救火英雄 荷兰1-1战平德国</a>'
我想把文中的连接地址改成annouce.asp用ID传递。内容用rs("title")绑定
问题是我如何控制strArray[i]里面的数字呢?
萝卜波 2004-06-17
  • 打赏
  • 举报
回复
可能这一部分是 include 一个文件进来的,

28,391

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧