Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Ruffle Settings

Template page
Revision as of 15:12, 30 September 2023 by HydeWing (talk | contribs) (Created page with "var swfobject = {}; swfobject.embedSWF = function(url, cont, width, height){ var ruffle = window.RufflePlayer.newest(), player = Object.assign(document.getElementById(cont).appendChild(ruffle.createPlayer()), { width: width, height: height, style: 'width: ' + width + 'px; height: ' + height + 'px', }); player.load({ url: url }); }")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

var swfobject = {}; swfobject.embedSWF = function(url, cont, width, height){

   var ruffle = window.RufflePlayer.newest(),
       player = Object.assign(document.getElementById(cont).appendChild(ruffle.createPlayer()), {
           width: width,
           height: height,
           style: 'width: ' + width + 'px; height: ' + height + 'px',
       });
   
   player.load({ url: url });

}

Advertising: