E-com DevBlog Spider-ball-vacuum

1Nov/081

Unhide the “X” when displaying flash in fancybox

If it ever strikes your fancy to use FancyBox to display consoles or other flash content, you may run into a problem with the close button not displaying properly.

To correct this problem, you will need to add the line "so.addParam("wmode", "transparent");" to the
ProductNumber.html file, as shown below:

?View Code HTML4STRICT
<script type="text/javascript">
	// <![CDATA[
	var so = new SWFObject("console.swf", "console", "533", "531", "8");
	so.addVariable("xmlloc", "data/console.html");
	so.addVariable("product", "ProForm 450 Elliptical");
	so.addParam("wmode", "transparent");
	so.addVariable("image", "images/PFEL03907.jpg");
	so.write("flashcontent");
	// ]]>
</script>

This allows the flash content to show the button properly.

I discovered this after visiting the website of the providers of our SWFObject.js script: http://blog.deconcept.com/swfobject/"

Print This Post Print This Post
Comments (1) Trackbacks (0)
  1. Now that’s what I’m talking about! Great find Sid! Thanks for sharing, I was almost certain the problem was in the z-indexing, nice to see that it was actually the overlay of the player…ish (thanks for another high-quality post :) )


Leave a comment

(required)

No trackbacks yet.