calling xml file and swf files in html page
How i can call xml and swf files in html page i hav to display flash 开发者_如何学运维image
Start learning from:
http://www.w3schools.com/flash/flash_inhtml.asp
http://www.w3schools.com/XML/default.asp
Flash can be easily embedded as follows: (Some help from this site) Basically, just change the filename to the correct one, the size, etc, and you're good to go.
<embed src="example.swf" quality="high" bgcolor="#ffffff"
width="468" height="60"
name="mymoviename" align="" type="application/x-shockwave-flash"
pluginspage="http://www.macromedia.com/go/getflashplayer">
</embed>
XML data is a bit trickier, the best way is with some javascript. This example taken from this page.
<xml Id = msg>
<message>
<to> Visitors </to>
<from> Author </from>
<Subject> XML Code Islands </Subject>
<body> In this example, XML code is embedded inside HTML code </body>
</message>
</xml>
精彩评论