Click here to Skip to main content
16,019,149 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,

I have a requirement in my project to in which i want to display predefined user reviews in slider so that it displays automatically.

please suggest me way to do it with an example.
Posted

You can have a look at this-

Super-simple-jQuery-ticker-text-slideshow.html[^]
 
Share this answer
 
Comments
saeel chary 3-Sep-13 4:41am    
Thanks alot.It worked. :)
[no name] 3-Sep-13 4:55am    
Thanks..
You can use jqueryui

http://api.jqueryui.com/slider/[^]

Sample

XML
<!doctype html>

<html lang="en">
<head>
  <meta charset="utf-8" />
  <title>jQuery UI Slider - Default functionality</title>
  <link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
  <script src="http://code.jquery.com/jquery-1.9.1.js"></script>
  <script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>

  <script>
      $(function () {
          $("#slider").slider(
              {
                  min: 0, max: 10, value: 5, slide: function (event, ui) {

                      $("#value").text(ui.value);
                  }
              }

              );
      });
  </script>
</head>
<body>

<div id="slider"></div>

Review <div id="value"></div>
</body>
</html>
 
Share this answer
 
 
Share this answer
 
Hello ,

I have solved the issue, and could apply slider.here is my code.
XML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>

XML
<link rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css" />
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.3/jquery-ui.js"></script>
<script>
$("#slideshow > div:gt(0)").hide();
setInterval(function() {
  $('#slideshow > div:first')
    .fadeOut(1000)
    .next()
    .fadeIn(1000)
    .end()
    .appendTo('#slideshow');
},  3000);
</script>
<script type="text/css">
#slideshow { margin: 50px auto;  position:fixed; width: 200px;  height: 240px; padding: 10px; box-shadow: 0 0 20px rgba(0,0,0,0.4); }
#slideshow > div { position:fixed; top: 10px; left: 10px; right: 10px; bottom: 10px; }
</script></head>

<body>
HTML


XML
<div class="sideBoxTop"><span class="heading04">Our Customers Review</span></div>
<div  align="center" id="slideshow">
   <div>
     <p id="talkbubble">"review1."</p>
    <span>client1</span> </div>
  <div><p id="talkbubble">"review2."</p>
   <span>client2</span> </div>
   <div><p id="talkbubble">"review3."</p>
   <span>client3</span> </div>
</div>
<!--<div class="div_display"><script type="text/javascript" language="javascript"> textSlideShow();</script></div>
--><div><a href="http://www.webhostwala.com/contact-us.html">You can write to us</a>
</div>

</body>
</html>

but the other issue which came up is it shows previous slides also when it pulls next slides and fades in. Can anyone help me with this.

Thanka in advance
 
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