Just to make sure I'm understanding the problem, you want to hide the
contents of #hdr (i.e. the html version of the nav, etc.) after the
flash is inserted, right?
If so, then all you should need to do is:
$('#hdr').flash(sharkOptions.ufo, {version:
7}).find('embed').each(function(){
fc = new JSFCommunicator(this);
sharkOptions.page.isFC = true;
}).end();
And add the following to your stylesheet:
.flash-replaced .alt {
display: none; }
The 'function(htmlOptions){...}' in the text-replacement example is used
by jQuery.fn.flash() -- instead of the default, jQuery.fn.flash.replace
-- to measure the content that's being replaced. You could use something
similar if you want to literally replace the content of #hdr (instead of
prepending into #hdr), like this:
$('#hdr').flash(sharkOptions.ufo, {version:7}, function(htmlOptions){
$(this).html(jQuery.fn.flash.transform(htmlOptions));
}).find('embed').each(function(){
fc = new JSFCommunicator(this);
sharkOptions.page.isFC = true;
}).end();
Luke
Sam Sherlock wrote:
> solved it myself, just whilst collecting the code to post.
>
> Late night early morning splurge of coding to excited to sleep after see
> this wonderful code
>
> yep thats solved but I would like to be able to hide replace code in the
> nested div
>
> looking at the sifr example I see that after the version object you
> have a function(htmlOptions) {...}
>
> when I try this
>
> //
> $('#hdr').flash(sharkOptions.ufo, {version:
> 7}).find('embed').each(function(){
> fc = new JSFCommunicator(this);
> $('#hdr').addClass('flash-replaced');
> sharkOptions.page.isFC = true;
> }).end();
>
> it works though this is different from the sifr example since the class
> is added to the #hdr from within the each call
> that might not be crucial anyway - just perplexing - would like to know
> more to further my understanding though.
>
> thx -S
>
> On 11/11/06, *Luke Lutman* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>
> wrote:
>
> Can you post the code (or a link to it)?
>
> What error does it throw?
>
> ...
>
> Also, my text-replacement example
> (http://jquery.lukelutman.com/plugins/flash/example-text-replacement.html
>
> <http://jquery.lukelutman.com/plugins/flash/example-text-replacement.html>)
> isn't fully cooked yet -- it's functional, but I'm planning to develop
> it as a proper plugin (soon, hopefully!). If you do want to try it, make
> sure you grab the fla, as that's custom too -- css (flash 7) and better
> anti-aliasing (flash 8).
>
> Luke
>
> Sam Sherlock wrote:
> > astonishing stuff!!! That works a treat!
> >
> > I am also using the sifr jquery plugin (really feature filled
> site this)
> > and have tried
> > to alter the code to use your flash plugin instead. I guess its one
> > stage at a time!!
> >
> > However I am unable to set the version it aways throws an error
> whatever
> > I do!?!
> >
> > I updated to jquery 1.0.3 (had to make other changes json - getJSON)
> > this did not solve the issue
> >
> > any idea about that? I think the issue with the version setting is
> > causing some issue with using it instead of the sifr thingy since
> I need
> > to have a htmloptions callback function
>
>
>
> _______________________________________________
> jQuery mailing list
> [email protected] <mailto:[email protected]>
> http://jquery.com/discuss/
>
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> jQuery mailing list
> [email protected]
> http://jquery.com/discuss/
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/