Re: Re: banner rotator

From: Date: Wed, 07 May 2003 16:09:00 +0000
Subject: Re: Re: banner rotator
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-146698@lists.php.net to get a copy of this message
Ok, one banner is being displayed very well. Thanks Another problem: just *one banner* of four is being displayed. Reloading the page the same will appear; it's not rotatory, is it? I would like to have a new banner each time the page is reloaded. look the script again:
srand( microtime * 1000000); $num = rand(1,4); switch($num) { case 1 : $img="ad-panashop.gif"; $url="http://www.panashop.com.br/files/pags/ShoWDetail.asp?Coditprod=11277&CodProd=9869&Precode=699&Precopor=699&titulo=DVD%20FOTO-CD%20E%20KARAOKE%20PHILIPS%20DVD616&CodDf=DVD616&setor=14&cv=14"; break; case 2 : $img="ad-vw.gif"; $url="http://www.volkswagen.com.br/default.asp"; break; case 3 : $img="ad-philips.gif"; $url="http://www.panashop.com.br/files/pags/ShoWDetail.asp?Coditprod=11277&CodProd=9869&Precode=699&Precopor=699&titulo=DVD%20FOTO-CD%20E%20KARAOKE%20PHILIPS%20DVD616&CodDf=DVD616&setor=14&cv=14"; break; case 4 : $img="ad-casseta.gif"; $url="http://www.volkswagen.com.br/default.asp"; break; }
so long a. Jason k Larson escreveu:
Looks like another missing semicolon case 1 : $img="ad-panashop.gif"; $url="http://www.panashop.com.br/files/pags/ShoWDetail.asp?Coditprod=11277&CodProd=9869&Precode=699&Precopor=699&titulo=DVD%20FOTO-CD%20E%20KARAOKE%20PHILIPS%20DVD616&CodDf=DVD616&setor=14&cv=14"; break; -- Jason k Larson


« previous php.general (#146698) next »