javascript - Setting a new line in this function -


function setlinedelay(delay, str) {   var lines = str.split('_');   $.each(lines, function(index, h) {     var div = $('<div class=\'question_item\'/>').html(h);     div.hide().appendto('#question_wrapper').delay(index * delay);     settimeout(function() {       div.fadein();     }, index * delay);   }); }   setlinedelay(500,"i a:" + "<h1>" + " _ j_avascript<h1> _ e_mulated<br /> _ s_erialized<br /> _ i_ntelligence\n _ created matt._ <br /> but, can call me jesi short._ <br /> , name is?..."); 

i have tried everything. have tried:

<h1>, <br>, <br />, \n 

i trying new line in function, ignores "new line functions", example, \n.

example website: http://lyndoncis.com/cis3120sp16/mts01060/

any appreciated, thanks!

i don't know if thing, missing closing tag on tag. should should be?

"<h1>" + " _ j_avascript</h1>... 

might causing problem


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -