后台代码
hlinkTitle.Attributes.Add("onclick", "javascript:openDialog('" + linkUrl + "','LookDetail', '查看详细信息', 800, 600, 50, 50)");
前台js,定义在FunctionJS.js中
function openDialog(url, _id, _title, _width, _height, left, top) {
art.dialog.open(url, {
id: _id,
title: _title,
width: _width,
height: _height,
left: left + '%',
top: top + '%',
background: '#000000',
opacity: 0.1,
lock: true,
resize: false,
close: function () { }
}, false);
}
引用的库
<link href="../../Scripts/artDialog/skins/blue.css" rel="stylesheet" type="text/css" />
<script src="../../Scripts/artDialog/artDialog.source.js" type="text/javascript"></script>
<script src="../../Scripts/artDialog/iframeTools.source.js" type="text/javascript"></script>
<script src="../../Scripts/FunctionJS.js" type="text/javascript"></script>