3
<script type="text/javascript" src="Silverlight.js"></script>
4
<script lang="text/javascript">
5
function createSilverlight()
7
Silverlight.createObjectEx({
8
source: "clock27.xaml",
9
parentElement: document.getElementById("SilverlightControlHost"),
10
id: "SilverlightControl",
15
enableHtmlAccess: "true"
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();
29
<style type="text/css">
30
.silverlightHost { width: 640px; height: 200px; }
36
<div id="SilverlightControlHost" class="silverlightHost" >
37
<script type="text/javascript">