Go Back   HTMLCenter Web Development Forums > Web Design and Development > Programming and Scripting

Reply
 
LinkBack Thread Tools Rate Thread Display Modes
  #1 (permalink)  
Old 07-28-2004, 03:48 PM
mapie's Avatar
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
Reply With Quote

  #2 (permalink)  
Old 07-29-2004, 11:56 AM
Till's Avatar
Administrator
 
Join Date: Jan 2002
Location: Berlin, Germany
Posts: 1,453
Check if you have the correct document type.
Reply With Quote
  #3 (permalink)  
Old 07-29-2004, 12:11 PM
tfk's Avatar
tfk tfk is offline
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!
Reply With Quote
  #4 (permalink)  
Old 07-30-2004, 05:43 AM
mapie's Avatar
Registered User
 
Join Date: Jul 2004
Location: Amsterdam, Netherlands
Posts: 33
Smile 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
Reply With Quote
  #5 (permalink)  
Old 07-30-2004, 12:02 PM
john-formby's Avatar
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
Reply With Quote
  #6 (permalink)  
Old 07-30-2004, 01:13 PM
mapie's Avatar
Registered User
 
Join Date: Jul 2004
Location: Amsterdam, Netherlands
Posts: 33
Thumbs up 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
Reply With Quote
  #7 (permalink)  
Old 03-04-2005, 01: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
Reply With Quote
  #8 (permalink)  
Old 03-04-2005, 02:27 PM
john-formby's Avatar
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
Reply With Quote
  #9 (permalink)  
Old 03-04-2005, 03: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
Reply With Quote
  #10 (permalink)  
Old 03-16-2005, 11:51 AM
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
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT -5. The time now is 02:12 AM.

 
KickApps
Clicky Web Analytics


Subscribe to our feed | add to myYahoo!

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.2.0
© 1997-2007 HTMLCenter