Yeah that worked. That I didn't thought about that one. Thanks for the quick answer.
Marko On 2 mei, 23:29, Vincent Polite <[email protected]> wrote: > While we're somewhat violating the spirit of the SWFObject thread for some > pseudo standard HTML troubleshooting, I'll step in: > > It's a known "problem"/"feature" with many of the modern browsers that they > will completely unload and reload a Flash movie (and other items) if you > collapse the div object using the style display:none. > > My understanding is that the only way to circumvent this issue is to use > display:hidden (although I suppose display block would work as well based on > what comes next) and simultaneously set the width and height of the div to > 0. > > This provides the same effect/behavior as display:none without unloading the > contents of the div. Ironically, I think one of the IE browsers doesn't > unload objects with display:none whereas every other browser will. > > Hope this helps. Not tested, from memory. > > Vincent > > On Sat, May 2, 2009 at 2:16 PM, Marko <[email protected]> wrote: > > > Hey Aran, > > > That is what I do but it reloads my flash movie then. I will try > > somethings tomorrow and build step from step everything up again. > > For now i don't have a clue what it can be. > > > Thanks for your help, > > > Marko > > > On 2 mei, 03:08, "Aran Rhee" <[email protected]> wrote: > > > Showing and hiding layers via style.display is the normal way to do > > things > > > without tearing down / rebuilding content. > > > > Aran > > > > -----Original Message----- > > > From: [email protected] [mailto:[email protected]] On > > > > Behalf Of Marko > > > Sent: Saturday, 2 May 2009 7:13 AM > > > To: SWFObject > > > Subject: Multi site. Flash vs HTML > > > > I was just wondering if it is possible to make the Flash movie > > > invisible so the html get visible. I know that i couldn't be in the > > > div that was replaced. So i got the following code in my body. > > > > <body> > > > <ul id="ChoiseSite"> > > > <li id="ChoiseFlash"><span>Flash</span></li> > > > <li > > > id="ChoiseJavascript"><span>Javascript</span></li> > > > </ul> > > > > <div id="siteFlash"><div > > id="siteFlashHolder"></div></div> > > > > <div id="siteJavascript"></div> > > > </body> > > > > It does do the trick. I can from Flash to my normal HTML code and also > > > back. > > > The problem now is that my flash movie gets reloaded. > > > I tried to create a new div inside he siteFlash div but still the > > > flash gets reloaded. > > > > I am now not sure if it is because of SWFObject or just because of the > > > browser. > > > > I do it now trought: > > > > document.getElementById("siteFlash").style.display = "None"; > > > > document.getElementById("siteJavascript").style.display = "Block"; > > > > but I was wondering if there is another/better way to do it. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
