Skip to content

Instantly share code, notes, and snippets.

@schamane
Created September 14, 2011 09:40
Show Gist options
  • Save schamane/1216199 to your computer and use it in GitHub Desktop.
Save schamane/1216199 to your computer and use it in GitHub Desktop.
http://givemeart.ru flash sandbox
<!doctype html>
<html class="no-js" lang="ru">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Give ME Art</title>
<meta name="description" content="Give ME Art">
<meta name="author" content="Nesneg">
<link rel="stylesheet" href="/css/reset-min.css">
<link rel="stylesheet" href="/css/style.css">
</head>
<body>
<div id="main" role="main">
<a href="http://reponsesmediterraneennes.ru/">
<img src="/img/gg.png" height="57" width="220" alt="reponsesmediterraneennes.ru"/>
</a>
</div>
<script src="/js/main.js"></script>
</body>
</html>
(function(){
var _flash_installed = ((typeof navigator.plugins != "undefined" && typeof navigator.plugins["Shockwave Flash"] == "object") || (window.ActiveXObject && (new ActiveXObject("ShockwaveFlash.ShockwaveFlash")) != false));
var flashFile = "/wp-content/files/give.swf";
var inner = '<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,79,0" id="give" width="400" height="300">';
inner += '<param name="movie" value="' + flashFile + '">';
inner += '<param name="bgcolor" value="#FFFFFF">';
inner += '<param name="quality" value="high">';
inner += '<param name="allowscriptaccess" value="samedomain">';
inner += '<embed type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" name="give" width="400" height="300" src="' + flashFile + '" bgcolor="#FFFFFF" quality="high" swliveconnect="true" allowscriptaccess="samedomain">';
inner += '<noembed>';
inner += '</noembed>';
inner += '</object>';
if( _flash_installed) {
document.getElementById('main').innerHTML = inner;
}
})();
/*
YUI 3.4.0 (build 3928)
Copyright 2011 Yahoo! Inc. All rights reserved.
Licensed under the BSD License.
http://yuilibrary.com/license/
*/
html{color:#000;background:#FFF}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0}table{border-collapse:collapse;border-spacing:0}fieldset,img{border:0}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal}li{list-style:none}caption,th{text-align:left}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal}q:before,q:after{content:''}abbr,acronym{border:0;font-variant:normal}sup{vertical-align:text-top}sub{vertical-align:text-bottom}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit}input,textarea,select{*font-size:100%}legend{color:#000}
#main {
text-align: center;
margin: 0 auto;
padding-top: 25em;
width: 400px;
}
#main img {
padding-top: 122px;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment