<!DOCTYPE html> <html> <head> <title>Image Player</title> <script> var player; window.onload = function() { player= document.getElementById('player'); } function playimage() { player.play(); } function pauseimage() { player.pause(); } function stopimage() { player.pause(); player.currentTime=0; } </script> </head> <body> <audio controls="controls" id="player"> imageSorce[0]="IMAG1974-1.jpg"; imageSorce[1]="gh.jpg"; imageSorce[2]="IMAG1971.jpg"; </audio> <button onclick="playimage()">Play</button><br /> <button onclick="pauseimage()">Pause</button><br /> <button onclick="stopimage()">Stop</button><br /> </body> </html>
<audio controls="controls" id="player"> imageSorce[0]="IMAG1974-1.jpg"; imageSorce[1]="gh.jpg"; imageSorce[2]="IMAG1971.jpg"; </audio> How should I do this with image control in javascript?
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)