Forum Replies Created

  • Alex Avila

    April 4, 2012 at 11:10 am in reply to: Sound effect in a web page

    I just discovered that what I was trying to do is impossible, because the volume atribute can’t be changed when the page has been loaded.

    So, definitely I will continue your way. I will tell you my progress.

  • Alex Avila

    April 4, 2012 at 9:05 am in reply to: Sound effect in a web page

    Wow, thank you very much for your replays. You’ve done a great work.

    I’m a beginner in javascript (and jquery) so I would like to know if we can repeat the same process 3 times in the same page. I mean that I want to use three sounds with 3 different coordinates.

    In other sense, for make it universal, yesterday I was trying to do something with the EMBED tag. I know it is disused, but it still works in all of browsers (except opera). I developed this code:

    <script type="text/javascript">
    function sonido1() {
    var volumenup = document.getElementById(molinillo);
    volumenup.volume = 100;

    }

    function capasAnidadas() {
    for (var i=400; i>150; i--) {
    inversa = (400-i)/2;
    document.write('

    style="position

    : absolute; margin:’ + (inversa) + ‘px; ‘ + ‘width:’ + (i) + ‘px; ‘ + ‘height:’ + (i) + ‘px” class=”cajas”>’ + ‘style=”width:400px; height:400px; position:relative; left:200px; top:200px; background:#000″ onmouseover=”sonido1()”>
    <script type=”text/javascript”>
    capasAnidadas();

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy