Response title
This is preview!





| <!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> | |
| <title>Populating List for TwitterBoxFeed</title> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge" /> | |
| <script src="../../../script/jquery-1.6.3.min.js"></script> | |
| <style type="text/css"> | |
| div { | |
| border: solid 1px; | |
| margin: 10px; | |
| } | |
| #container { | |
| width: 600px; | |
| height: 300px; | |
| } | |
| ul li { | |
| display: none; | |
| } | |
| </style> | |
| <script> | |
| /* This script will demonstrate populating a list of feeds.*/ | |
| var feed = ['Feed 1', 'Feed 2', 'Feed 3']; | |
| $(document).ready(function() { | |
| $('ul#twitterlist').prepend('<li>' + feed[0] + '</li>'); | |
| $('ul#twitterlist li').fadeIn(1000, function() { | |
| $('ul#twitterlist').prepend('<li>' + feed[1] + '</li>'); | |
| $('ul#twitterlist li:first').fadeIn(1000, function() { | |
| $('ul#twitterlist').prepend('<li>' + feed[2] + '</li>'); | |
| $('ul#twitterlist li:first').fadeIn(1000); | |
| } | |
| ); | |
| }); | |
| });//end ready | |
| </script> | |
| </head> | |
| <body> | |
| <div id="container"> | |
| <ul id="twitterlist"> | |
| </ul> | |
| </div> | |
| </body> | |
| </html> |
© 2012 jQuery Foundation
Sponsored by
and others.
