HighDots Forums  

Urgent! Can div's ids cause trouble

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss Urgent! Can div's ids cause trouble in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
serg2049
 
Posts: n/a

Default Urgent! Can div's ids cause trouble - 12-10-2007 , 07:19 PM






Can div's ids cause trouble with a javascript loaded flash?

I'm using the swfobject javascript to load a flash animation (this code helps
the submenu layers appear on top of the flash animation and makes that weird
gray line in IE go away).

I have many divs without id, the animation should load into a div called
"mainflash". When I have all those div inside the same table as the "mainflash"
div, the flash animation does not load.

After many tests I found out that only with all those other divs in the
different tds of the table the animation fails to show, which leads me to
thinking the .js code might get confused with all those unidentified divs.

Is that possible? This only happens in firefox 2 when using a mac.

Here's the page without the divs: http://www.l3hm.com/anim_test9x.php

Here's the page with all those divs: http://www.l3hm.com/anim_test4.php

I used php includes, but I also tried having all the content in the page
without the includes and in html and still it didn't work.

Please help me out my client is becoming impatient.


Reply With Quote
  #2  
Old   
djinn
 
Posts: n/a

Default Re: Urgent! Can div's ids cause trouble - 12-10-2007 , 07:37 PM






serg2049 wrote:
Quote:
Can div's ids cause trouble with a javascript loaded flash?

I'm using the swfobject javascript to load a flash animation (this code helps
the submenu layers appear on top of the flash animation and makes that weird
gray line in IE go away).

I have many divs without id, the animation should load into a div called
"mainflash". When I have all those div inside the same table as the "mainflash"
div, the flash animation does not load.

After many tests I found out that only with all those other divs in the
different tds of the table the animation fails to show, which leads me to
thinking the .js code might get confused with all those unidentified divs.

Is that possible? This only happens in firefox 2 when using a mac.

Here's the page without the divs: http://www.l3hm.com/anim_test9x.php

Here's the page with all those divs: http://www.l3hm.com/anim_test4.php

I used php includes, but I also tried having all the content in the page
without the includes and in html and still it didn't work.

Please help me out my client is becoming impatient.

You could try this - in your test.php file - find this line of code.........

<div id="mainflash" style="border: 1px solid rgb(99, 101, 105); padding:
3px; width: 466px; height: 357px; position: absolute; margin-top:
49px;"><embed type="application/x-shockwave-flash" src="l3anim.swf"
style="" id="main" name="main" bgcolor="#FFFFFF" quality="high"
wmode="opaque" height="357" width="466">
</div>


and replace with.........

<div id="mainflash" style="border: 1px solid rgb(99, 101, 105); padding:
3px; width: 466px; height: 357px; margin-top: 49px;"><embed
type="application/x-shockwave-flash" src="l3anim.swf" style="" id="main"
name="main" bgcolor="#FFFFFF" quality="high" wmode="opaque" height="357"
width="466">
</div>

--
chin chin
Sinclair


Reply With Quote
  #3  
Old   
bregent
 
Posts: n/a

Default Re: Urgent! Can div's ids cause trouble - 12-10-2007 , 07:56 PM



The Flash animation loads fine in both version for me in FF and IE6. But you have other problems with alignment. The alignment between FF and IE are drastically different, but neither seem correct.

Reply With Quote
Reply




Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.