The second part is working, but i cant get the first part working:(
http://www.knoore.com/test4/banner.php
This is located in the banner.php file
<style type="text/css">body {background-image: url("http://www.knoore.com/test/files/images/achtergrond.gif");}</style> <?php $bannerammount=3; $rnd=rand (1,$bannerammount); if ($rnd == "1") {$link="http://www.woneninonderbanken.nl";$image="http://www.knoore.com/test/files/banners/1.gif";$alt="Alt1";$tekst="Tekst 1";} if ($rnd == "2") {$link="http://www.woneninonderbanken.nl";$image="http://www.knoore.com/test/files/banners/1.gif";$alt="Alt2";$tekst="Tekst 2";} if ($rnd == "3") {$link="http://www.woneninonderbanken.nl";$image="http://www.knoore.com/test/files/banners/1.gif";$alt="Alt3";$tekst="Tekst 3";} ?> <html><div align="center"><a href="<?php echo $link ?>" target="_blank"><img src="<?php echo $image ?>" alt="<?php echo $alt ?>" border="0"><br><?php echo $tekst ?></a></div></html>
Now I’m wondering if its possible to make it auto refresh this content
<?php $bannerammount=3; $rnd=rand (1,$bannerammount); if ($rnd == "1") {$link="http://www.woneninonderbanken.nl";$image="http://www.knoore.com/test/files/banners/1.gif";$alt="Alt1";$tekst="Tekst 1";} if ($rnd == "2") {$link="http://www.woneninonderbanken.nl";$image="http://www.knoore.com/test/files/banners/1.gif";$alt="Alt2";$tekst="Tekst 2";} if ($rnd == "3") {$link="http://www.woneninonderbanken.nl";$image="http://www.knoore.com/test/files/banners/1.gif";$alt="Alt3";$tekst="Tekst 3";} ?> <html><div align="center"><a href="<?php echo $link ?>" target="_blank"><img src="<?php echo $image ?>" alt="<?php echo $alt ?>" border="0"><br><?php echo $tekst ?></a></div></html>Every 15 seconds.
If i refresh this:
<style type="text/css">body {background-image: url("http://www.knoore.com/test/files/images/achtergrond.gif");}</style>then the screen turns white for like 1 second, because it has to reload the background and such. Therefore it can't be refreshed.
Can any1 help me with solving this problem?
Thanks in Advance,
Knoore
Edited by Knoore, 21 July 2005 - 05:21 PM.