⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 media_quicktime.asp@output=print

📁 W3Schools tutorial..web designing
💻 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>Object Element - Quick Time Video</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>Playing QuickTime Movies</h1>
<a href="media_object.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="media_realvideo.asp"><img border="0" src="../images/btn_next.gif" width="100" height="20" alt="Next" /></a>

<hr />

<p><b>The &lt;object&gt; element can play QuickTime movies.</b></p>

<hr />

<h2>The QuickTime Format</h2>

<p>The QuickTime format is developed by Apple. Videos stored in the QuickTime format have the extension .mov.</p>

<p>QuickTime is a common format on the Internet, but QuickTime movies cannot be 
played on a Windows computer without an extra (free) component installed.</p>

<p>With the object element, code that will play a QuickTime movie can easily be 
added to a web page. The object can be set to automatically install a QuickTime 
player if it is not already installed on the users computer.</p>

<hr />

<h2>The Solution</h2>

<p>This is the code required to play a QuickTime movie:</p>

<table width="100%" border="1" class="ex" cellspacing="0">
<tr><td>
<pre>&lt;object width=&quot;160&quot; height=&quot;144&quot;
classid=&quot;clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B&quot;
codebase=&quot;http://www.apple.com/qtactivex/qtplugin.cab&quot;&gt;
&lt;param name=&quot;src&quot; value=&quot;sample.mov&quot;&gt;
&lt;param name=&quot;autoplay&quot; value=&quot;true&quot;&gt;
&lt;param name=&quot;controller&quot; value=&quot;false&quot;&gt;</pre>
<pre>&lt;embed src=&quot;sample.mov&quot; width=&quot;160&quot; height=&quot;144&quot;
autoplay=&quot;true&quot; controller=&quot;false&quot;
pluginspage=&quot;http://www.apple.com/quicktime/download/&quot;&gt;
&lt;/embed&gt;</pre>
<pre>&lt;/object&gt;</pre>
</td></tr>
</table>
<br />
<hr />

<h2>The &lt;object&gt; Element</h2>

<p>The <b>width</b> and <b>height</b> attributes of the object element should 
match the size of the movie in pixels.</p>


<p>The <b>classid</b> attribute uniquely identifies the player software to use. 
It must be set 
to &quot;clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B&quot;. This unique code 
identifies an ActiveX control that must be installed on the users PC before the 
movie can be played. If the user does not have the ActiveX control installed, 
the browser can automatically download and install it. </p>


<p>The <b>codebase</b> attribute specifies the base path used to resolve 
relative URIs specified by the classid, data, and archive attributes. When 
absent, its default value is the base URI of the current document. <b>Note:</b> 
Internet Explorer uses this attribute to specify a location from where the player can 
be downloaded. It must be 
set to &quot;http://www.apple.com/qtactivex/qtplugin.cab&quot;. This location 
will always contain the latest version of the QuickTime player.</p>


<p>The <b>src</b> parameter should point to the movie file.</p>


<p>The <b>autoplay</b> parameter should have the value &quot;true&quot; if you want the 
movie to play automatically.</p>


<p>The <b>controller</b> parameter should have the value &quot;false&quot; if you don't 
want the control buttons to show.</p>


<hr />

<h2>The &lt;embed&gt; Element</h2>


<p>The <b>embed</b> element is added to support browsers that don't support the 
object element. A browser that understands the object element will ignore the 
embed element.
      The object element will be used by new browsers that support ActiveX 
      controls (Internet Explorer 5 and 6). Older browsers (Netscape 4 and 5) 
will use the embed element.</p>


<p>The <b>width</b> and <b>height</b> attributes of the embed element should 
match the size of the movie in pixels.</p>


<p>The <b>autoplay</b> and <b>controller</b> attributes of the embed element 
should be set to the same values as for the parameters in the object element.</p>


<p>The <b>pluginspage</b> attribute defines the players download path. It must 
be set to &quot;http://www.apple.com/quicktime/download/&quot;.</p>

<hr />

<a href="media_object.asp"><img border="0" src="../images/btn_previous.gif" width="100" height="20" alt="Previous" /></a>
<a href="media_realvideo.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 + -