• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Can anyone tell me how to make this swf transparent?


bamme

Senior Member
#1
Hi all

I have a swf on this page:

Winning Health Solutions

I know that it is able to be made transparent, because with the previous code i embedded it with it was, however the previous code i used was bulky and not the best SEO wise. I am using swfobject at the moment:
HTML:
    <script type="text/javascript">

swfobject.embedSWF("/Winning_small.swf", "logo", "156", "100", "9.0.0", "", params);
</script>
I was advised to try this:
HTML:
<script type="text/javascript">
params.wmode = "transparent";
    swfobject.embedSWF("Winning_small.swf", "logo", "156", "100", "9.0.0");
    </script>
And it didnt work.. it just sorta stops displaying the swf.. has anyone got any ideas?

** ive now swapped it for a different swf with a background the same as the gradient background of that section of the page.. but as you can see if you look, there is still black at the bottom and top
 

bamme

Senior Member
#3
hi glen! sorry i didnt reply this, have locked myself out of df for quite a while!! thanks for the message though :)
 

zap

Junior Member
#4
Try this...
HTML:
<script type="text/javascript">
    var fo = new FlashObject("Winning_small.swf", "logo", "156", "100", "9.0.0");
fo.addParam("wmode", "transparent");
		fo.write("flashcontent");
    </script>
 
#5
If you're in Dreamweaver you can also just right click the swf, click parameters, create new parameter, Parameter = wmode Value = transparent, now click ok and all should be well.