default_html.js
来自「动网论坛系列产品倍受用户赞誉的就是强大的功能和出色的用户体验表现」· JavaScript 代码 · 共 31 行
JS
31 行
function createSilverlight(xamlPath)
{
if (!xamlPath)
{
xamlPath = 'templates/default/scripts/Silverlight/demo2/demo.xml';
}
var scene = new photoGalleryWall.Page();
Silverlight.createObjectEx({
source: xamlPath,
parentElement: document.getElementById("SilverlightControlHost"),
id: "SilverlightControl",
properties: {
width: "100%",
height: "100%",
version: "1.0"
},
events: {
onLoad: Silverlight.createDelegate(scene, scene.handleLoad)
}
});
}
if (!window.Silverlight)
window.Silverlight = {};
Silverlight.createDelegate = function(instance, method) {
return function() {
return method.apply(instance, arguments);
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?