<?php $maxLinks = 5; // Lista linkow ); { foreach ( $random AS $value ) { print '<a href="' . $links[ $value ][0] . '" target="_blank">' . $links[ $value ][1] . '</a><br />'; } } else { } ?>
Chciałbym zrobić tak, by zamiast linków w kodzie móc dodawać linki w pliku txt.
Help :')
Albo jak przerobić w ten sam sposób by móc w txt dodawać owy skrypt:
<script type="text/javascript"> // <![CDATA[ { if (typeof limit == 'undefined' || limit < 0) limit = 1; else if (!limit) limit = this.length; { do { var index = Math.random(); } while (index == 1); target.push(source[index]); source[index] = source[--n]; } return target; } // Tu wpisz kolejne elementy: 'Tekst 1', 'Tekst 2', 'Tekst 3' // ]]> </script>