PDA

View Full Version : Problem with positioning of Flash element in different browsers



hans_dampf
03 Feb 2010, 02:56 AM
Hi! I'm just reading here for a long time, now I have the first problem I can't really solve.

To make our homepage a little bit more dynamic and attractive, I built some flash videos.

Actually, there are 2 flash videos, on the following pages:
http://www.weinhaus-schuh.de
http://www.weinhaus-schuh.de/index.php?page=weingut

The code is completely W3 Valid, but it still doesn't work. In Firefox 3.6 no problems, element is at the right point. IE8 the same.
But Google Chrome and other browser don't want to show it at the right position.

Here some Browsershots: http://browsershots.org/http://www.weinhaus-schuh.de/



<object style="position: absolute; left: -9px; top: -29px;" width="220"
height="500" type="application/x-shockwave-flash"
data="uploads/images/home/weinhaus_flash.swf">
<param name="movie" value="uploads/images/home/weinhaus_flash.swf" />
<param name="wmode" value="transparent" />
<img style="margin: -29px -19px;"
src="uploads/images/sidebar_weinhaus_herbst.jpg" alt="" width="220"
height="500" />
</object>

I use the <img> Tag in the object tag to get an image instead of the video if someone has no flash installed.

Hope you can help me!

Cheers and greetings from sunny New Zealand

Matt