I am using <MARQUEE> for continues moving of record in upward direction.Suppose I have a 5 records than it moving fine but after completion of last record move there is a big gap to start scrolling from 1 st record.How can i manage this? I want to use in asp.Net.
Is any other way is there to scroll the records in asp.net.
What I have tried:
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script type='text/javascript' src="jquery-3.1.0.js"></script>
<script type='text/javascript' src="jquery-3.1.0.min.js"></script>
<script type='text/javascript' src="JavaScript1.js"></script>
<script type='text/javascript' src="jQuery.Marquee-master/jquery.marquee.js"></script>
<script type='text/javascript' src="jQuery.Marquee-master/jquery.marquee.min.js"></script>
<link href="StyleSheet1.css" rel="stylesheet"/>
</head>
<script src="jQuery.Marquee-master/jquery.marquee.js"></script>
<body>
<form id="form1" runat="server">
<Marquee direction="up" >
- <img src="images/demo/80x80.gif" alt="" />
Indonectetus facilis leo. Nullamlacus dui ipsum cons eque lobor ttis non euis que morbi penas dapi bulum orna. Urnaul trices quis curabitur.
- <img src="images/demo/80x80.gif" alt="" />
Indonectetus facilis leo. Nullamlacus dui ipsum cons eque lobor ttis non euis que morbi penas dapi bulum orna. Urnaul trices quis curabitur.
- <img src="images/demo/80x80.gif" alt="" />
Indonectetus facilis leo. Nullamlacus dui ipsum cons eque lobor ttis non euis que morbi penas dapi bulum orna. Urnaul trices quis curabitur.
- <img src="images/demo/80x80.gif" alt="" />
Indonectetus facilis leo. Nullamlacus dui ipsum cons eque lobor ttis non euis que morbi penas dapi bulum orna. Urnaul trices quis curabitur.
- <img src="images/demo/80x80.gif" alt="" />
Indonectetus facilis leo. Nullamlacus dui ipsum cons eque lobor ttis non euis que morbi penas dapi bulum orna. Urnaul trices quis curabitur.
</Marquee>
</body>
</html>
CSS
.marquee {
width: 300px;
overflow: hidden;
border: 1px solid #ccc;
background: #ccc;
}
JS
$('.marquee').marquee({
//speed in milliseconds of the marquee
duration: 5000,
//gap in pixels between the tickers
gap: 50,
//time in milliseconds before the marquee will start animating
delayBeforeStart: 0,
//'left' or 'right'
direction: 'up',
//true or false - should the marquee be duplicated to show an effect of continues flow
duplicated: true
});
With these code...I added jquery marquee plugin