|
 |
|
 |
10-22-2004, 07:32 PM
|
#1 (permalink)
|
|
Code Monkey
Join Date: Oct 2004
Posts: 57
|
Help with converting to HTML 4.01 Transitional
Hey guys...
I just need some help with converting my site to HTML 4.01 Transitional... I did the check on the internet ( http://validator.w3.org/check?uri=ht...tromike.com%2F ), but the only problem that it finds with it is my flash logo... How can I fix this without losing the logo?
Thanks in advance! 
|
|
|
10-22-2004, 08:54 PM
|
#2 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,475
|
hahah i did it!
http://codenewbie.com/test.html
http://validator.w3.org/check?uri=ht...1+Transitional
so i thought maybe if i wrote the flash tag in javascript, .. close, but it didn't like the object tag then.
sooo .. i made the object tag in html, then wrote all the parameters and embed tag in javascript, then closed the object tag in html.
lmao, what a joke, .. but it works 
__________________
Mike
|
|
|
10-23-2004, 07:06 PM
|
#3 (permalink)
|
|
Code Monkey
Join Date: Oct 2004
Posts: 57
|
What a joke... I never thought that that would actually fix the problem!
OK, now that that's out of the way, what's wrong with it now?? Check the validator for my homepage again...
Quote:
#
Line 26, column 6: end tag for element "HEAD" which is not open
</head>
The Validator found an end tag for the above element, but that element is not currently open. This is often caused by a leftover end tag from an element that was removed during editing, or by an implicitly closed element (if you have an error related to an element being used where it is not allowed, this is almost certainly the case). In the latter case this error will disappear as soon as you fix the original problem.
If this error occured in a script section of your document, you should probably read this FAQ entry.
✉
#
Line 28, column 23: document type does not allow element "BODY" here
<body bgcolor="#BAC3CF">
The element named above was found in a context where it is not allowed. This could mean that you have incorrectly nested elements -- such as a "style" element in the "body" section instead of inside "head" -- or two elements that overlap (which is not allowed).
One common cause for this error is the use of XHTML syntax in HTML documents. Due to HTML's rules of implicitly closed elements, this error can create cascading effects. For instance, using XHTML's "self-closing" tags for "meta" and "link" in the "head" section of a HTML document may cause the parser to infer the end of the "head" section and the beginning of the "body" section (where "link" and "meta" are not allowed; hence the reported error).
|
WTF!? :/
|
|
|
10-24-2004, 10:23 AM
|
#4 (permalink)
|
|
Code Monkey
Join Date: Oct 2004
Posts: 57
|
sde, I changed the Flash to Javascript, and it works fine in Firefox, but not IE... I also fixed the above errors... How can I fix the Flash to work in IE?
|
|
|
10-25-2004, 06:49 AM
|
#5 (permalink)
|
|
Code Monkey
Join Date: Oct 2004
Posts: 57
|
Well, seems that I got it working... Did a Google search on "XHTML Flash Valid" without the quotes and found my answer:
Code:
<object type="application/x-shockwave-flash" data="logo.swf" width="415" height="45">
<param name="movie" value="logo.swf" />
<param name="quality" value="high" />
</object>
The above code seems to validate as XHTML 1.0 Transitional! 
|
|
|
10-28-2004, 02:23 PM
|
#6 (permalink)
|
|
$_['Your_Mom'];
Join Date: May 2002
Location: Santee
Posts: 627
|
note, a preloader will not work when you do it that "valid" way. you need to setup another flash movie to preload the 2nd.
|
|
|
10-28-2004, 02:31 PM
|
#7 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,475
|
wtf? what kind of preloaders are you making? there are many ways .. the ones we do here at work are just the first frame of the movie.. i don't see how the browser knows if the first frame is a preloader or not.
__________________
Mike
|
|
|
10-30-2004, 09:00 AM
|
#8 (permalink)
|
|
Code Monkey
Join Date: Oct 2004
Posts: 57
|
I am not going to be using any preloaders...
|
|
|
10-30-2004, 09:06 AM
|
#9 (permalink)
|
|
Moderator
Join Date: May 2002
Location: us.ca
Posts: 4,475
|
i honestly don't think preloaders have anything to do with it. nothing in the object and embed tag is related to frames of the flash movie.
if you DID want to build a preloader, if you used the method of putting an onEnterFrame() function on the first frame, then just test for bytes loaded vs total bytes, it would work fine.
i think matt has had bad experience with maybe older types of preloaders or something. i don't know.
__________________
Mike
|
|
|
| Thread Tools |
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -8. The time now is 10:20 PM.
|
Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting
|
 |
|