filmcell Posted November 25, 2009 Posted November 25, 2009 any help would be great . I want to add a swf file ( santa thing ) to my main index page . I have a jpg already there , So i just changed the name to the swf file. But all i got was a blank box. <img border="0" src="http://www.'''''.co.uk/images/poster3.jpg" width="550" height="150"></p> <img border="0" src="http://www.''''''.co.uk/images/santa.swf" width="550" height="150"></p> Just got blank box. I put the swf in the image folder. I think i may have to add more code? thanks.
MrPhil Posted November 25, 2009 Posted November 25, 2009 .swf is a Shockwave video file. You can't just simply swap it in place of a .jpeg or .gif image name. I think you need some additional HTML code to "embed" a Shockwave application. Certainly it won't work with an image (<img>) tag. Look around to see what others have done with Shockwave -- I don't use it myself, but I seem to recall others talking about how they had used it.
diy Posted November 25, 2009 Posted November 25, 2009 http://www.w3schools.com/flash/flash_inhtml.asp <object width="550" height="400"> <param name="movie" value="somefilename.swf"> <embed src="somefilename.swf" width="550" height="400"> </embed> </object> hope it helps
filmcell Posted November 25, 2009 Author Posted November 25, 2009 perfect . Works a treat now , thanks guys.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.