Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 10-22-2004, 07:32 PM   #1 (permalink)
gamehead200
Code Monkey
 
gamehead200's Avatar
 
Join Date: Oct 2004
Posts: 57
gamehead200 is an unknown quantity at this point
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!
gamehead200 is offline   Reply With Quote
Old 10-22-2004, 08:54 PM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
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
sde is offline   Reply With Quote
Old 10-23-2004, 07:06 PM   #3 (permalink)
gamehead200
Code Monkey
 
gamehead200's Avatar
 
Join Date: Oct 2004
Posts: 57
gamehead200 is an unknown quantity at this point
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!? :/
gamehead200 is offline   Reply With Quote
Old 10-24-2004, 10:23 AM   #4 (permalink)
gamehead200
Code Monkey
 
gamehead200's Avatar
 
Join Date: Oct 2004
Posts: 57
gamehead200 is an unknown quantity at this point
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?
gamehead200 is offline   Reply With Quote
Old 10-25-2004, 06:49 AM   #5 (permalink)
gamehead200
Code Monkey
 
gamehead200's Avatar
 
Join Date: Oct 2004
Posts: 57
gamehead200 is an unknown quantity at this point
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!
gamehead200 is offline   Reply With Quote
Old 10-28-2004, 02:23 PM   #6 (permalink)
Admin
$_['Your_Mom'];
 
Admin's Avatar
 
Join Date: May 2002
Location: Santee
Posts: 627
Admin is on a distinguished road
note, a preloader will not work when you do it that "valid" way. you need to setup another flash movie to preload the 2nd.
__________________


Urban Clothing
Admin is offline   Reply With Quote
Old 10-28-2004, 02:31 PM   #7 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
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
sde is offline   Reply With Quote
Old 10-30-2004, 09:00 AM   #8 (permalink)
gamehead200
Code Monkey
 
gamehead200's Avatar
 
Join Date: Oct 2004
Posts: 57
gamehead200 is an unknown quantity at this point
I am not going to be using any preloaders...
gamehead200 is offline   Reply With Quote
Old 10-30-2004, 09:06 AM   #9 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,505
sde is on a distinguished road
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
sde is offline   Reply With Quote
Reply

Bookmarks

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
HTML form preview then INSERT using PHP & MySQL SteveSoler PHP 16 09-21-2008 11:59 PM
Help with launching an exy within HTML. Nicotine HTML, XML, Javascript, AJAX 5 05-12-2004 03:00 PM
html in tutorials is fixed sde Lounge 0 03-25-2003 10:24 AM


All times are GMT -8. The time now is 09:53 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting