Displaying 1 result from an estimated 1 matches for "img_appear".
2005 Sep 20
2
script.aculo.us: pause before effect.appear
...oad. I would like to have
the images randomly appear at different times; e.g. the 3rd image might
start appearing 2 seconds after load, the 6th image immediately after load,
the first image 1 second after load, etc...
How can I achieve this affect?
--- example HTML and Javascript ---
function img_appear() {
var ndur=2, nstart=1, nend=22;
for(var loop = nstart; loop < nend; loop++)
{
var nid=''a''+loop;
new Effect.Appear(nid, {transition: Effect.Transitions.linear, duration:
ndur});
}
}
<body onload="img_appear()">
<div class="images">
<img s...