Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="type-wrap">
- <span id="typed" style="white-space:pre;"></span>
- </div>
- <?php
- $views = views_get_view("lnews");
- $views->set_display('block_0');
- $views->execute();
- $setOfTitles = "";
- foreach($views->result as $view)
- $setOfTitles .= $view->node_title."*";
- $(function(){
- $("#typed").typed({
- strings: [HERE IS YOUR STRING],
- typeSpeed: 30,
- backDelay: 500,
- loop: false,
- contentType: "html",
- loopCount: false,
- callback: function(){ foo(); },
- resetCallback: function() { newTyped(); }
- });
- $(".reset").click(function(){
- $("#typed").typed('reset');
- });
- });
- var array_of_titles= titles.split("*");
- $(function(){
- $("#typed").typed({
- strings: [array_of_titles],
- typeSpeed: 30,
- backDelay: 500,
- loop: false,
- contentType: "html",
- loopCount: false,
- callback: function(){ foo(); },
- resetCallback: function() { newTyped(); }
- });
- $(".reset").click(function(){
- $("#typed").typed('reset');
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement