我想在我的网站上弹出模态窗口(这是一个窗口,背景为不透明),以显示一些数据。请检查下面的图片:如何在背景中以不透明的方式获取弹出窗口?
Image http://img714.imageshack.us/img714/1592/gggggol.jpg
我想用类似的实现为:http://www.smartclient.com/?skin=Enterprise#modality 但我无法弄清楚如何做到这一点。任何人都可以帮我实施这个吗?我找不到要从这里下载的文件:http://www.smartclient.com/product/download.jsp
是不是像MooTools或jQuery框架?我不明白从他们下载的库中包含哪个文件。 有人可以给我一个例子的HTML页面代码来做到这一点?
另一件事是,我看到了他们的源下面的代码:
isc.IButton.create({
ID: "touchButton",
width: 120,
title: "Touch This"
});
isc.Label.create({
left: 150,
height: 20,
contents: "<a href='http://www.google.com' target='_blank'>Open Google</a>"
});
isc.IButton.create({
title: "Show Window",
top: 35,
left: 75,
click : function() {
touchButton.setTitle("Can't Touch This");
modalWindow.show();
}
});
isc.Window.create({
ID: "modalWindow",
title: "Modal Window",
autoSize:true,
autoCenter: true,
isModal: true,
showModalMask: true,
autoDraw: false,
closeClick : function() { touchButton.setTitle('Touch This'); this.Super("closeClick", arguments)},
items: [
isc.DynamicForm.create({
autoDraw: false,
height: 48,
padding:4,
fields: [
{name: "field1", type: "select", valueMap: ["foo", "bar"]},
{name: "field2", type: "date"},
{type: "button", title: "Done",
click: "modalWindow.hide();touchButton.setTitle('Touch This')" }
]
})
]
});
我关心下面的代码:
fields: [
{name: "field1", type: "select", valueMap: ["foo", "bar"]},
{name: "field2", type: "date"},
{type: "button", title: "Done",
click: "modalWindow.hide();touchButton.setTitle('Touch This')" }
]
可以有一个人请告诉我这是什么样的代码?有没有像MooTools或jQuery中提供的东西? 我对这些事情是n00b。请帮忙。先谢谢你。
嗯,我知道如何在jQuery或MooTools中创建模态窗口。但我很好奇SmartClient中的情况如何:http://www.smartclient.com/product/download.jsp,因为它具有许多其他功能,我也愿意为我的页面实施这些功能。尽管谢谢你的回复。 – cavlar 2011-01-28 04:42:58