Yes (if you are using the dynamic publishing method).
You can just wrap your embedSWF() call inside a function which takes a
parameter as to whether run or not:
//pseudo code (untested)
...
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
function shouldShowFlash()
{
// read querystring value and embed flash based on value
if (swfobject.getQueryParamValue("showflash")=="false")
{
alert("I should NOT embed flash ! (just show alt content)");
}
else
{
alert("I should embed flash now!");
swfobject.embedSWF("some.swf", "myAlternativeContent", "800", "600",
"9.0.0", false, flashvars, params, attributes);
}
}
//call shouldShowFlash method when page DOM is ready
swfobject.addDomLoadEvent(shouldShowFlash);
</script>
....
<div id="myAlternativeContent">Alternative content</div>
...
Aran
On Tue, Jul 21, 2009 at 4:23 PM, carbon <[email protected]> wrote:
>
> hi there,
>
> is there a way or modifying swfobject be turn off and view the back-up
> without disabling js?
>
> ie. http://www.flash.com?swfobject=off<http://www.flash.com/?swfobject=off>
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---