Grafische interesse |
|
Nu tot 9 werkt het perfect nu zou ik graag verder kunnen gaan met 10,11,12.... hoe moet ik dit juist doen?
<?php
$image = array();
$image['1'] = "ads/dd.gif";
$image['2'] = "ads/dd.gif";
$image['3'] = "ads/dd.jpg";
$image['4'] = "ads/dd.jpg";
$image['5'] = "ads/dd.gif";
$image['6'] = "ads/dd.gif";
$image['7'] = "ads/dd.gif";
$image['8'] = "ads/dd.gif";
$image['9'] = "ads/dd.gif";
$image['10'] = "ads/dd.gif";
$image['11'] = "ads/dd.gif";
$image['12'] = "ads/dd.gif";
$link = array();
$link['1'] = "http://www.dd.be";
$link['2'] = "http://www.dd.be";
$link['3'] = "http://www.dd.com";
$link['4'] = "http://www.dd.com";
$link['5'] = "http://www.dd.be";
$link['6'] = "http://www.dd.com";
$link['7'] = "http://www.dd.com";
$link['8'] = "http://www.dd.be";
$link['9'] = "http://www.dd.com";
$link['10'] = "http://www.dd.be";
$link['11'] = "http://www.dd.be";
$link['12'] = "http://www.dd.be";
$getallen = str_shuffle("123456789");
$i = 0;
while($i++ != 12){
$a = substr($getallen, 0, 1);
$getallen = substr($getallen, 1);
echo("<a href=\" " . $link[$a] . " \" target=\"_blank\"><img src=\" " .$image[$a] . " \"></a> <br />");
}
?>
<?php $image['1'] = "ads/dd.gif"; $image['2'] = "ads/dd.gif"; $image['3'] = "ads/dd.jpg"; $image['4'] = "ads/dd.jpg"; $image['5'] = "ads/dd.gif"; $image['6'] = "ads/dd.gif"; $image['7'] = "ads/dd.gif"; $image['8'] = "ads/dd.gif"; $image['9'] = "ads/dd.gif"; $image['10'] = "ads/dd.gif"; $image['11'] = "ads/dd.gif"; $image['12'] = "ads/dd.gif"; $link['1'] = "http://www.dd.be"; $link['2'] = "http://www.dd.be"; $link['3'] = "http://www.dd.com"; $link['4'] = "http://www.dd.com"; $link['5'] = "http://www.dd.be"; $link['6'] = "http://www.dd.com"; $link['7'] = "http://www.dd.com"; $link['8'] = "http://www.dd.be"; $link['9'] = "http://www.dd.com"; $link['10'] = "http://www.dd.be"; $link['11'] = "http://www.dd.be"; $link['12'] = "http://www.dd.be"; $i = 0; while($i++ != 12){ $getallen = substr($getallen, 1); echo("<a href=\" " . $link[$a] . " \" target=\"_blank\"><img src=\" " .$image[$a] . " \"></a> <br />"); } ?>
|