play sound html

Upload: patrser

Post on 08-Jan-2016

5 views

Category:

Documents


0 download

DESCRIPTION

How to play music in a web page

TRANSCRIPT

function PlayMySound(soundobj) { var thissound=document.getElementById(soundobj); thissound.play();}function PauseMySound(soundobj) { var thissound=document.getElementById(soundobj); thissound.pause();}function ShowPlayer (addr) { var thisdiv=document.getElementById(addr); thisdiv.style.display = "inline";}function HidePlayer (addr) { var thisdiv=document.getElementById(addr); thisdiv.style.display = "none";}

dmonstration

HTML5 audio not supported.

BGSOUND

HTML5 audio non support! musique

PLAYER n1

musique

PLAYER n2

HTML5 audio non support! musique

IMAGE

HTML5 audio not supported.

Bizet
Stop