CodePen

HTML

            
              <strong>Title</strong>

<p id="myQuote">Slogan</p>
            
          
!

CSS

            
              
            
          
!

JS

            
              var myQuotes = new Array();

myQuotes[0] = "To be or not to be";

myQuotes[1] = "The only thing we have to fear is fear itself";

myQuotes[2] = "Give me liberty or give me death";


var myRandom = Math.floor(Math.random()*myQuotes.length);


$('#myQuote').html(myQuotes[myRandom]);
            
          
!
999px
Loading ..................