Slideshows in iRev

Sivakatirswami katir at hindu.org
Sun Dec 20 00:55:13 EST 2009


while waiting for the plug-in to settle down ( I can't deploy revlets 
until the update function is working)

 I've been playing with iRev engine.

Here's a slide show that uses an iRev template in an iFrame.

http://www.himalayanacademy.com/resources/lexicon/images/backgrounds/

this code is generated by iRev functions to set up links behind the 
previous and next buttons, where the buttons post the next slide and 
previous slide numbers and path to the irev page which then returns the 
slide with a new set of update buttons. I'm not really worried about the 
round trip to the server because the html here is so small, the CSS (not 
shown) is cached and you have to fetch the photos anyway, a little more 
html text is hardly an issue.

Now, I'm wondering if there is a way to make this thing drive itself, so 
the user does not have to click the next button, using iRev code.

 I suspect I can't really do that with iRev but will need some 
Javascript (which I don't know at all.)

<body>
<div id="slideShowStage">

<div id="storyTitle">
        Word of the Day Background Contributions    </div>
       <div id="slide">
        <img 
src="http://www.himalayanacademy.com//resources/lexicon/images/backgrounds/100_0967.jpg" 
alt="" height="420" width="700" />
    </div>
    <div id="caption">
            </div>
    <div id="slideNav">
        <a 
href="http://www.himalayanacademy.com/slideshows/templates/slideshow.irev?path=/resources/lexicon/images/backgrounds/&current_slide=11"target="slides-stage">

            <div class="buttonPrevious"> </div></a>
       
        <a 
href="http://www.himalayanacademy.com/slideshows/templates/slideshow.irev?path=/resources/lexicon/images/backgrounds/&current_slide=13" 
target="slides-stage">
            <div class="buttonNext"> </div>
        </a>
    </div>
    </div>

</body>

insights?

Sivakatirswami












More information about the use-livecode mailing list