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

Template:FlashEmbed: Difference between revisions

Template page
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<templatestyles src="Template:FlashEmbed/styles.css" />
<div style="text-align:center;">
 
  <div class="ruffle-player" style="width:{{{width|640}}}px;height:{{{height|480}}}px;">
<!-- Splash Screen with Button -->
     <object data="{{{url}}}"
<htmltag tagname="div"
            type="application/x-shockwave-flash"
    class="custom-splash"  
            width="{{{width|640}}}"
    style="position:relative; width:{{{width|640}}}px; height:{{{height|480}}}px; background:#000; margin-left:auto; margin-right:auto; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:10px;">
            height="{{{height|480}}}">
 
      <param name="movie" value="{{{url}}}" />
  <htmltag tagname="img"
      <param name="allowScriptAccess" value="never" />
    src="https://www.gamebrew.org/images/5/52/Gb-logo-v3.png"
    </object>
     alt="Loading..."
   </div>
    style="max-width:80%; max-height:60%;" />
</div>
 
  <htmltag tagname="button"
    class="play-button"
    style="padding:10px 20px; font-size:18px; background-color:#36c; color:#fff; border:none; border-radius:8px; cursor:pointer;">
    Play Now
  </htmltag>
 
</htmltag>
 
<!-- Ruffle Player (Hidden initially) -->
<htmltag tagname="div"
    class="ruffle-player"
    data-swf-url="{{{url}}}"  
    data-splash-screen="{{{preloader|true}}}"  
    style="width:{{{width|640}}}px; height:{{{height|480}}}px; margin-left:auto; margin-right:auto; display:none;">
 
  <htmltag tagname="object"
    type="application/x-shockwave-flash"
    data="{{{url}}}"
    width="100%"
    height="100%"
    style="display:block; margin:0 auto;">
    <htmltag tagname="param" name="movie" value="{{{url}}}" selfclose="true" />
    <htmltag tagname="param" name="allowScriptAccess" value="never" selfclose="true" />
   </htmltag>
 
</htmltag>
</includeonly>
</includeonly>

Revision as of 13:06, 25 April 2025

Advertising: