~ubuntu-branches/ubuntu/karmic/moon/karmic

« back to all changes in this revision

Viewing changes to test/xaml/clock/clock22.html

  • Committer: Bazaar Package Importer
  • Author(s): Jo Shields
  • Date: 2009-02-14 12:01:08 UTC
  • Revision ID: james.westby@ubuntu.com-20090214120108-06539vb25vhbd8bn
Tags: upstream-1.0
ImportĀ upstreamĀ versionĀ 1.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
3
<script type="text/javascript" src="Silverlight.js"></script>
 
4
<script lang="text/javascript">
 
5
function createSilverlight()
 
6
{
 
7
        Silverlight.createObjectEx({
 
8
                source: "clock22.xaml",
 
9
                parentElement: document.getElementById("SilverlightControlHost"),
 
10
                id: "SilverlightControl",
 
11
                properties: {
 
12
                        width: "100%",
 
13
                        height: "100%",
 
14
                        version: "1.1",
 
15
                        enableHtmlAccess: "true"
 
16
                },
 
17
                events: {}
 
18
        });
 
19
           
 
20
        // Give the keyboard focus to the Silverlight control by default
 
21
    document.body.onload = function() {
 
22
      var silverlightControl = document.getElementById('SilverlightControl');
 
23
      if (silverlightControl)
 
24
      silverlightControl.focus();
 
25
    }
 
26
 
 
27
}
 
28
</script>
 
29
    <style type="text/css">
 
30
        .silverlightHost { width: 640px; height: 200px; }
 
31
    </style>
 
32
    </head>
 
33
    
 
34
<body bgcolor="gray">
 
35
 
 
36
    <div id="SilverlightControlHost" class="silverlightHost" >
 
37
        <script type="text/javascript">
 
38
            createSilverlight();
 
39
        </script>
 
40
    </div>
 
41
</body>
 
42
</html>