ugrás a tartalomhoz

Érték kinyerése JS-sel PARAM tagből

vami · 2008. Ápr. 20. (V), 19.05
akarok csinalnni 1 mp3 playert talaltam is 1 et
csak nem tudom beallitani a volume-ot.
Ezzel a fugvennyel probalkozk beallitani
function setBoxValue(val, box) {
    var // b=document.getElementById('output'+box);
         v=document.getElementById('volume');
	//val=Math.round(val*1000)/1000;
	val=Math.round(val);
	//b.value=val;
	v.value=val;
}
es ez van a html ben
<object id="player" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject" width="0" height="0"> 
<param name="autoStart" value="0"> 
<param name="balance" value="0"> 
<param name="currentPosition" value="0"> 
<param name="currentMarker" value="0"> 
<param name="enableContextMenu" value="0"> 
<param name="enableErrorDialogs" value="0"> 
<param name="enabled" value="-1"> 
<param name="fullScreen" value="0"> 
<param name="invokeURLs" value="0"> 
<param name="playCount" value="1"> 
<param name="rate" value="1"> 
<param name="uiMode" value="invisible"> 
<param name="volume" id ="volume" value="100"> 
<param name="URL" value> 
<param name="defaultFrame" value> 
<param name="baseURL" value> 
<param name="stretchToFit" value="0"> 
<param name="windowlessVideo" value="0"> 
<param name="SAMIStyle" value> 
<param name="SAMILang" value> 
<param name="SAMIFilename" value> 
<param name="captioningID" value> 
<embed id="player" type="application/x-mplayer2" src="" height="0" width="0"> 
</object> 
A kerdesem az h a JS fugvenyben h kerhetnem le a volume parametert u h hozzaferjek a value-hoz ???