
07-28-2004, 04:48 PM
|
 |
Registered User
|
|
Join Date: Jul 2004
Location: Amsterdam, Netherlands
Posts: 33
|
|
|
embedding flash: not valid html
Hi. I am rather new at this. Whenever I embed a flash animation, I get a lot of errors, such as these:
1:
there is no attribute src for this element (in this HTML version)
2:
there is no attribute quality for this element (in this HTML version)
3:
there is no attribute pluginspage for this element (in this HTML version)
What am I doing wrong?  I hope I can learn a lot from this forum. Thanks.
__________________
Mapie
|

07-29-2004, 12:56 PM
|
 |
Administrator
|
|
Join Date: Jan 2002
Location: Berlin, Germany
Posts: 1,453
|
|
Check if you have the correct document type. 
|

07-29-2004, 01:11 PM
|
 |
Super Moderator
|
|
Join Date: Dec 2002
Posts: 107
|
|
|
I think the embed tag is for Netscape 4.7, so if you are sure no one with Netscape 4.7 will actually come to your site, just remove it. The syntax is not according to any standards, which is why it errors all over the place.
:clueless
__________________
--
Need help? STFW!
|

07-30-2004, 06:43 AM
|
 |
Registered User
|
|
Join Date: Jul 2004
Location: Amsterdam, Netherlands
Posts: 33
|
|
thanks
I tried two doctypes 1=DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd" and 2=DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN", but that didn't make a difference. Then I removed the 'object' tags and... no more mistakes, all valid html yeeeeeeeeeah! I am happy. All I am left with is an error message about the email-link having the word 'body' in it, but that's to tell people to leave the subject line intact so I can tell it's a valid email, not spam, although I usually am so careful someone else might download it by accident.
Thanks, removing the netscape tag helps. But... there will be people using netscape, so what about them...
Anyway, this is great. I shall visit this forum often, I think. I also have another question that I shall post later.
I hope someone knows about Netscape, too.
__________________
Mapie
|

07-30-2004, 01:02 PM
|
 |
Registered User
|
|
Join Date: Nov 2003
Location: Formby, UK
Posts: 239
|
|
This is the correct HTML code for embedding Flash. It validates 100%.
Code:
<object type="application/x-shockwave-flash" data="filename.swf"
width="200" height="200"
id="movie1">
<param name="movie" value="filename.swf">
<p>You need the Flash plugin.</p>
<p<a href="http://www.macromedia.com/go/getflashplayer/">Download Macromedia Flash Player</a></p>
</object>
John
|

07-30-2004, 02:13 PM
|
 |
Registered User
|
|
Join Date: Jul 2004
Location: Amsterdam, Netherlands
Posts: 33
|
|
thanks!
I shall give this a try. Does it work for Netscape too? I shall do it now, just a sec. I really should download netscape to test stuff, but I had such problems with it in the past that I deleted the whole thing about 9 months ago, like a reverse birth. Oh well, wait, I shall download it now. Busy...
It works!!! Yeeeeeeeeeah! I am happy. Okay, so now the whole site validates (except for that little thingie in the email link, but that's only on two pages, so...) Hm... if I remove that I could put the (ugly) W3 logo on it, that would be kinda cool... Thanks a lot!!!!!!!!!!
Hm, I wanted to add a smiley but every time I click on an icon the page moves to the top. Oh well...
__________________
Mapie
|

03-04-2005, 02:50 PM
|
|
Registered User
|
|
Join Date: Mar 2005
Posts: 2
|
|
|
One thing that this method does not do is give the ability to define the swf file size as a percentage instead of fixed dimensions.
Is there a workaround that allows the use of width="100%" and height="100%"?
Thanks,
Vic
|

03-04-2005, 03:27 PM
|
 |
Registered User
|
|
Join Date: Nov 2003
Location: Formby, UK
Posts: 239
|
|
|
Hi,
This is a very good question, there is a way to make it be displayed as a percentage but it has to be done in macromedia flash before you publish the movie.
I have Flash MX 2004, so it may be slightly different if you have another version, but here is how I would do it:
Go to File - Publish Settings
Choose the HTML tab
Change the Dimensions drop-down list to Percent
Publish your movie
That should work :-)
John
|

03-04-2005, 04:10 PM
|
|
Registered User
|
|
Join Date: Mar 2005
Posts: 2
|
|
Actually that doesn't work when you override it with the settings within the object tag. Since posting however I've discovered that you can set the width to a percentage, but not the height.
This works for me as it was width that I was actually concerned with.
Thanks!
Vic
|

03-16-2005, 12:51 PM
|
|
Registered User
|
|
Join Date: Mar 2005
Posts: 1
|
|
|
Does this work in IE5 on a mac?
I have tried this method and it doesn't seem to work onn a mac...anyone else had this problem?
I also have image rollovers on my site, is there a confliction between the two?
Cheers
Kev
|
| Thread Tools |
|
|
| Display Modes |
Rate This Thread |
Linear Mode
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:45 PM.
|
|
|