kaseytraeger Posted August 3, 2004 Posted August 3, 2004 I'm trying to embed a clock (see www.clocklink.com) into a web site built with the XHTML 1.0 Transitional DTD. My page won't validate because the object is embedded as ><embed src="http://www.clocklink.com/Clocks/5001-Gray.swf?TimeZone=PST&DateFormat=DD-mm-YYYY" width="199" height="20" wmode="transparent" type="application/x-shockwave-flash"> and the XHTML 1.0 Trans DTD does not allow the "src" attribute inside <embed> objects. Does anyone know how to fix this? Quote
borfast Posted August 3, 2004 Posted August 3, 2004 (edited) Kasey, is the "embed" tag a valid XHTML tag? I can't find it anywhere as a valid XHTML tag, not even in W3's official XHTML 1.0 Transitional DTD. Perhaps you should look at the <object> tag as a possibility? Edited August 3, 2004 by TCH-Raul Quote
kaseytraeger Posted August 3, 2004 Author Posted August 3, 2004 You were right, Raul. I didn't find any evidence that <embed> is an allowed tag in XHTML. I took your advice and tried the <object></object> sets of tags, but that didn't work either. Until I can figure it out, however, I've disabled the clock from my page. The clock was a flash object. I haven't done any work with Flash at all, so maybe you can help me out. How do web designers embed Flash stuff into their pages? I looked at W3Schools for the <object> tag information, but I didn't notice any attribute that I could use to tell the <object> to pull a file from a different website and embed it as a Flash object. Quote
borfast Posted August 3, 2004 Posted August 3, 2004 Well, Flash is kind of tricky to insert into a web page and still have it validate. But it's not impossible I've done it myself on every site I made that uses Flash. Basically, you simply drop the <embed> tag and use only the <object> tag. Then you create a loader flash movie and use it to load the "real" flash movie but still have the hability to stream the file. I'm making it much more confusing than it is, right? Here's the link to the "A List Apart" article where I learned how to do it: http://alistapart.com/articles/flashsatay/ Quote
cak Posted August 3, 2004 Posted August 3, 2004 Ian Hickson developed a standards compliant flash embed method that doesn’t rely on JavaScript or an extra .swf file. He does use two different object elements; one is enclosed in an IE conditional comment (hack). Despite the extra markup; it does have some advantages over Flash Satay. A brief discussion and example can be found here: h**p://www.dezwozhere.com/blog/archives/000516.html HTH, Carol Quote
kaseytraeger Posted August 3, 2004 Author Posted August 3, 2004 Raul, The Flash Satay method works super duper. I'm pleased with the results. Thank you for the very valuable link. Carol, I'll have to check out the link you provided. If the method documented there is superior to the Flash Satay method, then I will definitely be interested. If you are interest, you can both check out the [now] XHTML-valid clock at http://www.doggydiaries.pudgypuppy.com/. It's in the upper left hand corner... By the way, the clock was not my creation. I don't want to give the mistaken impression that I know even one iota about Flash. I downloaded the clock from ClockLink.com. Quote
borfast Posted August 3, 2004 Posted August 3, 2004 Looks good, Kasey Thumbs Up Carol, I think I heard about that other method but I never tried it. I'll take a look at it. Thanks for the link Quote
Bunni Posted August 3, 2004 Posted August 3, 2004 Very nice, Kasey! I am almost eager for winter to get here so I can sit still INSIDE THE HOUSE and learn MT. You go girl! Thumbs Up Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.