-
Notifications
You must be signed in to change notification settings - Fork 0
/
Sonic.html
68 lines (57 loc) · 1.44 KB
/
Sonic.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<head>
<title>Edward's Website | Tynker</title>
<link rel="stylesheet" href="games.css">
<div class="header-title">
</div>
<a onclick="goBack()">Back</a>
<script>
function goBack() {
window.history.back();
}
</script>
</head>
<body>
<center>
<div>
<div id="emulator">
<p>To play this game, please, download the latest Flash player!</p>
<br>
<a href="http://www.adobe.com/go/getflashplayer">
<img src="//www.adobe.com/images/shared/download_buttons/get_adobe_flash_player.png" alt="Get Adobe Flash player"/>
</a>
</div>
</div>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.0/jquery.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"></script>
<script type="text/javascript">
var resizeOwnEmulator = function(width, height)
{
var emulator = $('#emulator');
emulator.css('width', width);
emulator.css('height', height);
}
$(function()
{
function embed()
{
var emulator = $('#emulator');
if(emulator)
{
var flashvars =
{
system : 'sega',
url : 'roms/Sonic.zip'
};
var params = {};
var attributes = {};
params.allowscriptaccess = 'sameDomain';
params.allowFullScreen = 'true';
params.allowFullScreenInteractive = 'true';
swfobject.embedSWF('/SWFs/flash/Nesbox.swf', 'emulator', '640', '480', '11.2.0', 'flash/expressInstall.swf', flashvars, params, attributes);
}
}
embed();
});
</script>
</center>
</body>