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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Layers, IE and Firefox issues?

Status
Not open for further replies.

countdrak

Programmer
Jun 20, 2003
358
US
I have a flash menu and a logo image. I am trying to position the vertical drop down menu next to the logo, but it just doesnt work. Sometimes the the flash file in on the image, and if it works in ie 6 it doesnt work in firefox! Does anyone know a fix for this? This code is for the header of the page, I just use coldfusion to insert this header on every page.

Here is my code --

Code:
<script language="JavaScript" type="text/JavaScript">
<!--



function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}
//-->
</script>


<table width="791" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
	<tr>
    	<td align="left"><a href="/index.cfm"><img src="/images/Logo.gif" width="237" height="46" border="0" alt="Mycompany"></a>		
		  <div id="Layer1" style="position:absolute; width:554px; height:400px; z-index:1; left: 425px; top: 19px;">
		    <object codebase="[URL unfurl="true"]http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"[/URL] width="554" height="400" align="left">
              <param name="allowScriptAccess" value="sameDomain" />
              
              <param name="movie" value="[URL unfurl="true"]http://10.1.1.3/test.swf">[/URL]
			  <param name="wmode" value="transparent">
              <param name="quality" value="high">
              <embed src="test.swf" width="554" height="400" align="left" wmode="transparent" quality="high" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer"[/URL] movie="[URL unfurl="true"]http://127.0.0.1/test.swf"[/URL] ></embed>
            </object>
		</div>
</td>
  </tr>
</table>
 
try
Code:
<a href="/index.cfm"> 
<div id="logo"style="float:left;"><img src="/images/Logo.gif" width="237" height="46" border="0" alt="Mycompany"></div>
</a> 
<div id="menu" style="float:left;"> 
  <object codebase="[URL unfurl="true"]http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0"[/URL] width="554" height="400" align="left">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="[URL unfurl="true"]http://10.1.1.3/test.swf">[/URL]
    <param name="wmode" value="transparent">
    <param name="quality" value="high">
    <embed src="test.swf" width="554" height="400" align="left" wmode="transparent" quality="high" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="[URL unfurl="true"]http://www.macromedia.com/go/getflashplayer"[/URL] movie="[URL unfurl="true"]http://127.0.0.1/test.swf"[/URL] ></embed> 
  </object>
</div>

If that isn't right then i have misunderstood lol
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top