Where to put Javascript for JW Player…..
-
Hi,
I am fairly new to wordpress getting better at it but I want to embed a jw player with playlist from the code used below.
Can someone tell me what I need to do, step by step instructions.
I have turned off the rich text editor and pasted the above code into the post text area and I get the following message:
‘This text will be replaced’
<script type=”text/javascript”
src=”http://www.mydomain.com/blog/swfobject.js”></script><div id=”player”>This text will be replaced</div> <script type=”text/javascript”>
var so = new SWFObject
(‘http://www.mydomain.com/blog/mediaplayer.swf’,’mpl’,’500′,’200′,’8′);
so.addParam(‘allowscriptaccess’,’always’);
so.addParam(‘allowfullscreen’,’true’);
so.addVariable(‘height’,’200′);
so.addVariable(‘width’,’500′);
so.addVariable(‘file’,’http://www.mydomain/blog/playlist1.xml’);
so.addVariable(‘backcolor’,’0x000033′);
so.addVariable(‘frontcolor’,’0x6666FF’);
so.addVariable(‘lightcolor’,’0xFFFFFF’);
so.addVariable(‘screencolor’,’0x6666FF’);
so.addVariable(‘displaywidth’,’200′);
so.addVariable(‘searchbar’,’false’);so.write(‘player’);
</script>Please can someone tell me if the above code is wrong and if not where do I put it?
Thanks
Paul
- The topic ‘Where to put Javascript for JW Player…..’ is closed to new replies.