Byter Posted December 6, 2007 at 03:02 PM Report Share #152654 Posted December 6, 2007 at 03:02 PM É o seguinte. Tenho este script que podem ver a baixo mas quero que ele nao comece automaticamente. Conseguem ajudar-me? <script type="text/javascript"> var mediaplayer_object_ff='<embed src="http://housebox.pt/housebox.asx" width="0" height="0" ="http://housebox.pt/housebox.asx" filename="http://housebox.pt/housebox.asx" url="http://housebox.pt/housebox.asx"></embed>'; function media_play() { if (navigator.userAgent.indexOf('MSIE') != -1) { document.Player.controls.play(); } else { document.getElementById('media').innerHTML=mediaplayer_object_ff; } } function media_stop() { if (navigator.userAgent.indexOf('MSIE') != -1) { document.Player.controls.stop(); } else { document.getElementById('media').innerHTML=""; } } </script> <body onLoad="media_stop()"> <base target="_self"> <div id="media"> <object classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" name="Player" width="0" height="0"> <param name="URL" value> <param name="rate" value="1"> <param name="balance" value="0"> <param name="currentPosition" value="0"> <param name="defaultFrame" value> <param name="playCount" value="1"> <param name="autoStart" value="0"> <param name="currentMarker" value="0"> <param name="invokeURLs" value="-1"> <param name="baseURL" value> <param name="volume" value="100"> <param name="mute" value="0"> <param name="uiMode" value="full"> <param name="stretchToFit" value="0"> <param name="windowlessVideo" value="0"> <param name="enabled" value="-1"> <param name="enableContextMenu" value="-1"> <param name="fullScreen" value="0"> <param name="SAMIStyle" value> <param name="SAMILang" value> <param name="SAMIFilename" value> <param name="captioningID" value> <param name="enableErrorDialogs" value="0"> <embed src="http://housebox.pt/housebox.asx" width="0" height="0" ="http://housebox.pt/housebox.asx" filename="http://housebox.pt/housebox.asx" url="http://housebox.pt/housebox.asx" name="Player"></embed> </object></div></td> <div style="position: absolute; width: 38px; height: 52px; z-index: 3; left: 863px; top: 0px" id="layer3"> <img src="http://www.housebox.pt/player/image/play.png" style="cursor:pointer" onclick="media_play()" alt="Reproduzir!" width="20" height="20" border="0" /></div> <div style="position: absolute; width: 38px; height: 52px; z-index: 2; left: 881px; top: 0px" id="layer2"> <img src="http://www.housebox.pt/player/image/pause.png" style="cursor:pointer" onclick="media_stop()" alt="Parar!" width="20" height="20" border="0" /> <script type="text/javascript"> var s = new Slider(document.getElementById("slider-1"),document.getElementById("slider-input-1")); s.setValue(50); s.onchange = function () { document.Player.settings.volume=s.getValue(); } </script> Byter, Tech Tuga CEO O Meu Blog! Link to comment Share on other sites More sharing options...
djthyrax Posted December 6, 2007 at 07:12 PM Report Share #152711 Posted December 6, 2007 at 07:12 PM Então queres que comece quando? Não peças ajuda por PM! A tua dúvida vai ter menos atenção do que se for postada na secção correcta do fórum! Link to comment Share on other sites More sharing options...
Byter Posted December 7, 2007 at 12:43 PM Author Report Share #152857 Posted December 7, 2007 at 12:43 PM Quando se carrega no Play LOL! Byter, Tech Tuga CEO O Meu Blog! Link to comment Share on other sites More sharing options...
djthyrax Posted December 7, 2007 at 05:38 PM Report Share #152925 Posted December 7, 2007 at 05:38 PM <script type="text/javascript"> var mediaplayer_object_ff='<embed src="http://housebox.pt/housebox.asx" width="0" height="0" filename="http://housebox.pt/housebox.asx" url="http://housebox.pt/housebox.asx"></embed>'; function media_play() { if (navigator.userAgent.indexOf('MSIE') != -1) { document.Player.controls.play(); } else { document.getElementById('media').innerHTML=mediaplayer_object_ff; } } function media_stop() { if (navigator.userAgent.indexOf('MSIE') != -1) { document.Player.controls.stop(); } else { document.getElementById('media').innerHTML=""; } } </script> <body onLoad="media_stop()"> <base target="_self"> <div id="media"> <div style="position: absolute; width: 38px; height: 52px; z-index: 3; left: 863px; top: 0px" id="layer3"> <img src="http://www.housebox.pt/player/image/play.png" style="cursor:pointer" onclick="media_play()" alt="Reproduzir!" width="20" height="20" border="0" /></div> <div style="position: absolute; width: 38px; height: 52px; z-index: 2; left: 881px; top: 0px" id="layer2"> <img src="http://www.housebox.pt/player/image/pause.png" style="cursor:pointer" onclick="media_stop()" alt="Parar!" width="20" height="20" border="0" /> <script type="text/javascript"> var s = new Slider(document.getElementById("slider-1"),document.getElementById("slider-input-1")); s.setValue(50); s.onchange = function () { document.Player.settings.volume=s.getValue(); } </script> Deve chegar. Não peças ajuda por PM! A tua dúvida vai ter menos atenção do que se for postada na secção correcta do fórum! Link to comment Share on other sites More sharing options...
Byter Posted December 7, 2007 at 06:24 PM Author Report Share #152939 Posted December 7, 2007 at 06:24 PM Nao me parece... Ele desaparece... Byter, Tech Tuga CEO O Meu Blog! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now