in http://ariadesign.ir/ark/ under the black menu i need to insert new .swf file but i can't and it load from css file . when i edit this file to : #head { height:164px; background:url(../images/head.swf) no-repeat; padding-left:20px;} it dose not load head.swf and i'm sure my code is wrong . what should i do ?
to insert .swf file,try use code like this: "<object classid="clsid27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="767" height="45" title="Call Britannia main menu"> <param name="movie" value="yourfile.swf" /> <param name="quality" value="high" /> <embed src="yourfile.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="767" height="45"></embed> </object>
^ Should have used a code box for that fugly hunk of text! He's right though, unless you go with the HTML5 route and use; <video src="movie.webm" controls> Your browser does not support the video tag. </video> Code (markup): Reference: http://en.wikipedia.org/wiki/HTML5_video Remember that HTML5 is not fully supported yet, but it may be worth knowing this for future's sake. Oh, flash videos are structure, not visual - meaning that you use HTML to insert it and not CSS.
Since Shockwave Flash (Swf) is an object entity, you can not have it as a background but embed it instead. However you can take a screenshot and use the result image as a background to place in the css as a header, if this is what you are trying to accomplish.