JQSlickWrap不适用于现代浏览器

时间:2010-10-14 07:16:48

标签: jquery

我正在尝试使用JQSlickWrap,我需要所有.js文件和Jquery文件。但它仍然不适用于像Chrome这样的现代浏览器。我在这个浏览器中测试了很多画布示例和其他html5示例,它们都运行良好。

编辑:添加了我的代码

<head>
    <title>jQSlickWrap Demo 3</title>
    <script src="./jquery-1.3.2.min.js" type="text/javascript" charset="UTF-8"></script>
    <script src="./jquery.slickwrap.min.js" type="text/javascript" charset="UTF-8"></script>

    <style type="text/css">
        .wrapReady {
            float: left;
            padding: 30px;
        }
    </style>
    <script type="text/javascript" charset="UTF-8">
        $(document).ready(function(){
            $('.wrapReady').slickWrap({
                bgColor: {              // use red as the background color
                    r: 255,
                    g: 0,
                    b: 0,
                    a: 255
                },
                cutoff: 10,             // let there be a tolerance of 10
                resolution: 15,         // create divs of height 15
                bloomPadding: false     // let's not use bloom
            });
        });
    </script>
</head>
<body>
    <img src="me.jpg" class="wrapReady" />

    <p>Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..Lots of text goes here..
    Lots of text goes here..Lots of text goes here..Lots of text goes here..</p>
</body>

1 个答案:

答案 0 :(得分:0)

我没有看到jQuery库在任何地方加载。尝试在光滑的包装脚本之前加载它。这应该可以解决你的问题。