
<script type="text/javascript"> function loading(percent){ $('#progress').animate({width:percent},1000,function(){ $(this).children().html(percent); if(percent=='100%'){ var x = new Array("CLICK"); //napis po zaladowaniu $("#gen").val(x); var c = new Array("napis1", "napis2"), //losowe napisy z = c[Math.floor( Math.random() * c.length )]; $('#gz').text(z); } }) } $(document).ready(function() { $('#generuj').click(function() { loading('0%'); loading('100%'); }); }); </script>
Mam taki kodzik.. no i nie wiem jak dodać w var x = new Array("CLICK"); kod z html,tzn chce tam zrobić odnośnik html <a href="blabla.html">CLICK</a> , no ale gdy tak dodaję taki kod to nie działa poprawnie
