📄 media_object.asp@output=print
字号:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html lang="en-US" xml:lang="en-US" xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Multimedia Object Element</title>
<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="xml,tutorial,html,dhtml,css,xsl,xhtml,javascript,asp,ado,vbscript,dom,sql,colors,soap,php,authoring,programming,training,learning,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />
<meta name="Description" content="Free HTML XHTML CSS JavaScript DHTML XML DOM XSL XSLT RSS AJAX ASP ADO PHP SQL tutorials, references, examples for web building." />
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "../../https@ssl./default.htm" : "../../www./default.htm");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();
</script>
</head>
<body>
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
<h1>The Object Element</h1>
<a href="media_windowsformats.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="media_quicktime.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>
<hr />
<table>
<tr>
<td valign="top"><img border="0" src="pic_beatles.gif" alt="Beatles" /></td>
<td valign="top"><p class="intro">The <object> element can support many different media types,
like:</p>
<ul>
<li><p class="intro">Pictures</p></li>
<li><p class="intro">Sounds</p></li>
<li><p class="intro">Videos</p></li>
<li><p class="intro">Other Objects</p></li>
</ul>
</td>
</tr></table>
<hr />
<h2>Displaying A Picture</h2>
<p>You can display a picture:</p>
<table width="100%" border="1" class="ex" cellspacing="0">
<tr>
<td>
<pre><object height="100%" width="100%"
type="image/jpeg" data="audi.jpeg">
</object></pre>
</td>
</tr>
</table>
<p><a target="_blank" href="tryit.asp@filename=trymedia_pictureobject">Click here to
try it yourself</a> </p>
<hr />
<h2>Displaying A Web Page</h2>
<p>You can display a web page:</p>
<table width="100%" border="1" class="ex" cellspacing="0">
<tr>
<td>
<pre><object type="text/html" height="100%" width="100%"
data="http://www.w3schools.com">
</object></pre>
</td>
</tr>
</table>
<p><a target="_blank" href="tryit.asp@filename=trymedia_webpageobject">Click here to
try it yourself</a> </p>
<hr />
<h2>Displaying A Sound</h2>
<p>You can display a sound:</p>
<table width="100%" border="1" class="ex" cellspacing="0">
<tr>
<td>
<pre><object
classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="liar.wav" />
</object></pre>
</td>
</tr>
</table>
<p><a target="_blank" href="tryit.asp@filename=trymedia_soundwaveobject">Click here to
try it yourself</a> </p>
<hr />
<h2>Displaying A Video</h2>
<p>You can display a video:</p>
<table width="100%" border="1" class="ex" cellspacing="0">
<tr>
<td>
<pre><object
classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param name="FileName" value="3d.wmv" />
</object></pre>
</td>
</tr>
</table>
<p><a target="_blank" href="tryit.asp@filename=trymedia_videoaviobject">Click here to
try it yourself</a> </p>
<hr />
<h2>Displaying A Calendar</h2>
<p>You can display a calendar:</p>
<table width="100%" border="1" class="ex" cellspacing="0">
<tr>
<td>
<pre><object width="100%" height="80%"
classid="clsid:8E27C92B-1264-101C-8A2F-040224009C02">
<param name="BackColor" value="14544622">
<param name="DayLength" value="1">
</object></pre>
</td>
</tr>
</table>
<p><a target="_blank" href="tryit.asp@filename=trymedia_calendarobject">Click here to
try it yourself</a> </p>
<hr />
<h2>Displaying Graphics</h2>
<p>You can display graphics:</p>
<table width="100%" border="1" class="ex" cellspacing="0">
<tr>
<td>
<pre><object width="200" height="200"
classid="CLSID:369303C2-D7AC-11D0-89D5-00A0C90833E6">
<param name="Line0001"
value="setFillColor(255, 0, 255)">
<param name="Line0002"
value="Oval(-100, -50, 200, 100, 30)">
</object></pre>
</td>
</tr>
</table>
<p><a target="_blank" href="tryit.asp@filename=trymedia_graphicobject">Click here to
try it yourself</a> </p>
<hr />
<h2>Displaying Flash</h2>
<p>You can display a flash animation:</p>
<table width="100%" border="1" class="ex" cellspacing="0">
<tr>
<td>
<pre><object width="400" height="40"
classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com
/pub/shockwave/cabs/flash/swflash.cab#4,0,0,0">
<param name="SRC" value="bookmark.swf">
<embed src="bookmark.swf" width="400" height="40"></embed>
</object></pre>
</td>
</tr>
</table>
<p><a target="_blank" href="tryit.asp@filename=trymedia_flashobject">Click here to
try it yourself</a> </p>
<p><a target="_blank" href="tryit.asp@filename=trymedia_w3flashobject">Click here to
try a fancy flash</a> </p>
<hr />
<a href="media_windowsformats.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="media_quicktime.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>
<p>From <b>http://www.w3schools.com</b> (Copyright Refsnes Data)</p>
</body>
</html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -