实在看不出来,写的JS那里错了???JS脚本:
<script type="text/javascript">
        function OpenWin(obj) {
            var link = obj.srclink;
            var height = parseInt(GetHeight() - 30 - 250) / 2;
            var width = parseInt(GetWidth() - 10 - 350) / 2;
            window.open(link, "", "height=250, width=350, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no, left=" + width + " , top=" + height);
问题:这一行总是提示参数无效。是“link”这个参数无效吗?
可是“srclink="<%# "Advanced.aspx" %>"”已经设置了啊???
        }
        function GetHeight() {
            return window.screen.height;
        }        function GetWidth() {
            return window.screen.width;
        }
    </script>使用JS脚本:
<a href="#" onclick="OpenWin(this)" srclink="<%# "Advanced.aspx" %>"><font style=" color:#ffffff;" >高级</font></a>