Strange HTML block
Permalink 1 user found helpfulI'm in trouble when I use the html block. I'd like to insert the longtail jw videoplayer... I insert the html code in edit mode in the block:
<div align="center">
<script type='text/javascript' src='mediaplayer/swfobject.js'></script>
<div id='mediaspace'>This text will be replaced</div>
<script type='text/javascript'>
var so = new SWFObject('mediaplayer/player.swf','ply','470','470','9','#');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
so.addVariable('file','/mediaplayer/videos/showreel/showreel.xml');
so.addVariable('backcolor','A8BCD5');
so.addVariable('frontcolor','54555E');
so.addVariable('skin','mediaplayer/modieus.swf');
so.addVariable('playlist','bottom');
so.write('mediaspace');
</script>
</div>
And when I update the block in edit mode the player appears and works... When I save the page it doesn't... It shows me "this text will be replaced"...
Very strange... Do you have suggestions for me please?
<embed src='player.swf' width='470' height='320' bgcolor='#ffffff' allowscriptaccess='always' allowfullscreen='true' flashvars='file=http://content.longtailvideo.com/videos/flvplayer.flv' />
<div align="center"> <script type='text/javascript' src='/mediaplayer/swfobject.js'></script> <div id='mediaspace'>This text will be replaced</div> <script type='text/javascript'> var so = new SWFObject('/mediaplayer/player.swf','ply','470','470','9','#'); so.addParam('allowfullscreen','true'); so.addParam('allowscriptaccess','always'); so.addParam('wmode','opaque'); so.addVariable('file','/mediaplayer/videos/showreel/showreel.xml'); so.addVariable('backcolor','A8BCD5'); so.addVariable('frontcolor','54555E'); so.addVariable('skin','/mediaplayer/modieus.swf'); so.addVariable('playlist','bottom'); so.write('mediaspace'); </script>
Hard to reference how it should be as those docs aren't up anymore.
Are you getting any erros in your javascript console?