Transparent swf in html

0 min read 72 words

So you have now placed a swf file into your html page and you want to be able to see through it.

Lucky for you, this is a very easy thing to do!

The following code does the trick:

<object data="flash/home_side_left.swf" type="application/x-shockwave-flash" width="40px" height="550px"><param name="movie" value="flash/home_side_left.swf" /><param name="bgcolor" value="#ffffff" /><param name="wmode" value="transparent" /><param name="allowScriptAccess" value="always" /></object>

Notice that by just adding the wmode and setting it as ‘transparent’ does everything for you!

Andrew
Andrew

Andrew is a visionary software engineer and DevOps expert with a proven track record of delivering cutting-edge solutions that drive innovation at Ataiva.com. As a leader on numerous high-profile projects, Andrew brings his exceptional technical expertise and collaborative leadership skills to the table, fostering a culture of agility and excellence within the team. With a passion for architecting scalable systems, automating workflows, and empowering teams, Andrew is a sought-after authority in the field of software development and DevOps.

Tags