• 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&gt;

    <div id=”player”>This text will be replaced</div> <script type=”text/javascript”>

    var so = new SWFObject
    (‘http://www.mydomain.com/blog/mediaplayer.swf&#8217;,’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&#8217;);
    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter ibexcentral

    (@ibexcentral)

    Hi Samboll,

    Thanks for the link I am slowing getting more infor together but I need some assistance with the following:

    I want to have a selection/picker/combobox containing a number of playlists. When the user selects a playlist from the dropdown box the playist changes.

    Below is an example of dropdown code but need to know the code to change the playlist in the player and set to first item.

    <span class=”style1″>Select a playlist: </span></p>
    <select name=”sel1″ onChange=”javascript:change the playlist to Selected_Playlist”>
    <option value=”playlist_mp3.xml” selected>MP3</option>
    <option value=”playlist_mixmedia.xml”>Mixed</option>
    <option value=”playlist_birds.xml”>Birds</option>
    <option value=”playlist_remember.xml”>Remember</option>
    </select>

    Some javascript guru help !!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Where to put Javascript for JW Player…..’ is closed to new replies.