Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
LuBaTa каза:а някакъв друг начин освен rand има ли? Вече съм използвал rand в страницата и мисля че си пречат....
LuBaTa каза:А тогава защо не става? И не ми трябва за код от цифри а предварително зададен .....
<?php
$array = array("kod1", "kod2", "kod3", "kod4", "kod5", "kod5", "kod6", "kod7");
echo $array[rand(0,6)];
?>
<iframe src="Файл 1" width="100" height="100" frameborder="no" name="contents"></iframe>
<iframe src="Файл 2" width="100" height="100" frameborder="no" name="contents"></iframe>
<iframe src="Файл 3" width="100" height="100" frameborder="no" name="contents"></iframe>
<iframe src="Файл 4" width="100" height="100" frameborder="no" name="contents"></iframe>
<iframe src="Файл 5" width="100" height="100" frameborder="no" name="contents"></iframe>
<iframe src="Файл 6" width="100" height="100" frameborder="no" name="contents"></iframe>
<iframe src="Файл 7" width="100" height="100" frameborder="no" name="contents"></iframe>
emagi каза:
<?php
$files = array("file1.php", "file2.php", "file3.php", "file4.php", "file5.php", "file6.php", "file7.php");
$file = $files[rand(0,6)];
?>
<iframe src="<?php echo $file; ?>" width="100" height="100" frameborder="no" name="contents"></iframe>