Click here to Skip to main content
15,898,925 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have created masterpage.in this i want to repeat images continously without gap.except logo.
I have used marquee.Images are rotating but after some time there is a gap and then again rotates.
I want to rotate and the last image should get attached from right side of the first image. i have written following code.But there is a gap after some images.

<td>
                                 <asp:Image ID="logo1" runat="server" Height="150px" ImageUrl="~/images/logo1.jpg" style="margin-top: 0px" Width="140px" />
                                 
                          </td>

 <marquee behavior="alternate" width="1000px" height="150px">
                                  <img src="images/book1.jpg" width="200px" height="150px" />
                                 <img src="images/book2.jpg" width="200px" height="150px" />
                                 <img src="images/book3.jpg" width="200px" height="150px" />
                                 <img src="images/images2.jpg" width="200px" height="150px" />
                                   
                                   
                             </marquee>
Posted
Updated 23-Jan-14 18:09pm
v2

Continuous scroll of Images without space in marquee tag is not possible but the workaround would be this
http://www.dynamicdrive.com/dynamicindex2/crawler/index.htm[^]

All the best:)pls write back if you are unable to deploy .
 
Share this answer
 
v2
Comments
Member 10523130 24-Jan-14 1:25am    
I tried that but no images are displayed..where should i write div code in javascript or outside of javascript?.. I have written it in javascript code
Member 10523130 24-Jan-14 1:31am    
and how can i increase the width?
Member 10523130 24-Jan-14 1:38am    
Hey it worked :).. Thanx a lot
karthik Udhayakumar 24-Jan-14 1:51am    
pls follow the solution i have created and change it accordingly for your requirement..If you want to increase the width of image pls use the width="px" tag if you want to increase the Div width pls use width="100%"
 
Share this answer
 
Here you go

Download the js from http://www.dynamicdrive.com/dynamicindex2/crawler/crawler.js[^]

Reference code for you

C#
<html>
<head>
<script type="text/javascript" src="crawler.js">

marqueeInit({
	uniqueid: 'mycrawler1',
	style: {
		'padding': '2px',
		'width': '600px',
		'height': '180px'
	},
	inc: 5, //speed - pixel increment for each iteration of this marquee's movement
	mouse: 'cursor driven', //mouseover behavior ('pause' 'cursor driven' or false)
	moveatleast: 2,
	neutral: 150,
	savedirection: true,
	random: true
});

</script>
<head>
<body>
<div class="marquee" id="mycrawler1">
<img src="images/book1.jpg" width="200px" height="150px" />
<img src="images/book2.jpg" width="200px" height="150px" />
<img src="images/book3.jpg" width="200px" height="150px" />
<img src="images/images2.jpg" width="200px" height="150px" />
</div>
</body>
</html>


All the Best:)
 
Share this answer
 
 
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