Jump to content
Sign in to follow this  
fNKro

Auto-play music in index?

Recommended Posts

<audio autoplay loop>
<source src="muzica.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>

 

am codul asta in index si nu imi porneste melodia cand accesez indexul ,porneste muzica doar cand dau pe logo

Share this post


Link to post
Share on other sites

da l-am pus unde e si index-ul si melodia 4.mp3

si formatul este asta  : 

  <audio autoplay loop>
<source src="4.mp3" type="audio/mpeg">
Your browser does not support the audio element.
</audio>

Share this post


Link to post
Share on other sites

incearca asa

	<p align="fl_left"><audio autoplay> 

  <source src="4.ogg" type="audio/ogg">

  <source src="4.mp3" type="audio/mpeg">

  Your browser does not support the audio element.

</audio> </p>	

 

Share this post


Link to post
Share on other sites
5 hours ago, fNKro said:

e la fel doar cand dau pe banner se aude  @-coLd-

	<p align="fl_left"><audio autoplay> 

  <source src="4.ogg" type="audio/ogg">

  <source src="4.mp3" type="audio/mpeg">

  Your browser does not support the audio element.

</audio> </p>	

<script>
    function setHalfVolume() {
        var myAudio = document.getElementById("audio");
        myAudio.volume = 0.2;
    }
</script>

 

Share this post


Link to post
Share on other sites
<iframe src="silence.mp3" allow="autoplay" id="audio" style="display: none"></iframe>

 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...