Hallo,
Ik heb een probleem met een fallback.
Voor een website moet er een flashbestand afgespeeld worden. Die zowel op tablets als op IE8 te zien is.
Nou heb ik met Google Swiffy mijn flashbestand omgezet in een html5 object. Werkt allemaal prima totdat ik een fallback wil maken.
De bedoeling is dus dat wanneer het geen IE is. Dat hij dan het html5 object laat zien. En als het wel IE is, dat hij dan het flashbestand laat zien.
Nu heb ik de volgende code, echter laat hij hierbij alleen maar het flashbestand zien op IE en op de rest van de browsers niks..
Bij voorbaat dank voor de hulp.
Ik heb een probleem met een fallback.
Voor een website moet er een flashbestand afgespeeld worden. Die zowel op tablets als op IE8 te zien is.
Nou heb ik met Google Swiffy mijn flashbestand omgezet in een html5 object. Werkt allemaal prima totdat ik een fallback wil maken.
De bedoeling is dus dat wanneer het geen IE is. Dat hij dan het html5 object laat zien. En als het wel IE is, dat hij dan het flashbestand laat zien.
Nu heb ik de volgende code, echter laat hij hierbij alleen maar het flashbestand zien op IE en op de rest van de browsers niks..
code:
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
| <!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>Untitled Document</title>
<script src="https://www.gstatic.com/swiffy/v5.0/runtime.js"></script>
<script src="http://www.mysite.com/_js/dealers.js" type="text/javascript"></script>
<script src="http://www.mysite.com/_js/swfobject_modified.js" type="text/javascript"></script>
<!--[if !IE]>--><! > <script src="http://www.gstatic.com/swiffy/v5.0/runtime.js"></script> <!--<!-->
<!--[if !IE]>--><! > <script src="http://www.mysite.com/_js/dealers_nl.js" type="text/javascript"></script> <!--<!-->
</head>
<style>html, body {width: 100%; height: 100%;}</style>
<body style="margin: 0; overflow: hidden;">
<div id="swiffycontainer" style="width: 850px; height: 625px; background:none;"><object id="FlashID2" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="850" height="625">
<param name="movie" value="http://www.mysite.com/_flash/dealers_nl.swf" />
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
<param name="expressinstall" value="http://www.mysite.com/_js/expressInstall.swf" />
<!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="http://www.mysite.com/_flash/dealers_nl.swf" width="850" height="625">
<!--<!-->
<param name="quality" value="high" />
<param name="wmode" value="opaque" />
<param name="swfversion" value="6.0.65.0" />
<param name="expressinstall" value="http://www.mysite.com/js/expressInstall.swf" />
<!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
<!--[if !IE]>-->
<script type="text/javascript">// <!></script>
</object>
<!--<!-->
</object>
</div>
<script>
var stage = new swiffy.Stage(document.getElementById('swiffycontainer'), swiffyobject);
stage.start();
</script>
</body>
</html> |
Bij voorbaat dank voor de hulp.