Flash on Top of Flash

At work we just implemented a ‘Corner Peel’ Flash Advertisement. You can view an example over at the Moscow-Pullman Daily News. I had a problem when putting this ‘Corner Peel’ flash ad onto the home page, you see we run a handful of advertisements of various sizes throughout our website. One of those being a leaderboard ad (728 x 90 px). When the corner peel is ‘peeled back’ it lays on top of the leaderboard.

When I saw this for the first time, the leaderboard advertisement was a flash ad and was laying on top of the corner peel ad and thus looked very funny. This little problem caused me quite the headache today. I thought I’d show you the little trick that saved me an even bigger headache.

There is a little know attribute for the object and embed tags called ‘wmode’. If you set ‘wmode’ to ‘transparent’ in both the embed tag and the as a parameter inside the object tag. It allows for transparent flash animations and also fixed my little overlay problem.

If transparency isn’t an option (i.e. you don’t want the html behind the flash file to show through), you can also set wmode to opaque. This should fix your flash on top of flash problem while still preserving you flash file’s background.

Inside the object tag:

<param name="wmode" value="opaque">
or
<param name="wmode" value="transparent">

Inside the embed tag

wmode="opaque"
or
wmode="transparent"

Now, I’m not sure if this little guy is a valid attribute or not, but I do know that it saved my ass today and I’ll risk not validating for that.

Tags: , , , , , ,


Similar Posts:

Advertising, Web Design

Comments

7 Responses to “Flash on Top of Flash”

Leave Comment

(required)

(required)