This function takes four parameters, the last two of which are optional. One can create viewer instances without attaching them to the document by simply allocating a new WebViewer: Marmoset Viewer can also be used directly, without use of the embed utility, for greater control. For best results, ensure that the given URL will not cause a cross-origin conflict. If supplied, this image URL will be used for the load screen instead of the thumbnail extracted from the mview file. Useful for creating a simple, decent-looking presentation without having to construct a page yourself.ĭefault = none. When enabled, constructs a full standalone web page around the viewer, with a resizable frame. This setting is ignored when the “pagePreset” option is enabled.ĭefault = false. When enabled, stretches the viewer rectangle to fill the available frame (the containing window or iframe). Leaving this disabled can save bandwidth and page load time.ĭefault = false. Starts the viewer loading process immediately upon load (user doesn’t have to press the play button). This setting is ignored in full frame mode.ĭefault = false. This setting is ignored in full frame mode.ĭefault = 600. These members are as follows: Typeĭefault = 800. The second parameter to embed() is a javascript object with several optional members present. A WebViewer instance is returned (see also the “Direct Creation” section below). Depending on the options present in paramObject, the rest of the document may also be further formatted. When successful, embed() will append a viewer instance to the document body through a call to appendChild.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |