title: Javascript play and pause a song with one click on the same image
body: <p>Hi im trying to have a song play when i click and pause when i click it again however it only seems to be playing this is the code below:</p>
  
  <p>Javascript</p>
  
  <pre><code> function StartOrStop(audioFile)
    {
      var audie = document.getElementById("myAudio");
      if(!audie.src) 
         audie.src = audioFile;
      if(audie.paused == false)
       {
          audie.pause();
       }
       else
       {
         audie.play();
       }
    }
  </code></pre>
  
  <p>HTML5 </p>
  
  <pre><code>&lt;img src="images/play.png" alt="Play Button width="57" height="50" onclick="StartOrStop('RWY.mp3')" &gt;
  </code></pre>
  
  <p>Any suggestion on how i can fix it ?</p>