Skip to content

Instantly share code, notes, and snippets.

@beef
Created February 19, 2009 10:47
Show Gist options
  • Save beef/66858 to your computer and use it in GitHub Desktop.
Save beef/66858 to your computer and use it in GitHub Desktop.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<title>Sniffer</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.1/swfobject.js"></script>
<script type="text/javascript" charset="utf-8">
var flashvars = {
is_ie: !!(window.attachEvent && navigator.userAgent.indexOf('Opera') === -1)
};
var params = {
allowFullScreen: true
};
swfobject.embedSWF("desktopNew.swf", "desktopNew", "100%", "100%", "9.0.0", null, flashvars, params);
// alert(flashvars.is_ie ? 'IE Browser' : 'Not IE');
</script>
<style type="text/css" media="screen">
html, body, #desktopNew { height:100%; }
body { margin:0; padding:0; overflow:hidden; }
</style>
</head>
<body>
<div id="desktopNew">Flash goes here</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment