asp代码和后台添加
需要后台添加,请指点一下,改动哪个地方,后台代码是多少。添加部分:图片、名次、姓名、业绩<html><head><metahttp-equiv="Content-Type...
需要后台添加,请指点一下,改动哪个地方,后台代码是多少。添加部分:图片、名次、姓名、业绩
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
a {
font-size: 12px;
color: #000000;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style>
</head>
<body>
<div id="icefable1" align="center"><div align="center">
<table width="191" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle" height="160"><img src="../fyfile/OpenFile01.asp?pID=20091222170752" width="90" height="126" border="0" align="left" onload="javascript:DrawImage(this);"> <font color="#FF6600"><b>第一名</b></font>张三<br><br>业绩1000<br></td>
</tr>
<tr>
<td valign="middle" height="160"><img src="../fyfile/OpenFile01.asp?pID=20100521124120" width="90" height="126" border="0" align="left" onload="javascript:DrawImage(this);"> <font color="#FF6600"><b>第二名</b></font>李四<br><br>业绩1000<br></td>
</tr>
<tr>
<td valign="middle" height="160"><img src="../fyfile/OpenFile01.asp?pID=20090901190806" width="90" height="126" border="0" align="left" onload="javascript:DrawImage(this);"> <font color="#FF6600"><b>第三名</b></font>王五<br><br>业绩10000<br></td>
</tr>
</table></div></div><script>
marqueesHeight=160;//总体滚动高度
stopscroll=false;
with(icefable1){
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=marqueesHeight; stoptime=0;
icefable1.innerHTML+=icefable1.innerHTML;
function init_srolltext(){
icefable1.scrollTop=0;
setInterval("scrollUp()",1);
}init_srolltext();
function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==marqueesHeight+1)
{
stoptime+=1;
currentTop-=1;
if(stoptime==300)
{
currentTop=0;
stoptime=0;
}
}
else {
preTop=icefable1.scrollTop;
icefable1.scrollTop+=1;
if(preTop==icefable1.scrollTop){
icefable1.scrollTop=marqueesHeight;
icefable1.scrollTop+=1;
}
} 展开
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
<style type="text/css">
<!--
body,td,th {
font-size: 12px;
}
body {
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
a {
font-size: 12px;
color: #000000;
}
a:link {
text-decoration: none;
}
a:visited {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: none;
}
a:active {
text-decoration: none;
}
-->
</style>
</head>
<body>
<div id="icefable1" align="center"><div align="center">
<table width="191" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td valign="middle" height="160"><img src="../fyfile/OpenFile01.asp?pID=20091222170752" width="90" height="126" border="0" align="left" onload="javascript:DrawImage(this);"> <font color="#FF6600"><b>第一名</b></font>张三<br><br>业绩1000<br></td>
</tr>
<tr>
<td valign="middle" height="160"><img src="../fyfile/OpenFile01.asp?pID=20100521124120" width="90" height="126" border="0" align="left" onload="javascript:DrawImage(this);"> <font color="#FF6600"><b>第二名</b></font>李四<br><br>业绩1000<br></td>
</tr>
<tr>
<td valign="middle" height="160"><img src="../fyfile/OpenFile01.asp?pID=20090901190806" width="90" height="126" border="0" align="left" onload="javascript:DrawImage(this);"> <font color="#FF6600"><b>第三名</b></font>王五<br><br>业绩10000<br></td>
</tr>
</table></div></div><script>
marqueesHeight=160;//总体滚动高度
stopscroll=false;
with(icefable1){
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=marqueesHeight; stoptime=0;
icefable1.innerHTML+=icefable1.innerHTML;
function init_srolltext(){
icefable1.scrollTop=0;
setInterval("scrollUp()",1);
}init_srolltext();
function scrollUp(){
if(stopscroll==true) return;
currentTop+=1;
if(currentTop==marqueesHeight+1)
{
stoptime+=1;
currentTop-=1;
if(stoptime==300)
{
currentTop=0;
stoptime=0;
}
}
else {
preTop=icefable1.scrollTop;
icefable1.scrollTop+=1;
if(preTop==icefable1.scrollTop){
icefable1.scrollTop=marqueesHeight;
icefable1.scrollTop+=1;
}
} 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询