Hi@all,
ich hoffe, ich bin in der richtigen Kategorie (

)...
Also, ich möchte eine zufallsweiterleitung machen.
Ich habe dieses Zufallsscript:
HTML-Code:
<script language="JavaScript">
<!--
function picklink() {
var linknumber = 14 ; //Anzahl Ihrer Links
var linktext = "nolink.htm" ;
var randomnumber = Math.random() ;
var linkselect = Math.round( (linknumber-1) * randomnumber) + 1 ;
if ( linkselect == 1)
{linktext="down.php?werbung=01" }
if ( linkselect == 2)
{linktext="down.php?werbung=02" }
if ( linkselect == 3)
{linktext="down.php?werbung=03" }
if ( linkselect == 4)
{linktext="down.php?werbung=04" }
if ( linkselect == 5)
{linktext="down.php?werbung=05" }
if ( linkselect == 6)
{linktext="down.php?werbung=06" }
if ( linkselect == 7)
{linktext="down.php?werbung=07" }
if ( linkselect == 8)
{linktext="down.php?werbung=08" }
if ( linkselect == 9)
{linktext="down.php?werbung=09" }
if ( linkselect == 10)
{linktext="down.php?werbung=10" }
if ( linkselect == 11)
{linktext="down.php?werbung=11" }
if ( linkselect == 12)
{linktext="down.php?werbung=12" }
if ( linkselect == 13)
{linktext="down.php?werbung=13" }
if ( linkselect == 14)
{linktext="down.php?werbung=14" }
return linktext;
}
// -->
</SCRIPT>
Dann habe ich noch das PHP-Script zu den einzelnen Dateien:
PHP-Code:
<?php
switch($_GET['werbung']) {
case '01': include('01.htm');break;
case '02': include('02.htm');break;
case '03': include('03.htm');break;
case '04': include('04.htm');break;
case '05': include('05.htm');break;
case '06': include('06.htm');break;
case '07': include('07.htm');break;
case '08': include('08.htm');break;
case '09': include('09.htm');break;
case '10': include('10.htm');break;
case '11': include('11.htm');break;
case '12': include('12.htm');break;
case '13': include('13.htm');break;
case '14': include('14.htm');break;
}
?>
Und ich habe bei jedem der 14 .htm Dateien das im Head:
HTML-Code:
<meta http-equiv="refresh" content="15; URL=javascript:picklink()">
Doch wenn ich jetzt 15 Sekunden warte, wird "down.php?werbung=12" angezeigt und die weiterleitung findet nicht statt!

Wie kann ich dies ändern?
Danke im Vorraus!