查询语句:
select top 6 ArticleID,ChannelID,Title,DefaultPicUrl from PE_Article where ChannelID ={input(0)} and Elite =-1 and Status =3 order by ArticleID desc
参数列表:频道
标签内容:
<script> var marqueeContent=new Array(); {Loop} {Infobegin} marqueeContent[0]='<a href="{$InstallDir}{$Field(0,GetUrl,Article,1)}" target="_blank">{$Field(2,Text,0,0,0)}</a><br>' {Infoend}{Infobegin} marqueeContent[1]='<a href="{$InstallDir}{$Field(0,GetUrl,Article,1)}" target="_blank">{$Field(2,Text,0,0,0)}</a><br>' {Infoend}{Infobegin} marqueeContent[2]='<a href="{$InstallDir}{$Field(0,GetUrl,Article,1)}" target="_blank">{$Field(2,Text,0,0,0)}</a><br>' {Infoend}{Infobegin} marqueeContent[3]='<a href="{$InstallDir}{$Field(0,GetUrl,Article,1)}" target="_blank">{$Field(2,Text,0,0,0)}</a><br>' {Infoend}{Infobegin} marqueeContent[4]='<a href="{$InstallDir}{$Field(0,GetUrl,Article,1)}" target="_blank">{$Field(2,Text,0,0,0)}</a><br>' {Infoend}{Infobegin} marqueeContent[5]='<a href="{$InstallDir}{$Field(0,GetUrl,Article,1)}" target="_blank">{$Field((2,Text,0,0,0)}</a><br>' {Infoend}{Infobegin} marqueeContent[6]='<a href="{$InstallDir}{$Field(0,GetUrl,Article,1)}" target="_blank">{$Field(2,Text,0,0,0)}</a><br>' {Infoend} {/Loop} var marqueeInterval=new Array(); var marqueeId=0; var marqueeDelay=3000; var marqueeHeight=18; function initMarquee() { var str=marqueeContent[0]; document.write('<div id="marqueeBox" style="overflow:hidden;height:'+marqueeHeight+'px" onmouseover="clearInterval(marqueeInterval[0])" onmouseout="marqueeInterval[0]=setInterval(\'startMarquee()\',marqueeDelay)"><div>'+str+'</div></div>'); marqueeId++; marqueeInterval[0]=setInterval("startMarquee()",marqueeDelay); } function startMarquee() { var str=marqueeContent[marqueeId]; marqueeId++; if(marqueeId>=marqueeContent.length) marqueeId=0; if(document.getElementById("marqueeBox").childNodes.length==1) { var nextLine=document.createElement('DIV'); nextLine.innerHTML=str; document.getElementById("marqueeBox").appendChild(nextLine); } else { document.getElementById("marqueeBox").childNodes[0].innerHTML=str; document.getElementById("marqueeBox").appendChild(document.getElementById("marqueeBox").childNodes[0]); document.getElementById("marqueeBox").scrollTop=0; } clearInterval(marqueeInterval[1]); marqueeInterval[1]=setInterval("scrollMarquee()",20); } function scrollMarquee() { document.getElementById("marqueeBox").scrollTop++; if(document.getElementById("marqueeBox").scrollTop%marqueeHeight==(marqueeHeight-1)){ clearInterval(marqueeInterval[1]); } } </script> <table width="100%" border="0" cellspacing="0" cellpadding="0" class="title"><tr><td><script>initMarquee()</script></td></tr></table>