Opgradering af mediaplayer (Net Radio)
Er her nogen der kan få min volume knappen til at virke optimalt i dette system?<HTML><HEAD><TITLE>Line-Web NetRadio</TITLE>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<SCRIPT language=JavaScript>
var volBar, volRib;
var d=document;
var volOffset=0;
var volAdjEnabled = false;
radiofilename_1 = "http://dix.media.webpartner.dk/voice,images/voice.gif,www.thevoice.fm,The Voice";
radio = radiofilename_1;
radionavn = "..";
function showbufferingprogress() {
progressstatus = document.mp1.BufferingProgress;
if (progressstatus != 100) {
document.progress.loader.value="Loader: " + progressstatus + "% ->" + radionavn;
setTimeout("showbufferingprogress();",1000);
} else {
document.progress.loader.value="" + radionavn;
userid = "41";
receiver = "41";
func = "radiobanner";
tekst = radio;
userid = escape(userid);
receiver = escape(receiver);
func = escape(func);
tekst = escape(tekst);
samlet = "userid="+userid+"&receiver="+receiver+"&func="+func+"&tekst="+tekst;
val = parent.document.chatapp.rs(samlet);
}
}
function setradio() {
var selectedItem = document.progress.radiokanaler.selectedIndex;
var selectedItemValue = document.progress.radiokanaler.options[selectedItem].value;
var selectedItemText = document.progress.radiokanaler.options[selectedItem].text;
if (selectedItem != 0) {
radio = eval(selectedItemValue);
splitted = radio.split(",");
var radiourl = splitted[0];
radionavn = splitted[3];
} else {
document.mp1.Stop();
document.progress.loader.value="Line-Web. Stoppet!";
radio = "";
radiourl = "";
}
if ((navigator.userAgent.indexOf("IE") > -1) && (navigator.platform == "Win32")) {
if (radiourl != "") {
mp1.autoStart = true;
mp1.Filename = radiourl;
setTimeout("showbufferingprogress()",1000);
} else
mp1.autoStart = false;
} else {
if (radiourl != "") {
document.mp1.SetAutoStart(true);
document.mp1.SetFileName(radiourl);
setTimeout("showbufferingprogress()",1000);
} else
document.mp1.SetAutoStart(false);
}
}
privateopened=0;
function openprivate() {
// Åbner "vindue" der kun viser private beskeder
privateopened=1;
}
function closeprivate() {
// Lukker "vindue" der kun viser private beskeder
if (privateopened==1) {
// Lukker kun hvis der er åbnet
privateopened=0;
}
}
function getPos(elm) {
for(var zx=zy=0;elm!=null;zx+=elm.offsetLeft,zy+=elm.offsetTop,elm=elm.offsetParent);
return {x:zx,y:zy}
}
function getProc(e) {
e = (window.event)? window.event : e;
proc = Math.round( ((e.clientX-volOffset)/volBar.offsetWidth)*100 );
return (proc<0)? 0 : (proc>100)? 100 : proc;
}
function setVol(proc) {
if (d.all) mp1.Settings.volume = proc;
else d.mp1.Settings.volume = proc;
}
function mDown(e) {
var proc;
volOffset = getPos(volBar).x;
d.onmousemove = mMove
d.onmouseup = function() {
volAdjEnabled = false;
}
proc = getProc(e);
setVol(proc);
volRib.style.width = proc + "%";
volAdjEnabled = true;
}
function mMove(e) {
var proc;
if (!volAdjEnabled) return;
proc = getProc(e);
setVol(proc);
volRib.style.width = proc + "%";
}
window.onload = function() {
volRib = d.getElementById("volRib");
volBar = d.getElementById("volBar");
}
</SCRIPT>
<META content="Microsoft FrontPage 6.0" name=GENERATOR>
<style type="text/css">A:link {
COLOR: #000000; TEXT-DECORATION: none
}
A:visited {
COLOR: #000000; TEXT-DECORATION: none
}
A:active {
COLOR: #000000; TEXT-DECORATION: none
}
A:hover {
COLOR: #ffffff; TEXT-DECORATION: none
}
body, html {
height: 100%;
margin: 0px;
padding: 0px;
}
#volBar, #volRib {
font-size: 0px;
line-height: 0px;
}
#volBar {
position: relative;
width: 350px;
height: 5px;
border: 2px inset white;
background-color: #cccccc;
cursor: hand;
cursor: pointer;
}
#volRib {
position: absolute;
left: 0px;
top: 0px;
height: 5px;
background-color: #c3e0ff;
z-index: 100;
}
</style>
</HEAD>
<BODY oncontextmenu="return false" onselectstart="return false"
ondragstart="return false" bottomMargin=0 bgColor=#666666 leftMargin=0
topMargin=0 rightMargin=0 marginheight="0" marginwidth="0">
<CENTER><NOBR>
<DIV id="wmplayer" style="VISIBILITY: hidden; WIDTH: 0px; HEIGHT: 0px">
<OBJECT id="mp1" height=11 width=84
classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<PARAM NAME="URL" VALUE="http://dix.media.webpartner.dk/voice">
<PARAM NAME="ShowControls" VALUE="0">
<PARAM NAME="TransparentAtStart" VALUE="-1">
<PARAM NAME="AutoStart" VALUE="0">
<PARAM NAME="AnimationatStart" VALUE="0">
<PARAM NAME="autoSize" VALUE="0">
<PARAM NAME="displaySize" VALUE="0">
<PARAM NAME="AudioStream" VALUE="-1">
<PARAM NAME="AllowScan" VALUE="-1">
<PARAM NAME="AllowChangeDisplaySize" VALUE="-1">
<PARAM NAME="AutoRewind" VALUE="0">
<PARAM NAME="Balance" VALUE="0">
<PARAM NAME="BaseURL" VALUE="">
<PARAM NAME="BufferingTime" VALUE="5">
<PARAM NAME="CaptioningID" VALUE="">
<PARAM NAME="ClickToPlay" VALUE="-1">
<PARAM NAME="CursorType" VALUE="0">
<PARAM NAME="CurrentPosition" VALUE="-1">
<PARAM NAME="CurrentMarker" VALUE="0">
<PARAM NAME="DefaultFrame" VALUE="">
<PARAM NAME="DisplayBackColor" VALUE="0">
<PARAM NAME="DisplayForeColor" VALUE="16777215">
<PARAM NAME="DisplayMode" VALUE="0">
<PARAM NAME="Enabled" VALUE="-1">
<PARAM NAME="EnableContextMenu" VALUE="-1">
<PARAM NAME="EnablePositionControls" VALUE="-1">
<PARAM NAME="EnableFullScreenControls" VALUE="0">
<PARAM NAME="EnableTracker" VALUE="-1">
<PARAM NAME="InvokeURLs" VALUE="-1">
<PARAM NAME="Language" VALUE="-1">
<PARAM NAME="Mute" VALUE="0">
<PARAM NAME="PlayCount" VALUE="1">
<PARAM NAME="PreviewMode" VALUE="0">
<PARAM NAME="Rate" VALUE="1">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMIFileName" VALUE="">
<PARAM NAME="SelectionStart" VALUE="-1">
<PARAM NAME="SelectionEnd" VALUE="-1">
<PARAM NAME="SendOpenStateChangeEvents" VALUE="-1">
<PARAM NAME="SendWarningEvents" VALUE="-1">
<PARAM NAME="SendErrorEvents" VALUE="-1">
<PARAM NAME="SendKeyboardEvents" VALUE="0">
<PARAM NAME="SendMouseClickEvents" VALUE="0">
<PARAM NAME="SendMouseMoveEvents" VALUE="0">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">
<PARAM NAME="ShowCaptioning" VALUE="0">
<PARAM NAME="ShowAudioControls" VALUE="-1">
<PARAM NAME="ShowDisplay" VALUE="0">
<PARAM NAME="ShowGotoBar" VALUE="0">
<PARAM NAME="ShowPositionControls" VALUE="-1">
<PARAM NAME="ShowStatusBar" VALUE="0">
<PARAM NAME="ShowTracker" VALUE="-1">
<PARAM NAME="VideoBorderWidth" VALUE="0">
<PARAM NAME="VideoBorderColor" VALUE="0">
<PARAM NAME="VideoBorder3D" VALUE="0">
<PARAM NAME="Volume" VALUE="0">
<PARAM NAME="WindowlessVideo" VALUE="0">
<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
src="http://dix.media.webpartner.dk/voice" name="mp1" width="0" height="0"
AutoStart="0" transparentAtStart="1" autostart="0" animationAtStart="0"
ShowControls="0" autoSize="0" displaySize="0"></OBJECT></DIV>
<TABLE height=20 width=101>
<TBODY>
<TR>
<TD align=middle height=16><NOBR><FONT color=#ffffff><B><IFRAME border=0
name=Navn src="name/navn.htm" frameBorder=0 width=91
scrolling=no height=22>
Line-web</IFRAME></B></FONT></NOBR><FONT
color=#ffffff><B><BR>NetRadio<BR><BR> </B></FONT></TD></TR>
<TR>
<TD align=middle height=8>
<FORM name=progress action=java script:void(0); method=post><NOBR><INPUT
style="FONT-SIZE: 10px; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #c3e0ff"
size=19 value="Line-Web NetRadio" name=loader><BR><SELECT class=dropdown
style="PADDING-LEFT: 0px; FONT-SIZE: 10px; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; FONT-FAMILY: Verdana; BACKGROUND-COLOR: #c3e0ff"
onchange=setradio();parent.chatfield.inputtext.chatmessage.focus(); size=1
name=radiokanaler>
<OPTION selected>Play/Stop radio
<OPTION value=radiofilename_1;>The Voice</OPTION>
</SELECT></NOBR></FORM></NOBR></TD></TR>
<tr>
<TD align=middle height=8>Volume:<br>
<div id="volBar" onmousedown="mDown(event)">
<div id="volRib"> </div>
</div>
</TD>
</tr>
<TR>
<TD align=middle height=8><A
href="http://www.freewebs.com/line-web/Radioliste.htm"
target=hotter>Program Liste</A></TD></TR></TBODY></TABLE></CENTER></BODY></HTML>
Radioen skal stadig kunne spille.