asp.net greybox的使用方法
1. 在http://orangoo.com/labs/GreyBox/下载GreyBox
2. 在<header></header>中加上
<script type="text/javascript" language="javascript">
var GB_ROOT_DIR = "./greybox/";
</script>
<script type="text/javascript" src="greybox/AJS.js"></script>
<script type="text/javascript" src="greybox/AJS_fx.js"></script>
<script type="text/javascript" src="greybox/gb_scripts.js"></script>
<link href="greybox/gb_styles.css" rel="stylesheet" type="text/css" media="all" />
3. 按钮事件调用方法:
<button id="Button1" style="cursor: hand;" onclick="SelectBox()" >弹出greybox</button>
<script type="text/javascript" language="javascript">
function SelectBox(){ return GB_showCenter('Document Select Dialog','../DocumentSelect.aspx',475,750);}
</script>
4. 链接调用方法:
<a href='ManagementDlg.aspx' title="Select Dialog" rel="gb_page_center[650, 425]" >View</a>
5. 关闭方法
<script type="text/javascript" language="javascript">
window.parent.parent.GB_hide();
</script>
6. 刷新父页面方法
<script type="text/javascript" language="javascript">
top.window.document.forms(0).submit();
window.parent.parent.GB_hide();
</script>