Click here to Skip to main content
15,922,630 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I do need to make text move up and this text is retrieved from database. I have tried marquee tag but no displaying whole text till it ends just when text reaches the up point it stops and starts again. when I tried JQuery but not working

the code below is what I have tried
Please help

What I have tried:

<divclass>
<asp:DataListID="dlIdea"DataSourceID="SqlDataSource2"runat="server"
Width="100%"HorizontalAlign="Left"CellPadding="2">
<itemtemplate>
<divclass>
<divclass>
<spanclass><iclass>

<divclass>


<muted>'<%#Eval("date")%>'


<ahref>'<%#Eval("Ntitle")%>':<asp:LabelID="Label8"runat="server"Text='<%#Eval("news")%>'>







<asp:SqlDataSourceID="SqlDataSource2"runat="server"ConnectionString="<%$ConnectionStrings:ConnectionString%>"
SelectCommand="SELECTTOP(4)*FROM[News]ORDERBY[date]DESC">

<scriptsrc="https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<scriptsrc="jquery.marquee.js"></script>
<scriptsrc="jquery.pause.js"></script>
<scriptsrc="jquery.easing.min.js"></script>
<script>
$(function(){
$('.marquee').marquee({
allowCss3Support:true,
//workswhenallowCss3Supportissettotrue-forfulllistseehttp://www.w3.org/TR/2013/WD-css3-transitions-20131119/#transition-timing-function
css3easing:'linear',
//requiresjQueryeasingplugin.Defaultis'linear'
easing:'linear',
//trueorfalse-shouldthemarqueebeduplicatedtoshowaneffectofcontinuesflow
duplicated:false,
//pausetimebeforethenextanimationturninmilliseconds
delayBeforeStart:1000,
direction:'up',
//trueorfalse-shouldthemarqueebeduplicatedtoshowaneffectofcontinuesflow
duplicated:false,
//speedinmillisecondsofthemarqueeinmilliseconds
duration:5000,
//gapinpixelsbetweenthetickers
gap:20,
//oncyclepausethemarquee
pauseOnCycle:false,
//onhoverpausethemarquee-usingjQuerypluginhttps://github.com/tobia/Pause
pauseOnHover:false,
//themarqueeisvisibleinitiallypositionednexttothebordertowardsitwillbemoving
startVisible:false
});
});
</script>
Posted
Updated 26-Jul-16 2:05am
Comments
Member 12618369 25-Jul-16 10:55am    
I missed copy the first part properly
<divclass='marquee'>
<asp:DataListID="dlIdea"DataSourceID="SqlDataSource2"runat="server"
Width="100%"HorizontalAlign="Left"CellPadding="2">
<itemtemplate>
<divclass="desc">
<divclass="thumb">
<spanclass="badgebg-theme"><iclass="fafa-clock-o"></span>
</div>
<divclass="details">
<p>
<muted>'<%#Eval("date")%>'
<br/>
<ahref="#">'<%#Eval("Ntitle")%>':<asp:LabelID="Label8"runat="server"Text='<%#Eval("news")%>'><br/>
</p>
</div>
</div>


</div>
<asp:SqlDataSourceID="SqlDataSource2"runat="server"ConnectionString="<%$ConnectionStrings:ConnectionString%>"
SelectCommand="SELECTTOP(4)*FROM[News]ORDERBY[date]DESC">
Patrice T 25-Jul-16 15:19pm    
Use Improve question to update your question.
So that everyone can pay attention to this information.

1 solution

 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900