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.
<?php
$sites = array('abv.bg', 'google.com', 'web-tourist.net');
shuffle($sites);
$rand = array_rand($sites, 2);
$site = $sites[$rand[1]];
echo 'Пренасочване към '.$site.'.<meta http-equiv="refresh" content="5; http://'.$site.'">';
?>
<script type="text/javascript">
var urls = new Array("http://www.google.com/", "http://www.yahoo.com/", "http://web-tourist.net/");
function redirect()
{
window.location = urls[Math.floor(urls.length*Math.random())];
}
var temp = setInterval("redirect()", 0);
</script>
Galli каза:Хора HTML / Javascript / CSS
И със запетайки си добавяш още.Код:<script type="text/javascript"> var urls = new Array("http://www.google.com/", "http://www.yahoo.com/", "http://web-tourist.net/"); function redirect() { window.location = urls[Math.floor(urls.length*Math.random())]; } var temp = setInterval("redirect()", 0); </script>
Еми с цикълemcuemnecu каза:вярно, това може ли да се използва за старт на примерно 500 страници едновременно ?![]()
Rado каза:Еми с цикълemcuemnecu каза:вярно, това може ли да се използва за старт на примерно 500 страници едновременно ?![]()
for($i=1;$i <= там дължината на масива както се вика в php; $i++) {
$site = $array;
echo '<meta http-equiv="refresh" content="5; http://'.$site.'">';
?>