Code: Select all
<__script__ type="text/javascript">
var key = '{$j}';
var videoid = '{$item->videoid}';
{literal}
var flashvars = { file:'http://www.youtube.com/watch?v=videoid',autostart:'false' , image:'http://i.ytimg.com/vi/(videoid)/hqdefault.jpg',backcolor: '111111', frontcolor:'cccccc',lightcolor:'ff6600',skin:'http://www.longtailvideo.com/jw/upload/stylish.swf',controlbar:'over',stretching:'fill'};
var params = { allowfullscreen:'true', allowscriptaccess:'always', wmode:'transparent' };
var attributes = { id:'$videoid', name:'(videoid)'};
swfobject.embedSWF('mediaplayer/player.swf','test','331','187','9.0.115','false',
flashvars, params, attributes);
var player;
function playerReady(obj) {
[key] = document.getElementById(obj['id']);
};
{/literal}
</__script>
I've tried ['videoid'], ('videoid'), (videoid), "videoid", videoid, but nothing seems to work... What's wrong?