HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
centered div with Flash ie8 problems
Post new topic   Reply to topic    HTML Help Forum Index -> Multimedia
View previous topic :: View next topic  
Author Message
radams



Joined: 23 Sep 2009
Posts: 4

PostPosted: Wed Sep 23, 2009 4:03 am     centered div with Flash ie8 problems Reply with quote

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: 3593
Location: Biloxi, MS

PostPosted: Wed Sep 23, 2009 4:23 am     Reply with quote

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

PostPosted: Wed Sep 23, 2009 6:31 am     Reply with quote

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

PostPosted: Wed Sep 23, 2009 7:01 am     Reply with quote

there are now no errors for
http://www.reflections.co.uk/hk/loader.html
but still same problem
radams



Joined: 23 Sep 2009
Posts: 4

PostPosted: Wed Sep 23, 2009 7:45 am     Problem found Reply with quote

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: 3593
Location: Biloxi, MS

PostPosted: Wed Sep 23, 2009 3:01 pm     Reply with quote

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.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> Multimedia All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
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
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
DARFUR
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Link Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial