Dear All,
How to change 4 images after 2 seconds?
see the example :- http://freekaamaal.com/ in the featured deals section.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Pankaj PandeyPosted May 21, 2013, 9:00 AM
Follow these links.
http://www.c-sharpcorner.com/Blogs/11160/change-picture-in-adrotator-without-refreshing-page.aspx
you can get image from database and convert it into xml .
Mark as answered if usefull
Jagatpal SinghPosted May 21, 2013, 7:49 AM
Sandeep Singh ShekhawatPosted May 21, 2013, 7:44 AM
So can you please expalin in detail that what you want and how?
Jagatpal SinghPosted May 21, 2013, 7:44 AM
Shankar MPosted May 21, 2013, 7:41 AM
Hope this link might help you..
http://csharp-slackers.blogspot.com/search/label/Animated%20Tray%20Icon%20in%20C%23
Thanks, Shankar M
Jagatpal SinghPosted May 21, 2013, 7:34 AM
Sandeep Singh ShekhawatPosted May 21, 2013, 7:20 AM
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>title>
<script type="text/javascript" language="javascript">
window.onload = function ()
{
var rotator = document.getElementById("rotator");
var images = rotator.getElementsByTagName("img");
for (var i = 1; i < images.length; i++)
{
images[i].style.display = "none";
}
var counter = 1;
setInterval(function ()
{
for (var i = 0; i < images.length; i++)
{
images[i].style.display = "none";
}
images[counter].style.display = "block";
counter++;
if (counter == images.length)
{
counter = 0;
}
}, 2000);
};
script>
head>
<body>
<form id="form1">
<div id="rotator">
<img alt="" src="http://www.aspsnippets.com/images/Blue/Logo.png" />
<img alt="" src="http://jqueryfaqs.com/images/Blue/Logo.png" />
<img alt="" src="http://www.aspforums.net/images/blue/Logo.png" />
div>
form>
body>
html>
Riddhi ValechaPosted May 21, 2013, 7:08 AM
Use Timer Control...
Set its interval to 2 seconds.....
After every 2 seconds, it will call the method to change the image.
If you have the project, can you share it?? It will be easy to make changes there itself...