You are here: Reference > JavaScript > client-side > HTML DOM > properties > archive (applet, object)
archive property (applet, object)
Sets or retrieves a space-separated list of URLs for archive files.
There isn't any functionality implemented for this property in commonly used browsers.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read/write.
HTML page for this property: archive |
Possible values:
String that sets or retrieves a space-separated list of URLs.
An URL can be an absolute or relative path as well. If a relative path is used and the codeBase property of the object is specified, then the relative path is relative to the value of this property, else the relative path is relative to the base URL. The base URL is the location of the current document, but it can be overridden by the base tag.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the archive attribute with Macromedia Flash Player.
It clearly focuses on cross-browser support only, and it isn’t standards-compliant, but there isn't any standards-compliant cross-browser way to embed a Flash application into a document with Flash Player detection.
It clearly focuses on cross-browser support only, and it isn’t standards-compliant, but there isn't any standards-compliant cross-browser way to embed a Flash application into a document with Flash Player detection.
|
||||
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="300" height="120" codebase="http://fpdownload.adobe.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" archive="http://archive.somePlace.com/swflash.cab#version=3,0,11,0"> <param name="movie" value="flash.swf" /> <!-- Optional params --> <param name="play" value="true" /> <param name="loop" value="true" /> <param name="quality" value="high" /> <!-- END Optional --> <embed src="flash.swf" width="300" height="120" play="true" loop="true" quality="high" pluginspage="http://www.adobe.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" /> </object> |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
This example has similar functionality to the previous one, but it creates the Macromedia Flash Movie dynamically.
|
|||||
<head> <script type="text/javascript" src="flash.js"></script> <script type="text/javascript"> function CreateFlash () { var flashContainer = document.getElementById ("flashContainer"); var flash = new Flash (); flash.Init (flashContainer, "flash.swf", 300, 200); flash.SetParam ('bgcolor', '#000000'); flash.SetParam ('quality', 'high'); var flashTag = flash.Create (); flashTag.archive = "http://archive.somePlace.com/swflash.cab#version=3,0,11,0"; } </script> </head> <body onload="CreateFlash ()"> <div id="flashContainer"></div> </body> |
|||||
|
|||||
Did you find this example helpful?
|
Supported by objects:
External links:
User Contributed Comments