-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello, I'm making a banner. I would like some help on adding an effect to the banner with jquery code (spanish: ayudenme con el efecto)!
<?page title="new page title" contentType="text/html;charset=UTF-8"?>
<window title="new page title" border="normal" xmlns:w='client'>
<zscript>
//numero de segundos
int countNum = 0;
//numero de imagenes
int numImagen = 0;
void restart() {
countNum = 10;
timer.start();
}
</zscript>
<image id="im" src="/imagen/imagen0.jpg" action="show: slideDown" ></image>
<timer id="timer" delay="5000" repeats="true">
<attribute name="onTimer">
//recorremos hasta que pase
numImagen = numImagen + 1;
im.setSrc("imagen/imagen"+numImagen+".jpg");
im.setAction("show: slideDown({duration: 1000}); hide: slideUp({duration: 300})");
if(numImagen >= 2) {
im.setAction("show: slideDown({duration: 1000}); hide: slideUp({duration: 300})");
numImagen = 0;
}
</attribute>
</timer>
</window>
Asked: 2013-04-06 17:05:49 +0800
Seen: 66 times
Last updated: Apr 12 '13