Wmode in object tags and iframe tags.
There are many discussions on making navigation to work properly in flash pages etc etc.
–
Someone please explain with details on what attribute does in actual. Any level of technical details is accepted.
Thank you
wmodeis a parameter exclusive to<embed>tag referring to Flash movies. The default value iswmode=window.wmode=windowWhen
wmode=window, the Flash movie is not rendered in the page. It is instead displayed in a separate window than the browser content (as inspected with Spy++ or WinSpy++). This mode will have the best performance as the browser does not have to redraw a portion of the page on each frame. However, this mode prevents you from having content appear above or below the Flash movie.wmode=opaqueWhen
wmode=opaque, the Flash movie is rendered as part of the page. No window is created for the movie. The movie will be rendered with the background color set during the publishing process and no content will be allowed behind. On each frame, content which appear above the movie will have to be redrawn by the browser, thus affecting performance.wmode=transparentWhen
wmode=transparent, the Flash movie is rendered as part of the page. No window is created for the movie. The background color of the movie will be transparent. Thus, any non-opaque section of the movie will allow underlying content to display. On each frame, content which appear above and below the movie will have to be redrawn by the browser, thus greatly affecting performance.EDIT : Here are the answers to your additional questions…
Is
wmodea FLASH only attribute?Yes,
wmodeis only available in<embed>tags embedding a Flash movie.What are the impacts on performance between the different values?
wmode=windowwill have the best performance as the Flash movie is rendered completely separately from the page itself. The browser does not have to refresh nor calculate the z-index position of content appearing over the Flash movie since the Flash movie in this mode is rendered in a completely separate window (as can be inspected with Spy++).wmode=opaqueandmode=transparentboth follow very similar rendering paths. They are however slower thanwmode=windowbecause the browser has to check elements to see if they render above than the movie and render them on each frame. Note thatwmode=transparentis slower thanwmode=opaquesince it has to also render underlying content as well as superposing content.So, in order of performance…