PDA

View Full Version : Rotate text in IE / Change Flash object background color



JamMasterClay
10 Mar 2010, 05:36 PM
I know basic HTML and CSS, but I want to have a flash based website so I've been using Wix.com to build one. Wix provides the option to either use Wix as the webhost or providing a code to embed the site.

I would like to incorporate HTML elements in my site so I am opting to use a different host and use the embed codes.

The URL of the website I created with the flash embeded is http://claytonjamesphotography.webs.com/claytonjamesphotography.html
The URL of the page as Wix hosts it is http://www.wix.com/claytonjamesphotos/clayton-james-photography

I have a facebook badge in a DIV, which I was able to rotate 90 degrees in Firefox, Opera, and Safari. For some reason the code that's supposed to work for IE isn't working. Anyone have any idea why?

Also, in the Wix hosted version the background of the flash is black, but in the page I made it's white (unless viewed in IE). Not a big deal other than there's always a white bar showing unless it's displaying at larger than 1000x650px. anyone know how I could change it to a black background with the embedded code?

I tried using the following code to embed it instead, but when i set width to 100% it disappears in firefox and the whole thing looks weird in opera:


<script type="text/javascript">
var minimalFlashVersion = "9.0.115";
if (swfobject.hasFlashPlayerVersion(minimalFlashVersion)){
var flashvars = {};
var params = {
play: "true",
loop: "true",
menu: "true",
quality: "high",
scale: "noScale",
salign: "tl",
wmode: "window",
bgcolor: "#000000",
base: "http://static.wix.com/",
flashvars: "pageId=fToLYLSE6Qc-a&embedFormat=normal&embedID=vqYoomyuzs7p;3k0UPaqx8v7LpqCLABuVsglrHCpAR_5_d0tYtaEPd3vhXFcpKEua&partner_id=WMGs4POB1ko-a",
devicefont: "false",
allowscriptaccess: "always",
allowfullscreen: "true"
};
var attributes = {
id: "app",
name: "app",
align: "middle"
};
try {
swfobject.embedSWF("http://static.wix.com/client/app.swf?v=31", "flashContent", "100%", "100%", minimalFlashVersion, false, flashvars, params, attributes);
} catch(e){
alert("General error occured. Please try to refresh the page.");
//@todo: implement when monitor is ready
//document.write('<img src="{MONITOR_SRC}" width="0" height="0" alt="" />');
}


} else {
window.location.href = "http://claytonjamesphotography.webs.com/home.htm";
}
</script>



Thanks for the help!