sweet! thrilling stuff.
On 15/12/06, Luke Lutman <[EMAIL PROTECTED] > wrote:
Hi Sam,
I had a look, and FlashBlock blocked UFO and SWFObject movies, and sIFR
showed the alternate content, so I'm guessing that by 'works with
flashblock', you mean that the alternate content is show when flashblock
is on, correct?
From what I can tell, Flashblock looks for two things specific to sIFR:
- <element class="sIFR-replaced">...</element>, which it hides with
inline styles (can be any element).
- <span class="sIFR-alternate">...</span>, and it shows with inline
styles (has to be a span).
To get the same behavior with the jQuery Flash Plugin, you can change
the default replace function, like so:
jQuery.fn.flash.replace = function(htmlOptions) {
this.innerHTML = '<span class="alt
sIFR-alternate">'+this.innerHTML+'</span>';
jQuery(this)
.addClass('flash-replaced')
.addClass('sIFR-replaced')
.prepend($$.transform(htmlOptions));
};
Here's an example:
http://jquery.lukelutman.com/plugins/flash/example-flashblock.html
Luke
Sam Sherlock wrote:
> I have noticed that the flash plugin does not work with the flashBlock
> firefox extension
> whereas the both swfObject, UFO & sIFR do work with the extension.
>
> In firefox with flashBlock installed and blocking flash content the
> flash is not displayed
> nor is the content that it replaces.
>
> I have looked at the source but its a bit beyond me. Would this be
> complicated to
> build into the plugin?
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/