Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

z-index of flash objects 1

Status
Not open for further replies.

happy2b

Programmer
Jan 14, 2008
9
US
I am trying to use a script -- pageear which is a javascript/flash combo that will peel down a corner of the page. The script is brilliant -- love it. It works beautifully unless the page I'm using it on already has a flash object there. In Internet Explorer, if I set the wmode="transparent" for the original element, it works okay. Problem is that in every other browser I have tested, the peel away part rolls under the original flash object instead of over top of it like it should. I have set the z-index of flash object 1 to 1 and the z-index of the peel away flash object to 999999. It seems to be ignoring the z-index information, and the page ear (peel away) rolls under the other flash object instead of being an overlay.

I have a coldfusion server. In the code, where you see pound signs, it signifies a variable. Here is the code on the page:

Code:
<div id="lower">
  <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="[URL unfurl="true"]http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"[/URL] width="715" height="320" title="home" id="lower">
  <param name="wmode" value="transparent">
    <param name="movie" value="<cfoutput>#layout#</cfoutput>.swf">
    <param name="quality" value="high">

    <embed src="<cfoutput>#layout#</cfoutput>.swf" quality="high" pluginspage="[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer"[/URL] type="application/x-shockwave-flash" width="715" height="320" name="wmode" value="transparent"></embed>
  </object>
  <script type="text/javascript" src="ieupdate.js"></script>
  </div>
<!-- the div id of lower has a z-index of 1 -->

Here is a link to the pageear script:


Happy2B
 
Your embed tag (which is read by other browsers instead of the object tag) has an incorrect way of addressing the wmode issue. Try your code to this and see if it works:
Code:
<embed src="<cfoutput>#layout#</cfoutput>.swf" quality="high" pluginspage="[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer"[/URL] type="application/x-shockwave-flash" width="715" height="320" wmode="transparent"></embed>

___________________________________________________________
[small]Do something about world cancer today: Comprehensive cancer control information at PACT[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top