filmcell Posted November 25, 2009 Share 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. Link to comment Share on other sites More sharing options...
MrPhil Posted November 25, 2009 Share 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. Link to comment Share on other sites More sharing options...
diy Posted November 25, 2009 Share 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 Link to comment Share on other sites More sharing options...
Guest Posted November 25, 2009 Share Posted November 25, 2009 Try this swfobhect Link to comment Share on other sites More sharing options...
filmcell Posted November 25, 2009 Author Share Posted November 25, 2009 perfect . Works a treat now , thanks guys. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.