[SWFObject] flashVar text
Aran Rhee
aran.rhee at qdc.net.au
Tue Nov 21 16:31:48 PST 2006
Peter.
You could do something like this:
<head>
<script src="swfObject.js" language="javascript"></script>
<script type="text/javascript">
var myText = "This is the text for my alt content and flashvars";
</script>
</head>
<body>
<div class="content" id="flashcontent">
<script type="text/javascript">
document.write(myText);
</script>
</div>
<script language="JavaScript" type="text/javascript">
// <![CDATA[
var so = new SWFObject("some.swf",
"swf", "550", "400", "8");
so.addVariable("altText", myText);
so.write("flashcontent");
// ]]>
</script>
<p>
this is some other content
</p>
</body>
</html>
Cheers,
Aran
> -----Original Message-----
> From: swfobject-bounces at lists.deconcept.com
> [mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of
> Peter Zanetti
> Sent: Wednesday, 22 November 2006 11:20 AM
> To: swfobject at lists.deconcept.com
> Subject: [SWFObject] flashVar text
>
> is there a way to combine the alternate content and flashVar
> text into the same element. I would like my alternate content
> to just be my flashVar text without repeating it in the code
>
>
> Pz
>
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
More information about the Swfobject
mailing list