|
|
|
|
![]() ![]() |
Dec 22 2006, 06:00 AM
Post
#1
|
|
|
Advanced Member Group: Members Posts: 112 Joined: 3-November 06 From: USA, CA, Los Angeles Member No.: 16,947 |
Hey guys,
I have not designed a website for over a year. My website is currently in constuction at http://geekfromtheforest.com/ 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 CODE <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.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="794" height="128"></embed> </object> Does anyone have any ideas how to get around this? [ This post has been edited by Levis: Dec 22 2006, 06:01 AM |
|
|
|
Dec 22 2006, 08:12 AM
Post
#2
|
|
|
the Q Group: [HOSTED] Posts: 1,051 Joined: 13-July 05 From: Lithuania, Vilnius Member No.: 7,059 |
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.
CODE <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. |
|
|
|
Dec 22 2006, 10:58 AM
Post
#3
|
|
|
Member [ Level 2 ] Group: Members Posts: 58 Joined: 9-November 06 Member No.: 17,133 |
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: CODE <?xml version="1.0"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" 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.macromedia.com/go/getflashplayer" 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. This post has been edited by borlafu: Dec 22 2006, 11:06 AM |
|
|
|
Dec 22 2006, 09:00 PM
Post
#4
|
|
|
Super Member Group: Members Posts: 595 Joined: 4-September 04 Member No.: 228 |
Yes embed is the issue. It's deprecated in XHTML and you should use <object> instead. For syntax check Quatrux's post.
|
|
|
|
Dec 22 2006, 10:03 PM
Post
#5
|
|
|
Advanced Member Group: Members Posts: 112 Joined: 3-November 06 From: USA, CA, Los Angeles Member No.: 16,947 |
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. CODE <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. 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. |
|
|
|
Dec 23 2006, 01:14 AM
Post
#6
|
|
|
Super Member Group: [HOSTED] Posts: 695 Joined: 12-July 06 From: Ontario, Canada Member No.: 14,464 |
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 [IE I 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. |
|
|
|
Dec 23 2006, 07:05 AM
Post
#7
|
|
|
Advanced Member Group: Members Posts: 112 Joined: 3-November 06 From: USA, CA, Los Angeles Member No.: 16,947 |
Well it works perfectly in Firefox and IE 7 and the code is valid by W3C standards. Thanks guys.
|
|
|
|
Dec 23 2006, 08:00 AM
Post
#8
|
|
|
the Q Group: [HOSTED] Posts: 1,051 Joined: 13-July 05 From: Lithuania, Vilnius Member No.: 7,059 |
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/ |
|
|
|
![]() ![]() |
Similar Topics
|
Lo-Fi Version | Time is now: 8th October 2008 - 05:31 AM |