Retroceder   Foros del Web > Ayuda General

Respuesta
 
Herramientas Desplegado
Antiguo 18-ene-2003, 14:46   #1 (permalink)
Usuario172 está en el buen camino
 
Fecha de Ingreso: noviembre-2002
Mensajes: 369
Rota banner simple

Hola, estoy buscando un rotador de banner que sea en PHP o JS para rotar 5 SWF. He encontrado muchos en PHP en hotscripts.com pero necesitan BDD y son muy avanzados, no necesito tanto, algo corto y simple me basta, solo quiero que 5 banners roten aleatoriamente en una página. Tambien he encontrado otros simples pero que no andaban.
Gracias!

Chau!
Usuario172 está desconectado   Responder Citando
Antiguo 18-ene-2003, 16:25   #2 (permalink)
fgil2 ha deshabilitado el karma
 
Avatar de fgil2
 
Fecha de Ingreso: enero-2003
Ubicación: zaragoza
Mensajes: 285
Tenía uno especial para baners, aunque no se donde.
Este de imágenes te puede valer.


INSTRUCTIONS:
=============

This is a fairly straightforward technique,
which works well in both IE and NS6+ (degrades
gracefully in older browsers).

Just place the style script below in the
<head> of your page, add the class= and the mouse
event calls to the textarea tag, and you're done.



Step 1.:
--------

Place this style script in the <head> of the page:

<style>
textarea.imageOne{
background-color:000000;
background-image:url(blue_saturn.jpg);
color:00ff00;
}
textarea.imageTwo{
background-color:000000;
background-image:url(butterflies.jpg);
color:ff0000;
}
</style>

Change the images to your own, of course; and also
see the notes at the end.



Step 2.:
--------

Set up your <textarea> like this:

<textarea
rows="12" cols="74"
class="imageOne"
onMouseOver="this.className='imageTwo'"
onMouseOut="this.className='imageOne'">
.
.
.
your text
.
.
.
</textarea>



Script Notes.:
--------------

In the style script, note that we set the background-color:000000;

This should usually be the same color as your image background colors,
and it's done to prevent flashing while the images are actually loaded.

Setting the color:ff0000; and color:00ff00; sets the text colors to red
and green, respectively, in this example; so change them to the colors
you wish to use in your design.

Note also that in IE, the images will scroll with the text; but with
NS6+'s less dynamic object model, the images may remain static.
__________________
fer
fgil2 está desconectado   Responder Citando
Respuesta

No hay votos aún.


Herramientas
Desplegado

Normas de Publicación
No puedes crear nuevos temas
No puedes responder temas
No puedes subir archivos adjuntos
No puedes editar tus mensajes

BB code is Activado
Caritas están Activado
[IMG] está Activado
Código HTML está Desactivado


La Zona horaria es GMT -6. Ahora son las 02:12.


Message Board Statistics

LinkBacks Enabled by vBSEO 3.1.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93