Guest User

JMR's Javascript Quote Generator

a guest
Dec 8th, 2013
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // JMR's quote generator.
  2. // You can include HTML within the quote.
  3. // Add as many quotes as you would like.
  4. var quotes=[
  5.     "I was flying around in my U.F.O. with a load of fuel in my inventory searching the deserts for pyramids. – The interesting part is: I found the pyramid half-buried in the sand!<cite><a href='https://forum.minetest.net/viewtopic.php?pid=111724#p111724' class='urlextern' title='https://forum.minetest.net/viewtopic.php?pid=111724#p111724' rel='nofollow'>Wuzzy</a>, <a href='https://forum.minetest.net/viewtopic.php?id=7063' class='urlextern' title='https://forum.minetest.net/viewtopic.php?id=7063' rel='nofollow'>Mod: Pyramids</a></cite>"
  6.     ,"Some other quote"
  7.     ,"Add as many as you'd like"
  8.     ];
  9.  
  10. var random = Math.floor((Math.random()*quotes.length));random;
  11.  
  12. jQuery('blockquote > p').html(quotes[random]);
Advertisement
Add Comment
Please, Sign In to add comment