Jump to content
xisto Community
Sign in to follow this  
Levis

Help! - Flash & Xhtml Traditional & Strict As the title says

Recommended Posts

Hey guys,
I have not designed a website for over a year. My website is currently in constuction at http://forums.xisto.com/no_longer_exists/ Anyways i am able to code in strict and traditonal xhtml 1.0 but do not know how to properly code a flash object. So let see if someone can come up with a proper way to code a flash object.

This is what Macromedia recs but its dirty dirty and pointless and not valid! lol

<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="794" height="128" title="Geek From the Forest">	<param name="movie" value="/flash/logo/logo.swf" />	<param name="quality" value="high" />	<embed src="/flash/logo/logo.swf" quality="high" pluginspage="http://http://www.adobe.com/special/errorpages/404.html; type="application/x-shockwave-flash" width="794" height="128"></embed> </object>

Does anyone have any ideas how to get around this?

[
Edited by Levis (see edit history)

Share this post


Link to post
Share on other sites

Well, I can give you an example of valid xhtml strict code for the object tag and you just need to learn from it and use yours.

<object type="application/x-shockwave-flash" data="images/banner.swf" width="288" height="128"><param name="movie" value="images/banner.swf" /><img src="banner.gif" width="288" height="128" alt="banner" /></object>

This code is 100% valid, I don't really know why your code doesn't validate, but think the validator parsed you the error message what wasn't valid, I didn't check, but it might have to do something with embed tag. And moreover, there isn't such thing as traditional html/xhtml, I think you mistaken it with Transitional. :P

Share this post


Link to post
Share on other sites

I don't know it for sure, but I think that the <embed/> tag is not valid in any xhtml.

 

 

EDIT:

 

Actualy, take a look to the results of your code al the W3C Validator:

 

<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"	"http://forums.xisto.com/no_longer_exists/ xmlns="http://forums.xisto.com/no_longer_exists/; xml:lang="en" lang="en">  <head>	<title>Test</title>  </head>  <body><p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="794" height="128" title="Geek From the Forest">	<param name="movie" value="/flash/logo/logo.swf" />	<param name="quality" value="high" />	<embed src="/flash/logo/logo.swf" quality="high" pluginspage="http://www.adobe.com/special/errorpages/404.html; type="application/x-shockwave-flash" width="794" height="128"></embed></object></p></body></html>

Input that here: http://validator.w3.org/

 

There you can see where errors occur.

Edited by borlafu (see edit history)

Share this post


Link to post
Share on other sites

Well, I can give you an example of valid xhtml strict code for the object tag and you just need to learn from it and use yours.

<object type="application/x-shockwave-flash" data="images/banner.swf" width="288" height="128"><param name="movie" value="images/banner.swf" /><img src="banner.gif" width="288" height="128" alt="banner" /></object>

This code is 100% valid, I don't really know why your code doesn't validate, but think the validator parsed you the error message what wasn't valid, I didn't check, but it might have to do something with embed tag. And moreover, there isn't such thing as traditional html/xhtml, I think you mistaken it with Transitional. :P


Ya, i was just really tired from studying and made that mistakes. Thanks for the code, i tried something like that but it didn't work for some reason. I see a few differences.

Share this post


Link to post
Share on other sites

Actually, the <object...> element only works in Firefox/Mozilla/Netscape/SeaMonkey (you get the idea) I think. I don't think it works in Internet Explorer.<embed...> wasn't a HTML tag at all. I think Microsoft invented it to popularize Flash and Internet Explorer.I don't know how to get it to work in both sets of browsers. I know that it is possible, someone from SpreadFirefox has shown me this before. It involves a comment tag that is something LIKE this:<!--if [iEI don't know if it is that for sure but it was something similar. That way it was still valid XHTML strict.Hope you figure it out soon.

Share this post


Link to post
Share on other sites

Actually, the <object...> element only works in Firefox/Mozilla/Netscape/SeaMonkey (you get the idea) I think. I don't think it works in Internet Explorer.
<embed...> wasn't a HTML tag at all. I think Microsoft invented it to popularize Flash and Internet Explorer.


Actually not Microsoft, but Netscape, due to the embed element was created by Netscape as their method of embedding plug ins and players in web pages, it is not part of the XHTML specification, and while some browsers other than Netscape support it, it is not standards-compliant, so it is out, it has nothing to do with IE, but eventually, IE cause a lot of problems too if you want that it would work in different browsers.

Here is a good post on how to do it with different methods, so you can choose the best one, but the method with javascript - remember, some people might have it off, there is also an example of Flash Satay code in that article, here is the link: http://blog.deconcept.com/swfobject/

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.