0

add effect to banner image

asked 2013-04-06 17:05:49 +0800

caesru gravatar image caesru
6

updated 2013-04-12 09:33:15 +0800

neillee gravatar image neillee flag of Taiwan
1692 1 5
https://plus.google.com/u...

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>
delete flag offensive retag edit
Be the first one to answer this question!
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2013-04-06 17:05:49 +0800

Seen: 66 times

Last updated: Apr 12 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More