|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Flash Discussion Forum Flash design presents a limitless number of possibilities for your sites and designs. Discuss your Flash ideas, questions and issues here. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
it's giving me grief and unforunately i *have* to get the page to validate! So I hope someone will help.
I've currently got a bit of javascript to detect if the user has a good enough version and then display the movie, otherwise it shoudl just display a static image. So far the relevant code is: Code:
document.write("<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' width='640' height='160' id='ftMc' align='middle'>");
document.write("<param name='allowScriptAccess' value='sameDomain'>");
document.write("<param name='movie' value='flashIntro.swf' >");
document.write("<param name='loop' value='false' >");
document.write("<param name='quality' value='high' >");
document.write("<param name='bgcolor' value='#fcd957' >");
document.write("<embed src='flashIntro.swf' loop='false' quality='high' name='ftMc' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer'>");
document.write("</object>");
However, I took it out of the javascript bit, and I get even more errors - most of the EMBED tag attributes arent recognised for some reason. Any help, suggestions or pointers would be greatly appreciated. Cheers. |
|
|||
|
i managed to stop the errors showing on the validation report. It was the javascript causing the grief. The closing object tag wanted to be written as
<\/OBJECT> instead of just </OBJECT> see this page for more info: http://www.htmlhelp.com/tools/valida...ms.html#script however, I havent tackled the fact that if you remove the html out of the javascript and just display the flash with no detection, there are several validation errors. But as long as it works, I'm not going to waste any more time... |
|
|||
|
|
|
|||
|
Green eagle wrote that this does not validate :
Quote:
Then you can put " <script type="text/javascript" src="pathTo/folder/yourname.js"><script/> " in your page where the SWF goes. I get around to much like this, but I have javascript that doesnt validate, aned it is a QUIRK WITH THE VALIDATOR. |
|
||||
|
I got it to validate (Dreamweaver)like this:
<object type="application/x-shockwave-flash" data="movie.swf" width="750" height="140"> <param name="movie" value="header.swf" > </object> It's funny that many ways Dreamweaver does things won't validate to their on validation criteria! Both movies are so small that IE's streaming problem will not effect the outcome in this case. I'll try it W3C in the next couple days. Thanks, Ken |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |