Skip to content

Instantly share code, notes, and snippets.

@miketierney
Created July 8, 2009 20:32
Show Gist options
  • Save miketierney/143164 to your computer and use it in GitHub Desktop.
Save miketierney/143164 to your computer and use it in GitHub Desktop.
<body class="support screencast">
# ...
<h1 class="hidden">
<%= @screencast_name.titleize %>
</h1>
# ...
<div class="movie">
<div id="<%= @screencast_name %>">
<strong>Flash is required to see this movie</strong>
</div>
</div>
# ...
</body>
<% content_for :javascript_includes do %>
<%= javascript_include_tag "swfobject.js" %>
<script type="text/javascript" charset="utf-8">
var flashvars = {};
var params = {};
params.wmode = "transparent";
params.allowfullscreen = "true";
params.allowscriptaccess = "always";
var attributes = {};
swfobject.embedSWF("/screencasts/<%= @screencast_name %>.swf", "<%= @screencast_name %>", "640", "480", "9.0.0", false, flashvars, params, attributes);
</script>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment