This simple code changes sounds in firefox, IE, safari, and chrome but will not switch in Opera. Any thoughts?

<div id="playlist"style="position: absolute; z-index:10001; top: 0px; width: 100%; height: 100%;">

    <button id="one" onclick="song1();">Mello</button>        
    <button id="two" onclick="song2();">Its Time</button>         
    <button id="three" onclick="song3();">Its on now</button>

<div id="hideme" style="width: 392px">
    <audio id ="audio" controls loop>
        <source id="oggSource" src="sounds/Starset.ogg" type="audio/ogg">
        <source id="mp3Source" src="sounds/Starset.mp3" type="audio/mpeg">  
        Your browser does not support the audio element.
    </audio>     
</div>
</div>

Sorry I forgot to post the Javascript:

<script>

var song1 = function () {
document.getElementById('audio').src = 'sounds/Starset.ogg';
document.getElementById('audio').src = 'sounds/Starset.mp3';


var audioEl = document.getElementById("audio");

            audioEl.load();
            audioEl.play();
}
var song2 = function() {
document.getElementById('audio').src = 'sounds/jt.ogg';
document.getElementById('audio').src = 'sounds/jt.mp3';

var audioEl = document.getElementById("audio");

            audioEl.load();
            audioEl.play();
}
var song3 = function() {
document.getElementById('audio').src = 'sounds/dtd.ogg';
document.getElementById('audio').src = 'sounds/dtd.mp3';

var audioEl = document.getElementById("audio");

            audioEl.load();
            audioEl.play();
}

</script>
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.