Template:FacebookVideo

    Table of contents
    No headers
    /***
        USAGE:
    
        FacebookVideo(link)
            Embed a video from Facebook using the default size.
    
        FacebookVideo(link, factor)
            Embed a resized video from Facebook.
    
        PARAMETERS:
    
        link : uri
            Link to Facebook video (as found in the <embed src="..."> tag).
    
        factor : num
            (optional, default: 1.0) Resize factor for the Facebook video.
    
    ***/
    
    // read parameters
    var link = $0 ?? $link;
    var w = 576;
    var h = 432; var f = $1 ?? $factor ?? 1.0; // embed <object>/<embed> tags <object width=(w * f) height=(h * f) >     <param name="allowfullscreen" value="true" />     <param name="allowscriptaccess" value="always" />     <param name="movie" value=(link) />     <embed src=(link) type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width=(w * f) height=(h * f) /> </object>
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by