mardi 31 mars 2015

Usage of Pause and Play buttons in html5


<table>
<tr>
<td><div id="a">&#65;</div></td>
<td><div class="n">&#78;</div></td>
<td><div id="t">&#84;</div></td>
</tr>
</table>

/*script*/
function animateat() {
document.getElementById('audioTag1').play();
document.getElementById('audioTag1').play();
$("#a").animate(
{ "top": "300px", "color": "white" },
2000, function () {
$("#t").animate({ "top": "300px", "color": "white"
},
2000,function () {
$("#t").animate(
{ "left": "760px" },1000);
}
);
}
/*html*/
<body onload="animatepaapa();">
<audio id="audioTag1" src="paara.wav" preload="auto">
<code>audio</code>


I am developing a scene using HTML5, CSS and JS as shown above, in which I want to use the play, pause and as well as the replay button.


If there is a way please suggest me.


Aucun commentaire:

Enregistrer un commentaire