Jump to content

Using < Embed > In Xhtml 1.0 Transitional


kaseytraeger
 Share

Recommended Posts

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?

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Well, Flash is kind of tricky to insert into a web page and still have it validate. But it's not impossible :D 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? :D

Here's the link to the "A List Apart" article where I learned how to do it:

http://alistapart.com/articles/flashsatay/

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...