Team:ETH Zurich/Templates/FlashAuto

From 2011.igem.org

(Difference between revisions)
(Created page with "<html> <div class="center"> <div class="thumb tnone"> <div class="thumbinner" style="width:</html>{{{widthP2}}}<html>px;"> <div id="</html>{{{name}}}<html>" align="center" style...")
 
(3 intermediate revisions not shown)
Line 4: Line 4:
<div class="thumb tnone">
<div class="thumb tnone">
<div class="thumbinner" style="width:</html>{{{widthP2}}}<html>px;">
<div class="thumbinner" style="width:</html>{{{widthP2}}}<html>px;">
-
<div id="</html>{{{name}}}<html>" align="center" style="display: block"> </div>
+
<div id="</html>{{{name}}}<html>" align="center" style="display: block; padding: 0px !important;"> </div>
-
<div class="thumbcaption"></html>{{{text|}}}<html><br /><i>Press play to start video!</i> <div class="magnify"><a href="</html>{{{url|#}}}<html>" class="internal" title="Enlarge"><img src="/wiki/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div></div></div></div></div>
+
<div class="thumbcaption">
 +
<div class="magnify"><a href="</html>{{{url|#}}}<html>" class="internal" title="Enlarge"><img src="/wiki/skins/common/images/magnify-clip.png" width="15" height="11" alt="" /></a></div>
 +
</html>{{{text|}}}<html> </div></div></div></div>
Line 18: Line 20:
width: </html>{{{width}}}<html>,
width: </html>{{{width}}}<html>,
height: </html>{{{height}}}<html>,
height: </html>{{{height}}}<html>,
-
play: </html>{{{play|false}}}<html>,
+
play: </html>true<html>,
loop: false,
loop: false,
quality: 'best'
quality: 'best'
});
});
                 if (</html>{{{timeOut|false}}}<html>)
                 if (</html>{{{timeOut|false}}}<html>)
-
                         setTimeout("$('#</html>{{{name}}}<html>').flash();",</html>{{{timeOut|0}}}<html>);
+
                         setTimeout("</html>{{{name}}}<html>_play();",</html>{{{timeOut|0}}}<html>);
}
}
);
);
Line 32: Line 34:
function() {
function() {
this.Play();
this.Play();
 +
                if (</html>{{{timeOut|false}}}<html>)
 +
                        setTimeout("</html>{{{name}}}<html>_play();",</html>{{{timeOut|0}}}<html>);
}
}
);
);

Latest revision as of 19:12, 26 October 2011