[SWFObject] flashvars html

Peter Zanetti p.zanetti at caffesolo.com
Tue Oct 10 12:13:52 PDT 2006


is there a way to pass html content into the flashVars variable

for example break a long string into paragraphs or add an anchor?

Pz



----- Original Message -----
Subject: SWFObject Digest, Vol 7, Issue 16
Date: Tue, October 10, 2006 10:55
From: swfobject-request at lists.deconcept.com

> Send SWFObject mailing list submissions to
>         swfobject at lists.deconcept.com
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
> or, via email, send a message with subject or body 'help' to
>         swfobject-request at lists.deconcept.com
>
> You can reach the person managing the list at
>         swfobject-owner at lists.deconcept.com
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of SWFObject digest..."
>
>
> Today's Topics:
>
>    1. Re: Alternate CSS for alternate Content (Toby)
>    2. Re: Alternate CSS for alternate Content (Aran Rhee)
>    3. Re: Alternate CSS for alternate Content (Toby)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 10 Oct 2006 10:59:46 +0100
> From: "Toby" <toby at creativefibre.co.uk>
> Subject: Re: [SWFObject] Alternate CSS for alternate Content
> To: <swfobject at lists.deconcept.com>
> Message-ID: <200610100959.k9A9xkMK072658 at mail.authsmtp.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Bump.
>
>
>
> Anyone have a solution for this? Or am I trying to do something a bit wrong
> that nobody is interested in?
>
>
>
> Cheers!
>
> Toby
>
>
>
>
>
>   _____
>
> From: swfobject-bounces at lists.deconcept.com
> [mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Toby
> Sent: 06 October 2006 11:55
> To: swfobject at lists.deconcept.com
> Subject: [SWFObject] Alternate CSS for alternate Content
>
>
>
> Hi list,
>
>
>
> I have seen this covered before but I haven't been satisfied with the
> information available to integrate it. Mainly through my lack of any JS
> knowledge admittedly and the solution I found on the homepage was posted
for
> a previous version of SWFObject. Has anyone done this successfully with the
> latest version of SWFObject? Or is there a snippet of JS a fool like myself
> could integrate into the current version?
>
>
>
> Cheers!
>
> Toby
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20061010/3e2d1aad/attachment-0001.htm
>
> ------------------------------
>
> Message: 2
> Date: Tue, 10 Oct 2006 21:44:50 +1000
> From: "Aran Rhee" <aran.rhee at qdc.net.au>
> Subject: Re: [SWFObject] Alternate CSS for alternate Content
> To: <swfobject at lists.deconcept.com>
> Message-ID: <001601c6ec61$80cb5570$0300a8c0 at HYPERION>
> Content-Type: text/plain; charset="us-ascii"
>
> Toby.
>
> When you call so.write() it returns true or false depending on whether the
> user has the correct version of flash or not.
>
> so = new SWFObject(....
> ...
> if (so.write("flashcontent")) {
> // do flash stuff
> } else {
> // do alternate content stuff
> }
>
> You can use the attached js/demo example to do the swapping of the css
based
> on flash or not. The basis is that by adding the rel= alternative and
adding
> a title param, the css will not be displayed until you swap to it. There is
> some extra trickery of using a cookie to remember the last selected
> stylesheet, but you will most likely want to omit this functionality
(remove
> the onLoad and onunload functions from <body
> onload="useStyleAgain('styleTestStore');"
> onunload="rememberStyle('styleTestStore');">)
>
> e.g.
>
> <link rel="alternate stylesheet" type="text/css" href="extraPretty.css"
> title="Pretty">
>
> BTW - original swap code / demo is courtesy of Mark Wilton-Jones from
> howtocreate.co.uk <http://www.howtocreate.co.uk/>
>
>
> Cheers,
> Aran
>
>
>   _____
>
> From: swfobject-bounces at lists.deconcept.com
> [mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Toby
> Sent: Tuesday, 10 October 2006 8:00 PM
> To: swfobject at lists.deconcept.com
> Subject: Re: [SWFObject] Alternate CSS for alternate Content
>
>
>
> Bump.
>
>
>
> Anyone have a solution for this? Or am I trying to do something a bit wrong
> that nobody is interested in?
>
>
>
> Cheers!
>
> Toby
>
>
>
>
>
>
>   _____
>
>
> From: swfobject-bounces at lists.deconcept.com
> [mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Toby
> Sent: 06 October 2006 11:55
> To: swfobject at lists.deconcept.com
> Subject: [SWFObject] Alternate CSS for alternate Content
>
>
>
> Hi list,
>
>
>
> I have seen this covered before but I haven't been satisfied with the
> information available to integrate it. Mainly through my lack of any JS
> knowledge admittedly and the solution I found on the homepage was posted
for
> a previous version of SWFObject. Has anyone done this successfully with the
> latest version of SWFObject? Or is there a snippet of JS a fool like myself
> could integrate into the current version?
>
>
>
> Cheers!
>
> Toby
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20061010/cced915c/attachment-0001.html
> -------------- next part --------------
> A non-text attachment was scrubbed...
> Name: swap_css.zip
> Type: application/x-zip-compressed
> Size: 3926 bytes
> Desc: not available
> Url :
> http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20061010/cced915c/swap_css-0001.bin
>
> ------------------------------
>
> Message: 3
> Date: Tue, 10 Oct 2006 15:55:39 +0100
> From: "Toby" <toby at creativefibre.co.uk>
> Subject: Re: [SWFObject] Alternate CSS for alternate Content
> To: <swfobject at lists.deconcept.com>
> Message-ID: <200610101455.k9AEtdVI006799 at mail.authsmtp.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Woohoo!
>
>
>
> Thank you very much, I am a complete JS newbie so it may take me a few
trial
> and error runs to integrate it but the information you have given me is
> fantastic! Thank you very much!
>
>
>
> Toby
>
>
>
>   _____
>
> From: swfobject-bounces at lists.deconcept.com
> [mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Aran Rhee
> Sent: 10 October 2006 12:45
> To: swfobject at lists.deconcept.com
> Subject: Re: [SWFObject] Alternate CSS for alternate Content
>
>
>
> Toby.
>
>
>
> When you call so.write() it returns true or false depending on whether the
> user has the correct version of flash or not.
>
>
> so = new SWFObject(....
> ...
> if (so.write("flashcontent")) {
> // do flash stuff
> } else {
> // do alternate content stuff
> }
>
>
>
> You can use the attached js/demo example to do the swapping of the css
based
> on flash or not. The basis is that by adding the rel= alternative and
adding
> a title param, the css will not be displayed until you swap to it. There is
> some extra trickery of using a cookie to remember the last selected
> stylesheet, but you will most likely want to omit this functionality
(remove
> the onLoad and onunload functions from <body
> onload="useStyleAgain('styleTestStore');"
> onunload="rememberStyle('styleTestStore');">)
>
>
>
> e.g.
>
>
>
> <link rel="alternate stylesheet" type="text/css" href="extraPretty.css"
> title="Pretty">
>
>
>
> BTW - original swap code / demo is courtesy of Mark Wilton-Jones from
> howtocreate.co.uk <http://www.howtocreate.co.uk/>
>
>
>
>
>
> Cheers,
>
> Aran
>
>
>
>
>   _____
>
>
> From: swfobject-bounces at lists.deconcept.com
> [mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Toby
> Sent: Tuesday, 10 October 2006 8:00 PM
> To: swfobject at lists.deconcept.com
> Subject: Re: [SWFObject] Alternate CSS for alternate Content
>
> Bump.
>
>
>
> Anyone have a solution for this? Or am I trying to do something a bit wrong
> that nobody is interested in?
>
>
>
> Cheers!
>
> Toby
>
>
>
>
>
>
>   _____
>
>
> From: swfobject-bounces at lists.deconcept.com
> [mailto:swfobject-bounces at lists.deconcept.com] On Behalf Of Toby
> Sent: 06 October 2006 11:55
> To: swfobject at lists.deconcept.com
> Subject: [SWFObject] Alternate CSS for alternate Content
>
>
>
> Hi list,
>
>
>
> I have seen this covered before but I haven't been satisfied with the
> information available to integrate it. Mainly through my lack of any JS
> knowledge admittedly and the solution I found on the homepage was posted
for
> a previous version of SWFObject. Has anyone done this successfully with the
> latest version of SWFObject? Or is there a snippet of JS a fool like myself
> could integrate into the current version?
>
>
>
> Cheers!
>
> Toby
>
>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://lists.deconcept.com/pipermail/swfobject-deconcept.com/attachments/20061010/6c4d8623/attachment.html
>
> ------------------------------
>
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com
>
>
> End of SWFObject Digest, Vol 7, Issue 16
> ****************************************
>
>
>



More information about the Swfobject mailing list