添加指向featherlight.js弹出窗口的链接

时间:2015-09-20 09:37:00

标签: javascript jquery html featherlight.js

当有人访问我的网站时会出现弹出窗口。我使用过featherlight.js。我已经在HTML中添加了弹出窗口的链接,当我点击它时,它不起作用。我认为它与featherlight.js有关。

这是HTML代码

<div class="lightbox" id="lightbox">
    <p>Hello: <img align="right" src="img/IE-flag.gif"></p>
    <br>
    <p>Register now to qualify.</p>
    <br>
    <a href="www.google.com" target="_blank">click me</a>
    <br>
    <center><p style="font-size:10px">No thanks</p>
    <script src="js/featherlight.js" type="text/javascript" charset="utf-8"></script>
    <script type="text/javascript">
        $.featherlight('#lightbox', {
            closeOnClick: 'anywhere'
        });
    </script>

0 个答案:

没有答案