Hi All,
We’re trying to create a new Image variant to allow us to output flash on our websites.
The existing variant outputs using the old OBJECT and EMBED tags which fails XHTML validation and causes problems with regard to drop-down navigation.
We’re trying to make the variant output the following kind of markup…
<div class="flash" id="f236545">
<script type="text/javascript" src="/static/j/swfobject.js"></script>
<script type="text/javascript">
var so = new SWFObject("/i/home-bnr.swf", "f236545", "940", "143", "8", "#000");
so.addParam("wmode", "transparent");
so.write("f236545");
</script>
</div>
Where:
[ul]
[li]DIV ID ( f236545 ) is the contentID prefixed with the letter f
[/li][li]940 is the width of the .swf in pixels
[/li][li]143 is the height of the .swf in pixels
[/li][li]All other variables can be hardcoded
[/li][/ul]
However all of the javascript statements between the <script> tags are being omitted when the page is previewed or published.
Is there a way around this? Possibly by escaping the variables or javascript statements?