28.12.2016, 11:26
Witam otóż posiadam taki kodzik na muzykę:
Cytat:I podczas wejśćia na forum ona nie odtwarza się automatycznie tylko trzeba wyłączyć i jeszcze raz włączyć żeby leciała muzyka. Co zrobić żeby ona się odtwarzała automatycznie ?Kod PHP:<style type="text/css">.playerbutton{z-index:999;position: fixed;right:0px;bottom:5%;cursor:pointer;border:none;background:transparent;outline:none;display:inline}.gaf210codes_youtubebox,.preload_box{width:1px;height:1px;overflow:hidden;visibility:hidden;position:absolute;display:inline}</style>
<script type="text/javascript" src="http://www.youtube.com/player_api"></script>
<script type="text/javascript">function toggleButtonPlayer_v3Y28(buttonobj){buttonobj.style.display="none";if(buttonobj.id=="gaf210codes-v3Y28-playbutton"){document.getElementById("gaf210codes-v3Y28-pausebutton").style.display="inline";}else{document.getElementById("gaf210codes-v3Y28-playbutton").style.display="inline";}}</script>
<div class="gaf210codes_youtubebox"><iframe width="250" height="250" src="https://www.youtube.com/embed/eI3dFEVCCBw?enablejsapi=1&fs=0&rel=0&showinfo=0&modestbranding=1&iv_load_policy=3&controls=0&autoplay=0&loop=0" onload="gaf210codes_v3Y28=new YT.Player(this)" id="widget2"></iframe></div>
<button type="button" class="playerbutton" id="gaf210codes-v3Y28-playbutton" onclick="gaf210codes_v3Y28.playVideo();toggleButtonPlayer_v3Y28(this)" style="display: none;"><img src="http://i57.tinypic.com/24y9x88.jpg"></button><button type="button" class="playerbutton" id="gaf210codes-v3Y28-pausebutton" onclick="gaf210codes_v3Y28.pauseVideo();toggleButtonPlayer_v3Y28(this)" style="display: inline;"><img src="http://i62.tinypic.com/2j163ac.jpg"></button><div class="preload_box"><img src="http://i57.tinypic.com/24y9x88.jpg"><img src="http://i62.tinypic.com/2j163ac.jpg"></div>