Mike_Plug
asked on
transparent background swf, adobe bridge web gallery
Hi,
I am trying to use a web gallery created with adobe bridge in my webpage. I have inserted gallery in an <iframe>. The gallery shows up just fine. I would like to have the background of the webpage show up rather than the background of the web gallery. From reading online, I understand that the way to do this is to add a parameter to add parameters to both the <object> and the <embed> tags. I have attemped to do this, the white background from the image gallery swf keeps showing up anyway.
Here is a portion of the code from the index.html that adobe bridge outputs (the one that I referenced in my <iframe>.
// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
if ( hasProductInstall && !hasReqestedVersion ) {
var productInstallOETags = '<object classid="clsid:D27CDB6E-AE 6D-11cf-96 B8-4445535 40000"'
+ 'width="550" height="200"'
+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
+ '<param name="movie" value="resources/playerPro ductInstal l.swf?MMre directURL= '+MMredire ctURL+'&MM playerType =ActiveX&M Mdoctitle= '+MMdoctit le+'" />'
+ '<param name="quality" value="best" /><param name="bgcolor" value="#3A6EA5" />'
+ '<param name="wmode" value="transparent" />'
+ '<embed src="resources/playerProdu ctInstall. swf?MMredi rectURL='+ MMredirect URL+'&MMpl ayerType=P lugIn" quality="high" bgcolor="#3A6EA5"'
+ 'width="550" height="300" wmode="transparent" name="detectiontest" aligh="middle"'
+ 'play="true"'
+ 'loop="false"'
+ 'quality="best"'
+ 'allowScriptAccess="sameDo main"'
+ 'type="application/x-shock wave-flash "'
+ 'pluginspage="http://www.adobe.com/go/getflashplayer">'
+ '<\/embed>'
+ '<\/object>';
document.write(productInst allOETags) ; // embed the Flash Product Installation SWF
and the portion of code in my webpage where I did the <iframe>
<iframe src="../custom_gallery/ind ex.html" height="600" width="780" frameborder="0" name="custum_album" marginwidth="0" marginheight="0"></iframe>
What am I doing wrong?
And advice would be appreciated.
Thanks, Mike
I am trying to use a web gallery created with adobe bridge in my webpage. I have inserted gallery in an <iframe>. The gallery shows up just fine. I would like to have the background of the webpage show up rather than the background of the web gallery. From reading online, I understand that the way to do this is to add a parameter to add parameters to both the <object> and the <embed> tags. I have attemped to do this, the white background from the image gallery swf keeps showing up anyway.
Here is a portion of the code from the index.html that adobe bridge outputs (the one that I referenced in my <iframe>.
// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
if ( hasProductInstall && !hasReqestedVersion ) {
var productInstallOETags = '<object classid="clsid:D27CDB6E-AE
+ 'width="550" height="200"'
+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
+ '<param name="movie" value="resources/playerPro
+ '<param name="quality" value="best" /><param name="bgcolor" value="#3A6EA5" />'
+ '<param name="wmode" value="transparent" />'
+ '<embed src="resources/playerProdu
+ 'width="550" height="300" wmode="transparent" name="detectiontest" aligh="middle"'
+ 'play="true"'
+ 'loop="false"'
+ 'quality="best"'
+ 'allowScriptAccess="sameDo
+ 'type="application/x-shock
+ 'pluginspage="http://www.adobe.com/go/getflashplayer">'
+ '<\/embed>'
+ '<\/object>';
document.write(productInst
and the portion of code in my webpage where I did the <iframe>
<iframe src="../custom_gallery/ind
What am I doing wrong?
And advice would be appreciated.
Thanks, Mike
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Where should I have put the <div>?
Also, when I compare all the information that I found online (where i found the info to put the transparent parameters in the <object> and <embed> tags), it seems like they are all standard html. My html has javascript in it (the portion of code that I had pasted was the "if" part of a "if", "else if", "else" series). Does this make any difference for how I should go about makeing the swf background transparent?
Also, when I compare all the information that I found online (where i found the info to put the transparent parameters in the <object> and <embed> tags), it seems like they are all standard html. My html has javascript in it (the portion of code that I had pasted was the "if" part of a "if", "else if", "else" series). Does this make any difference for how I should go about makeing the swf background transparent?
Where is your <script> tag written. Is it in <head> or within the <body>?? Can you just attach the html that would help debugging faster?
ASKER
<div style='background-color:#0
// Check to see if a player with Flash Product Install is available and the version does not meet the requirements for playback
if ( hasProductInstall && !hasReqestedVersion ) {
var productInstallOETags = '<object classid="clsid:D27CDB6E-AE
+ 'width="550" height="200"'
+ 'codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
+ '<param name="movie" value="resources/playerPro
+ '<param name="quality" value="best" /><param name="bgcolor" value="#3A6EA5" />'
+ '<param name="wmode" value="transparent" />'
+ '<embed src="resources/playerProdu
+ 'width="550" height="300" wmode="transparent" name="detectiontest" aligh="middle"'
+ 'play="true"'
+ 'loop="false"'
+ 'quality="best"'
+ 'allowScriptAccess="sameDo
+ 'type="application/x-shock
+ 'pluginspage="http://www.adobe.com/go/getflashplayer">'
+ '<\/embed>'
+ '<\/object>';
document.write(productInst
</div>