| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 2792 人关注过本帖
标题:[求助] asp滚动新闻代码!
只看楼主 加入收藏
xuesheng
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2005-10-17
收藏
 问题点数:0 回复次数:7 
[求助] asp滚动新闻代码!

有谁有滚动新闻(上下滚动)的 代码啊!

(标题,内容存在数据库中 通过什么方法在滚动框里显示标题,点击标题显示内容)

麻烦大伙帮帮忙,小弟急用!!!

搜索更多相关主题的帖子: 数据库 asp 滚动 代码 
2005-10-28 17:04
hxfly
Rank: 5Rank: 5
等 级:贵宾
威 望:17
帖 子:5810
专家分:118
注 册:2005-4-7
收藏
得分:0 

<marquee>不可以吗?

方向改成向上就是了


2005-10-28 17:08
xuesheng
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2005-10-17
收藏
得分:0 

谢谢!楼上的朋友!

有跟数据库连接的代码吗!


2005-10-28 17:24
shakehill
Rank: 1
等 级:新手上路
帖 子:5
专家分:0
注 册:2005-10-27
收藏
得分:0 

是跟 Access 还是跟SQL的?

2005-10-28 17:39
xuesheng
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2005-10-17
收藏
得分:0 
滚动新闻跟sql server 连接的有吗?急需!!!!

2005-10-29 14:33
jnzsk
Rank: 1
等 级:新手上路
威 望:1
帖 子:403
专家分:0
注 册:2004-11-13
收藏
得分:0 
<style type=text/css>
table,form,img{
border:none;
padding:0 0 0 0;
margin:0 0 0 0;
}
/**链接:鼠标响应隐藏下划线**/
.redlink a:link,.redlink a:visited,.whitelink a:link,.whitelink a:visited,.yellowlink a:link,.yellowlink a:visited,.orangelink a:link,.orangelink a:visited
{
text-decoration:underline;
}
.redlink a:active,.redlink a:hover,.whitelink a:active,.whitelink a:hover,.yellowlink a:active,.yellowlink a:hover,.orangelink a:active,.orangelink a:hover
{
text-decoration:none;
}

.whitelink a:link,.whitelink a:visited,.whitelink a:active,.whitelink a:hover,.white
{
color:#fff;
}
.orangelink a:link,.orangelink a:visited,.orangelink a:active,.orangelink a:hover
{
color:#fc0;
}
td,p,li,input,select {font-size:12px;}
.b1 {border:1px solid #000000}
.l140 {line-height:140%}
.L15 {line-height:150%}
.L17 {line-height:170%}
.F7 {font-size:7px;}
.s01 {border:1px;border-style:inset;}
A:link {color:#00007f;}
A:visited {color:#65038e;}
A:active {color:#ff0000;}
A:hover {color:#ff0000;}

A.a03:link,A.a03:visited {text-decoration:none;color:#000000;}
A.a03:active,A.a03:hover {text-decoration:none;color:#ff0000;}

A.an02:link {text-decoration:none;color:#1110AC}
A.an02:visited {text-decoration:none;color:#65038e}
A.an02:active,A.an02:hover {text-decoration:none;color:#ff0000}

A.a251:link,A.a251:visited {text-decoration:none;color:#ffffff;}
A.a251:active,A.a251:hover {text-decoration:underline;color:#ffffff;}

/**导航样式**/
#mainnav
{
border-left: 1px #000 solid;
border-right: 1px #000 solid;
}
.mainnav-r
{
border-right: 1px #000 solid;
}
/**导航连接**/

.mainnav a:link,.mainnav a:visited
{
color:#000;
}

/**链接:鼠标响应显示下划线**/
.navred a:link,.navred a:visited,.mainnav a
{
text-decoration:none;
}
.navred a:active,.navred a:hover
{
text-decoration:underline;
}
/**红色链接**/
.mainnav a:active,.mainnav a:hover ,.navred a:link,.navred a:visited,.navred a:active,.navred a:hover,.red ,.reddot,.redlink a:link,.redlink a:visited,.redlink a:active,.redlink a:hover
{
color:#f00;
}
/**导航连接end**/
.smsimg img{border:1px #e71516 solid;}
.dot7 ,.reddot{font-size:7px;}

.lh19{line-height:19px}
.lh17{line-height:17px}
</style>

<SCRIPT language=JavaScript>
document.ns = navigator.appName == "Microsoft Internet Explorer"
function randomStr(str){
var showId=Math.floor(Math.random()*3);
var tempStr=str[showId];
str[showId]=str[0];
str[0]=tempStr;
}
function showStr(str,textWidth,num){
if(!document.ns){document.write(str[0]+’<br>’)}
else{
document.write(’<table border=1 cellspacing=0 cellpadding=0>’
+’<tr><td>’
+’<div id="icefable1’+num+’">’
+’<table width=100 border=0 cellspacing=0 cellpadding=0>’
+’<tr><td height=20>’+str[0]+’</td></tr>’
+’<tr><td height=20>’+str[1]+’</td></tr>’
+’<tr><td height=20>’+str[2]+’</td></tr>’
+’</table>’
+’</div>’
+’<div id="icefable2’+num+’" style="position:absolute;z-index:1;visibility:hidden"></div>’
+’</td></tr>’
+’</table>’);
}
}
function init_srolltext(num){
countnum=0
marqueesHeight=16;
eval(’stopscroll’+num+’=false;’)
eval(’icefable1’+num+’.scrollTop=0;’)
rotatenum=0
eval(’icefable1’+num+’.style.width=0;’)
eval(’icefable1’+num+’.style.height=marqueesHeight;’)
eval(’icefable1’+num+’.style.overflowX="visible";’)
eval(’icefable1’+num+’.style.overflowY="hidden";’)
eval(’icefable1’+num+’.noWrap=true;’)
eval(’icefable1’+num+’.onmouseover=new Function("stopscroll=true");’)
eval(’icefable1’+num+’.onmouseout=new Function("stopscroll=false");’)
eval(’preTop’+num+’=0; ’)
eval(’currentTop’+num+’=0;’)
eval(’stoptime’+num+’=0;’)
eval(’icefable2’+num+’.innerHTML="";’)
eval(’icefable2’+num+’.innerHTML+=icefable1’+num+’.innerHTML;’)
eval(’icefable1’+num+’.innerHTML=icefable2’+num+’.innerHTML+icefable2’+num+’.innerHTML;’)
eval(’setInterval("scrollUp2()",40);’)
}
</script>
<SCRIPT language=JavaScript>
function scrollUp2(){
if(stopscroll2==true) return;
currentTop2+=1;
if(currentTop2==21){
stoptime2+=1;
currentTop2-=1;
if(stoptime2==80){
currentTop2=0;
stoptime2=0;
}
}else{
preTop2=icefable12.scrollTop;
icefable12.scrollTop+=1;
if(icefable12.scrollTop==78){
preTop2=0; currentTop2=0; stoptime2=0;icefable12.scrollTop=0
}
}
}
var strArray2=new Array();
strArray2[0]=’<!--B4899F1AD4AF--><a href=http://sina.allyes.com/main/adfclick?db=sina&bid=23658,46437,46474&cid=0,0,0&sid=45211&advid=2272&camid=7859&show=ignore&url=http://www.topxue.com/web/wf/bdyx/gcyxb2.htm target=_blank>北大财务总监班</a><!--$$ raowei/2005-10-1 ~ 2005-12-31/B $-->’
strArray2[1]=’<!--4FC1A69F98C9--><a href=http://sina.allyes.com/main/adfclick?db=sina&bid=23658,46437,46474&cid=0,0,0&sid=45211&advid=2272&camid=7859&show=ignore&url=http://www.globeedu.com/index.shtml target=_blank>出国留学新热讯!</a><!--$$ raowei/2005-10-1 ~ 2005-12-31/B $-->’
strArray2[2]=’<!--C54A0327273F--><a href=http://sina.allyes.com/main/adfclick?db=sina&bid=23491,46232,46269&cid=0,0,0&sid=45032&advid=2141&camid=7810&show=ignore&url=http://www.cmr.com.cn/zhaosheng/zsjz/rxzn.htm target=_blank>网上人大学历招生</a><!--$$ lanxin/2005-10-1 ~ 2005-12-31/B $-->’
randomStr(strArray2);
showStr(strArray2,105,2);
init_srolltext(2);
</SCRIPT>

2005-10-29 14:49
xuesheng
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2005-10-17
收藏
得分:0 

谢谢了!

看懂楼上朋友的代码,不是一件容易的事,我是刚学asp的(菜鸟级选手)

有谁知道滚动新闻的后台管理(sql)代码吗?


2005-10-29 17:10
xuesheng
Rank: 1
等 级:新手上路
帖 子:11
专家分:0
注 册:2005-10-17
收藏
得分:0 
急需 asp滚动新闻代码!

(标题,内容存在数据库(sql server)中 通过什么方法在滚动框里显示标题,点击标题显示内容)


请大虾帮忙!请大虾指导!

2005-10-29 17:40
快速回复:[求助] asp滚动新闻代码!
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.012594 second(s), 7 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved