Visualizzazione dei risultati da 1 a 2 su 2
  1. #1

    Script disattivare musica

    Salve,

    mi servirebbe uno script lato client che disattivi o attivi il volume della musica semplicemente cliccando la checkbox!!

    Qualcuno mi saprebbe aiutare??

    grazie
    http://codecanyon.net/category/all?ref=Manuelandro
    And I bet she told a million people that she'd stay in touch, Well all the little promises they dont mean much,When theres
    memories to be made

  2. #2
    Utente bannato
    Registrato dal
    Jun 2004
    Messaggi
    1,854
    <BGSOUND id="BGSOUND_ID" LOOP=1 SRC="jsilence.mid">
    <EMBED NAME="Bach" SRC="Bach.mid"
    LOOP=FALSE AUTOSTART=FALSE HIDDEN=TRUE MASTERSOUND>

    <script language="JavaScript">
    <!--
    ver=parseInt(navigator.appVersion)
    ie4=(ver>3 && navigator.appName!="Netscape")?1:0
    ns4=(ver>3 && navigator.appName=="Netscape")?1:0
    ns3=(ver==3 && navigator.appName=="Netscape")?1:0

    function playSound() {
    if (ie4) document.all['BGSOUND_ID'].src='Bach.mid';
    if ((ns4||ns3)
    && navigator.javaEnabled()
    && navigator.mimeTypes['audio/x-midi']
    && self.document.Bach.IsReady()
    )
    {
    self.document.Bach.play()
    }
    }

    function stopSound() {
    if (ie4) document.all['BGSOUND_ID'].src='jsilence.mid';
    if ((ns4||ns3)
    && navigator.javaEnabled()
    && navigator.mimeTypes['audio/x-midi']
    )
    {
    self.document.Bach.stop()
    }
    }
    //-->
    </script>

    <form name=myform>
    <input type=button value="Play Sound" onClick="playSound()">
    <input type=button value="Stop Sound" onClick="stopSound()">
    </form>


    in 30 secondi su google

Permessi di invio

  • Non puoi inserire discussioni
  • Non puoi inserire repliche
  • Non puoi inserire allegati
  • Non puoi modificare i tuoi messaggi
  •  
Powered by vBulletin® Version 4.2.1
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved.