 |
|
|
| View previous topic :: View next topic |
| Author |
Message |
radams
Joined: 23 Sep 2009 Posts: 4
|
Posted: Wed Sep 23, 2009 4:03 am centered div with Flash ie8 problems |
|
|
|
Hi
every time i center a div with a certain one of my flash animations in ie 8, it doesn't work properly.
Also this only occurs when the browser is maximised
works fine in firefox
here is non centered
http://www.reflections.co.uk/hk/loader.html
and centered
http://www.reflections.co.uk/hk/
try them maximised and at a reduced size
Any suggestions appreciated
Roy |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 4883 Location: MS
|
Posted: Wed Sep 23, 2009 4:23 am |
|
|
|
Your problems stem from improper or lack of a document type. You have many critical errors in HTML coding:
HTML Errors
In page centered, you have even more errors:
HTML Errors (Centered Page)
Without a document type, you put all browsers in Quirks Mode which guarantees that your pages will NOT be cross browser compatible.
You are using outdated coding. Best to use CSS when you are using divs. Make a wrapper div for the media player:
| Code: |
div#vid_wrap {
width: XXpx;
height: YYpx;
margin: 0 auto;
} |
Add whatever margin/padding you need. Set width/height to wrap media player. Add more if you want to add a background color/image/border.
Then,
| Code: |
| <div id="vid_wrap"> object tags here </div> |
|
|
radams
Joined: 23 Sep 2009 Posts: 4
|
Posted: Wed Sep 23, 2009 6:31 am |
|
|
|
Hi
Tried that
had tried that already, but that is an old page
from my experience page won't validate, with X/HTML
unless i put flash on the page with JS
still no joy |
|
radams
Joined: 23 Sep 2009 Posts: 4
|
|
radams
Joined: 23 Sep 2009 Posts: 4
|
Posted: Wed Sep 23, 2009 7:45 am Problem found |
|
|
|
The problem was with the swf
Some how the size of it must have been changing when the browser was maximised.
so i think the _xmouse function,
which is checking to see where the mouse is wasn't returning the correct values
anyway once i put in
Stage.scaleMode = "noScale";
everything seems fine
weird that this only happened in I.E 8 |
|
PayneLess Designs

Joined: 28 Feb 2007 Posts: 4883 Location: MS
|
Posted: Wed Sep 23, 2009 3:01 pm |
|
|
|
WOW, http://www.reflections.co.uk/hk/loader.html looks very good. Just remove the language="JavaScript" attributes as that is an outdated one and only the type="" is used. Strange the validator didn't flag that.
| radams wrote: |
Hi
Tried that
had tried that already, but that is an old page
from my experience page won't validate, with X/HTML
unless i put flash on the page with JS
still no joy |
Only the embed tag needs to be put on with JavaScript. Embed tag is not a "real" tag and never has been accepted, but there is media code that will work in all browsers without it. Since you use JS for all embedding, no problem except for Viewers that have JS turned off.
Good job. |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
|
 |
|
|
|
|
|
|
|