Go Back   HTMLCenter Web Development Forums > Web Design and Development > Programming and Scripting

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 12-21-2004, 09:15 AM
Registered User
 
Join Date: Dec 2004
Posts: 1
Avoiding div layer to resize table to accomodate flash in Internet Explorer

Hi there,
I have a problem with div layers, and i don't have much experience with them either, so that doesn't help!

Basically I'm trying to have a flash menu that would roll out over a page. I haven't found any tutorials for that so i've just been experimenting a bit, have done ok so far but stumbled upon a slightly bizarre obastacle.

So... to do the effect I wanted, I created a z-indexed div tag, and limited the size to that of the table it is found in. Then i put a flash menu bigger than that of the div with a transparency option.

This seems to work beautifully in FireFox (as can be seen here: http://www.kezik.com/spot/index_fla.html only the last two menu items work) but in Internet Explorer, the div, hence the table, resizes to the size of the flash... giving us a very ugly result.

How could i avoid this happening? the only thing i can think of is having the div layer in an absolute position, where it would resize but not resize the table, and calculating the absolute position using a lengthy JavaScript script. I would really like to avoid that if it's possible!

Any ideas?

Here's the source of the relelvant part of the page. Thanks a lot for any help you can give me

Code:
<td background="images/c_bg_up.jpg" heigh="25">
	<div id="Layer1" style="width:677px; height:25px; z-index:1;">
		<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="688" height="180" id="menu" align="middle">
			<param name="allowScriptAccess" value="sameDomain" />
			<param name="movie" value="menu.swf" />
			<param name="quality" value="high" />
			<param name="wmode" value="transparent" />
			<param name="bgcolor" value="#ffffff" />
			<embed src="menu.swf" quality="high" wmode="transparent" bgcolor="#ffffff" width="688" height="180" name="menu" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
		</object>
	</div>
</td>
Reply With Quote

  #2 (permalink)  
Old 01-18-2005, 07:02 PM
Registered User
 
Join Date: Jan 2005
Posts: 16
I would either use tables or layers. Both can get it screwed up.

Also, make sure that your page has a valid DTD (doctype). To check, just visit the following page:
http://validator.w3c.org

Hope that helps,
The Terminator
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -5. The time now is 05:52 PM.

 
Bitrix
Clicky Web Analytics
CloudContacts
Maxtango


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter