stworzyłem funkcję, która z zapisanych w tablicy tekstow, wyświetla je losowo na tablicy. Chciałbym najważniejsze informacje w tych tekstach wyróżnić poprzez pogrubienie, ale nie za bardzo mi się to udaje. Bezpośredniio w tablicy nie akceptuje tagów html, a dalej już pomysłów mi brak.
<script> var lista_sukcesow=[ 'tekst tekst tekst ', 'tekst tekst tekst tekst ', 'tekst tekst tekst ' ]; var liczba_sukcesow=lista_sukcesow.length; var losik=Math.floor((Math.random() * liczba_sukcesow)); jQuery(document).ready(function(){ jQuery("#sukcesy").text(lista_sukcesow[losik]); function zmiana_tekstu(){ jQuery("#sukcesy").delay(5000).fadeOut(1000,function(){ losik=Math.floor((Math.random() * liczba_sukcesow)); jQuery("#sukcesy").text(lista_sukcesow[losik]); jQuery("#sukcesy").fadeIn(1000); zmiana_tekstu(); }); } zmiana_tekstu(); }) </script> ?>