|
Comunitatea uCoz Altele Instrumente şi Script-uri Script HTML |
Script HTML |
Salut...Am creat un document HTML in pagebreeze cu un player sopcast si as vrea sa pun 2 butoane sub player(sursa 1,2) si cand dau click pe unul dintre butoane,sa nu dispara pagina, doar playerul sa se schimbe...Pot primi un help?
Material modificat de Kent - Luni, 26/08/2013, 4:11 AM
|
Kent, candva de mult am gasit unui prieten un astfel de script
Cod <div><table style="width: 503px; height: 217px; text-align: left;" align="left" border="0" cellpadding="2" cellspacing="2"> <tbody> <tr> <td> <div style="margin-left: 40px; font-family: Arial;"> <h1 style="color: rgb(255, 255, 255);"> <script type="text/JavaScript" language="JavaScript"> //<![CDATA[ <!-- function MM_reloadPage(init) { //reloads the window if Nav4 resized if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) { document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }} else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload(); } MM_reloadPage(true); function reloadPlayer(url) { content=''; // content+=url+' '; content+='<embed name="player" src="'+url+'" type="application/x-mplayer2" width="480" height="380" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"'; content+=' ShowControls="1" '; content+=' ShowStatusBar="1" '; content+=' loop="true" '; content+=' EnableContextMenu="0" '; content+=' DisplaySize="0" '; content+='>'; content+='<param name="Showcontrols" value="False">'; content+='</embed>'; getObject('playersource').innerHTML=content; } function getObject(objectId) { retVal=false; if(document.getElementById ) { retVal= document.getElementById (objectId); } if (document.getElementById) { retVal= document.getElementById (objectId); } else if (document.layers) { retVal=document.layers[objectId]; } else if (document.all) { retVal=document.all[objectId]; } return retVal; } //--> //]]> </script></h1> <table style="width: 100%; height: 100%; background-color: rgb(0, 0, 0);" width="" align="" border="1" cellpadding="0" cellspacing="0"> <tbody> <tr> <td style="vertical-align: top; width: 652px; background-color: rgb(0, 0, 0);"> <div style="color: rgb(255, 255, 255);" id="playersource"> </div> <table style="width: 427px; color: rgb(255, 255, 255); height: 33px; background-color: rgb(0, 0, 0);"> <tbody> <tr> <td style="width: 66px; text-align: left;"> <div align="left"><span style="font-size: 8pt; font-family: verdana;">Filmu: </span></div></td> <td> <form method="get" name="what"> <select name="url" onchange="reloadPlayer(url.value);" style="width: 200px;"> <option>Alege filmul</option> <option value="mms://ns.alfanet.ro/filme/adevarulrastalmacit.wmv">Adevarul rastalmacit</option> <option value="mms://ns.alfanet.ro/filme/agentul_imobiliar.wmv">Agentul imobiliar</option> <option></option> </select> </form></td> </tr> </tbody> </table></td> </tr> </tbody> </table></div></td> </tr> </tbody> </table></div>a Cod <option value="mms://ns.alfanet.ro/filme/adevarulrastalmacit.wmv">Adevarul rastalmacit</option> schimbi cu datele tale exemplu vezi aici http://iedidia.ucoz.com/index/0-30 |
| |||
| |||