mam takie coś:
Lecz to nie działa, chciał bym to też zrobić żeby to się wyświetlało w divie jakimś np. pole..
Proszę o pomoc!
<script> var tekst = Array("item1", "item2", "item3", "item4", "item5" ); var linki = Array("poka_1", "poka_2", "poka_3", "poka_4", "poka_5" ); var ktore = 0; function Przewin(ok) { if(ok == 0) { ktore+=1; document.getElementById('div').innerHTML = tekst[ktore] } if(ok == 1) { ktore-=1; document.getElementById('div').innerHTML = tekst[ktore] } } <script>
<script language="javascript"> var tekst = Array("item1", "item2", "item3", "item4", "item5" ); var linki = Array("poka_1", "poka_2", "poka_3", "poka_4", "poka_5" ); var ktore = 0; function Przewin(ok) { if(ok == 0) { ktore+=1; document.getElementById('ss').innerHTML = tekst[ktore]; } if(ok == 1) { ktore-=1; document.getElementById('ss').innerHTML = tekst[ktore]; } } </script>