Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2015
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.07 KB | None | 0 0
  1. <div class="type-wrap">
  2. <span id="typed" style="white-space:pre;"></span>
  3. </div>
  4. <?php
  5. $views = views_get_view("lnews");
  6. $views->set_display('block_0');
  7. $views->execute();
  8.  
  9. $setOfTitles = "";
  10. foreach($views->result as $view)
  11. $setOfTitles .= $view->node_title."*";
  12.  
  13. $(function(){
  14.  
  15. $("#typed").typed({
  16. strings: [HERE IS YOUR STRING],
  17. typeSpeed: 30,
  18. backDelay: 500,
  19. loop: false,
  20. contentType: "html",
  21. loopCount: false,
  22. callback: function(){ foo(); },
  23. resetCallback: function() { newTyped(); }
  24. });
  25.  
  26. $(".reset").click(function(){
  27. $("#typed").typed('reset');
  28. });
  29. });
  30.  
  31. var array_of_titles= titles.split("*");
  32. $(function(){
  33. $("#typed").typed({
  34. strings: [array_of_titles],
  35. typeSpeed: 30,
  36. backDelay: 500,
  37. loop: false,
  38. contentType: "html",
  39. loopCount: false,
  40. callback: function(){ foo(); },
  41. resetCallback: function() { newTyped(); }
  42. });
  43.  
  44. $(".reset").click(function(){
  45. $("#typed").typed('reset');
  46. });
  47. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement