【Vegas原创】使用GreyBox组件实现ajax弹出式窗口效果
<script type="text/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" />
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" />
<a href="http://sc20-vegas/webparts" title="添加标签页" rel="gb_page[500, 500]">添加标签页</a>
http://orangoo.com/labs/greybox/ 将下载下来的greybox目录放至专案下面
var GB_ROOT_DIR="./greybox/";这个是指向你本机的greybox的相对目录。在本机测试使用时,如按网站的demo格式:
var GB_ROOT_DIR = "http://mydomain.com/greybox/";
则会在弹出窗口中显示目标链接时报错。
http://orangoo.com/labs/greybox/normal_usage.html 这边有详细的各种使用方法,此文不再例举。
喜欢请赞赏一下啦^_^