w0o0t Skrevet 4. september 2009 Del Skrevet 4. september 2009 Hoy! Funnet et godt nettradioscript jeg kan bruke på siden min. SCRIPTET: <!-- Nettradio og mp3spiller start --> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="200" id="AutoNumber1"> <tr> <td width="199" align="left"> <script LANGUAGE="JavaScript"> <!-- function openPlayer() { var args = openPlayer.arguments; if (args.length > 0) { var playerKey = args[0]; var url = "http://www.nwrweb.com/player/show/" + playerKey + "/"; if (args.length > 1) { url += args[1] + "/"; } if (args.length > 2) { url += args[2]; } var player = window.open(url, "NWRPlayer", "width=525,height=424,scrollbars=no,resizable=no"); player.focus(); } } //--> </SCRIPT> <table width=199 border=0 cellspacing=0 style="border-collapse: collapse" bordercolor="#111111"> <tr> <td width="199"> <p align="left"> </small> </td> </tr> <tr> <td width="199"><form NAME="webradio"> <p> <small> <SELECT NAME="stations" style="FONT-SIZE:10px; FONT-FAMILY: verdana;width:132px"> <OPTION VALUE="nrk.p1">NRK P4 </SELECT> <INPUT TYPE="button" style="FONT-SIZE:10px; FONT-FAMILY: verdana" VALUE="Åpne" onClick="openPlayer('dagbladet.no',this.form.stations.options[this.form.stations.options.selectedIndex].value);"> </small> </p> </td> </tr> <tr><td width="199"></form></td></tr> </table> <!-- Add this script to show randomized default station in dropdown. --> <script LANGUAGE="JavaScript"> <!-- var indexList = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18); var stations = document.forms["webradio"].stations; var rand = Math.floor(Math.random() * indexList.length); stations.selectedIndex = indexList[rand]; //--> </SCRIPT> _______________________________________ Men <OPTION VALUE="nrk.p1">NRK P4 der vil jeg ha en annen radio istedet for P4. Noen som vet hvordan jeg gjør det? Lenke til kommentar
w0o0t Skrevet 4. september 2009 Forfatter Del Skrevet 4. september 2009 <!-- Nettradio og mp3spiller start --> <table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="200" id="AutoNumber1"> <tr> <td width="199" align="left"> <script LANGUAGE="JavaScript"> <!-- function openPlayer() { var args = openPlayer.arguments; if (args.length > 0) { var playerKey = args[0]; var url = "http://www.nwrweb.com/player/show/" + playerKey + "/"; if (args.length > 1) { url += args[1] + "/"; } if (args.length > 2) { url += args[2]; } var player = window.open(url, "NWRPlayer", "width=525,height=424,scrollbars=no,resizable=no"); player.focus(); } } //--> </SCRIPT> <table width=199 border=0 cellspacing=0 style="border-collapse: collapse" bordercolor="#111111"> <tr> <td width="199"> <p align="left"> </small> </td> </tr> <tr> <td width="199"><form NAME="webradio"> <p> <small> <SELECT NAME="stations" style="FONT-SIZE:10px; FONT-FAMILY: verdana;width:132px"> <OPTION VALUE="Nrkp1.no">NRK P1 <OPTION VALUE="kanal24.no">Kanal24 <OPTION VALUE="p4.norge">P4 Norge <OPTION VALUE="radio1oslo">Radio 1 Oslo <OPTION VALUE="nrj.no">NRJ - ENERGY <OPTION VALUE="klemfm">Klem FM <OPTION VALUE="radioadressa">RadioAdressa <OPTION VALUE="radiotango">Radio Tango <OPTION VALUE="nrk.p2">NRK P2 <OPTION VALUE="nrk.petre">NRK Petre <OPTION VALUE="nrk.mpetre">NRK mPetre <OPTION VALUE="nrk.alltidnyheter">NRK Alltid Nyheter <OPTION VALUE="radio1bergen">Radio 1 Bergen <OPTION VALUE="radio1trondheim">Radio 1 Trondheim <OPTION VALUE="radio1stavanger">Radio 1 Stavanger <OPTION VALUE="nrk.alltidklassisk">NRK Alltid Klassisk <OPTION VALUE="nrk.europakanalen">NRK Europakanalen <OPTION VALUE="nrk.samiradio">NRK Sámi Radio <OPTION VALUE="nrk.stortinget">NRK Stortinget </SELECT> <INPUT TYPE="button" style="FONT-SIZE:10px; FONT-FAMILY: verdana" VALUE="Åpne" onClick="openPlayer('dagbladet.no',this.form.stations.options[this.form.stations.options.selectedIndex].value);"> </small> </p> </td> </tr> <tr><td width="199"></form></td></tr> </table> <!-- Add this script to show randomized default station in dropdown. --> <script LANGUAGE="JavaScript"> <!-- var indexList = new Array(0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18); var stations = document.forms["webradio"].stations; var rand = Math.floor(Math.random() * indexList.length); stations.selectedIndex = indexList[rand]; //--> </SCRIPT> Sånn ser scriptet ut egentlig om det hjelper noe. Lenke til kommentar
w0o0t Skrevet 5. september 2009 Forfatter Del Skrevet 5. september 2009 Ingen som kan hjelpe? Lenke til kommentar
w0o0t Skrevet 5. september 2009 Forfatter Del Skrevet 5. september 2009 Never mind, fiksa problemet Have a look: http://www.aasmund.co.uk/Index.html Lenke til kommentar
Anbefalte innlegg
Opprett en konto eller logg inn for å kommentere
Du må være et medlem for å kunne skrive en kommentar
Opprett konto
Det er enkelt å melde seg inn for å starte en ny konto!
Start en kontoLogg inn
Har du allerede en konto? Logg inn her.
Logg inn nå