Adding a swf file to web page - Post...
Can anyone help me with the code to add an automatically starting, run one time per visit to page, swf video to my page? The website is www.quitmanclassof1990.com. On some computers it automatically starts, on others it does not. PLEASE HELP ME!!!!!
You just need to embed the flashobject. The reason it may not appear in all browsers is because you need the embed and and object tags along with it. Also remember that it wont show up if the person viewing it does not have flash enabled in their browser. Here is the embed code:
<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object>
Put this code where you want it to appear in your html. Remember to change the filenames in the code to reflect the your .swf file.
<object width="550" height="400">
<param name="movie" value="somefilename.swf">
<embed src="somefilename.swf" width="550" height="400">
</embed>
</object>
Put this code where you want it to appear in your html. Remember to change the filenames in the code to reflect the your .swf file.
The philosopher has not done philosophy until he has acted upon the mere conviction of his idea; for proof of the theory is in the act, not the idea.
My Web Development Company: http://www.innovatewebdevelopment.com (Created with Coffee Cup Software).
My Personal Website: http://www.EricSEnglish.com
My Web Development Company: http://www.innovatewebdevelopment.com (Created with Coffee Cup Software).
My Personal Website: http://www.EricSEnglish.com
With this code will it start automatically and play only one time per visit?
It appears on all computers - just does not play on all computers without refreshing the page.
Will it not start auto on all computers with that embedded or is there anything else I can do to make it do that? I don't know much about programming -
It appears on all computers - just does not play on all computers without refreshing the page.
Will it not start auto on all computers with that embedded or is there anything else I can do to make it do that? I don't know much about programming -
yes, it should.
The philosopher has not done philosophy until he has acted upon the mere conviction of his idea; for proof of the theory is in the act, not the idea.
My Web Development Company: http://www.innovatewebdevelopment.com (Created with Coffee Cup Software).
My Personal Website: http://www.EricSEnglish.com
My Web Development Company: http://www.innovatewebdevelopment.com (Created with Coffee Cup Software).
My Personal Website: http://www.EricSEnglish.com
Francell Burnett wrote:
With this code will it start automatically and play only one time per visit?
With this code will it start automatically and play only one time per visit?
It will play automatically but will loop according to the swf.
CoffeeCup... Yeah, they are the best!
Francell
<object id="aaaaaaaa" data="xxxxxxxx.swf" height="yyy" type="application/x-shockwave-flash" width="zzz"><param name="movie" value="xxxxxxxx.swf" /></object>
This code is w3c compatible. Throws no errors
Don't know if this helps but it works for me. The flash movies I design have a stop at the end.
<object id="aaaaaaaa" data="xxxxxxxx.swf" height="yyy" type="application/x-shockwave-flash" width="zzz"><param name="movie" value="xxxxxxxx.swf" /></object>
This code is w3c compatible. Throws no errors
Don't know if this helps but it works for me. The flash movies I design have a stop at the end.
This code is w3c compatible. Throws no errors
Yes, but using data="xxxxxxxx.swf" will not play the movie until the entire swf is loaded which is not good for large files or you have a few on a single page. That's why I stopped using it. I'd rather have a line or two not pass compliance.
The embed tag doesn't hurt the page layout and that's what compliance is for except accessibility, and if you were worried about that you wouldn't be using flash in the first place.
CoffeeCup... Yeah, they are the best!
Tom
Never had a problem. Then again, I try not to go over 100K. 150K at the very largest. They load very quickly with dsl. This just happens to be the first code I picked up at the Expression Web forums in order to build W3C validated pages. If you don't care, "embed" is fine. I use it as well on pages where I don't care.
Never had a problem. Then again, I try not to go over 100K. 150K at the very largest. They load very quickly with dsl. This just happens to be the first code I picked up at the Expression Web forums in order to build W3C validated pages. If you don't care, "embed" is fine. I use it as well on pages where I don't care.
Yeah, I'm on fast cable and have seen blank placeholders waiting for the movie to load.. Using that is no problem for small sized banners and such. The problem is with large files like video not streaming. The entire swf has to load. There is a work around for this, though. You have to use the data object as a container for the actual swf.
CoffeeCup... Yeah, they are the best!
Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.