I need some scrip to rotate a number of banners "Displaying a topic" that the banners will be put this way:
- <a href="http://www.sponsorpalace.com/cgi.php?member=1571&profile=0&casino=17&type=2&lang=2" target="_blank"><img src="http://www.sponsorpalace.com/banners/1070.gif" border="0"></a>
The Company design this PHP but I do not know how to use it:
- <?
- /* LISTA DE BANNERS A ROTAR
- PONER URLs DE BANNERS o SCRIPT DE POPUPS
- */
- function rotar_banner(){
- $banners_arr[] = 'banner1';
- $banners_arr[] = 'banner2';
- $banners_arr[] = 'banner3';
- $banners_arr[] = 'banner4';
- $banners_arr[] = 'banner5';
- $banners_arr[] = 'banner5';
- $banners_arr[] = 'banner5';
- /* LISTA DE BANNERS A ROTAR*/
-
- shuffle($banners_arr); // mezclo el array de banners
-
- if($ES_USUARIO_REGISTRADO != true){ //validacion de usuario registrado (completar la validacion de usuarios del sitio)
- return $banners_arr[0]; // guarda un ítme del array en la variable
- }else{
- return 'blah.gif'; // Si esta registra, guarda un banner por default
- }
- }
-
- /*
- En donde quiera poner el banner tiene que poner:
-
- <?
- echo rotar_banner();
- ?>
-
- */
-
-
-
- // Incluir el archivo para tener disponible la funcion despues de que se ejecute la validacion de usuario.
-
- ?>
-
-
Several of the same style, and good also would like to do something similar to rotate advertising but on this topic
http://www.icyphoenix.com/viewtopic.php?f=2&t=3901&highlight=
The scrip that use in the popus are <script>code</script> for the two ads (Impresionesweb and casinos)