Please.
Can anyone tell me why this code is working perfect in Firefox and not at all in IE 8?
<script type="text/javascript" language="JavaScript1.2" src="stm31.js"></script>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
function createplayer(aFile, aImage, aSong, go) {
var s = new SWFObject("mediaplayer.swf","thePlayerId","320","240","7","#ffcc99");
s.addParam('menu','true');
s.addParam('allowfullscreen','false');
s.addVariable('file', aFile);
s.addVariable('image', aImage);
s.addVariable('audio', aSong);
s.addVariable('volume','90');
s.addVariable('useaudio', 'true');
s.addVariable('backcolor','0xffcc99');
s.addVariable('frontcolor','0xffcc99');
s.addVariable('lightcolor','0xffcc99');
s.addVariable('screencolor','0xffcc99');
s.addVariable('width','320');
s.addVariable('height','240');
s.addVariable('displayheight','240');
s.addVariable('overstretch','none');
s.addVariable('linkfromdisplay','false');
s.addVariable('linktarget','_self');
s.addVariable('showdigits','false');
s.addVariable('showeq','false');
s.addVariable('showicons','false');
s.addVariable('bufferlength','0');
s.addVariable('shuffle','false');
if (go) { s.addVariable('autostart','true'); }
s.write('placeholder');
}
</script>
I must call items from a Java commad, like this:
javascript:createplayer('file.swf', 'image.jpg', 'song.mp3', true)
Thanks