我无法在我的网站上添加星级评分

时间:2014-08-22 17:10:00

标签: javascript jquery ajax

我正在尝试在我的测试博客上添加一些星级评分小部件,但似乎没有任何效果。我不知道我做错了什么。这是我的测试博客网址http://testvevvvv.blogspot.ro/2014/08/5.html以及我实施的代码http://jsfiddle.net/dyyehzwc/

<div class="rw-ui-container"></div>
<script type="text/javascript">(function(d, t, e, m){
        // Async Rating-Widget initialization.
    window.RW_Async_Init = function(){

        RW.init({
            huid: "187426",
            uid: "a36ac16a3021fa3c0fd85f05e757671b",
            source: "website",
            options: {
                "size": "medium",
                "style": "oxygen"
            } 
        });
        RW.render();
    };
        // Append Rating-Widget JavaScript library.
    var rw, s = d.getElementsByTagName(e)[0], id = "rw-js",
        l = d.location, ck = "Y" + t.getFullYear() + 
        "M" + t.getMonth() + "D" + t.getDate(), p = l.protocol,
        f = ((l.search.indexOf("DBG=") > -1) ? "" : ".min"),
        a = ("https:" == p ? "secure." + m + "js/" : "js." + m);
    if (d.getElementById(id)) return;              
    rw = d.createElement(e);
    rw.id = id; rw.async = true; rw.type = "text/javascript";
    rw.src = p + "//" + a + "external" + f + ".js?ck=" + ck;
    s.parentNode.insertBefore(rw, s);
    }(document, new Date(), "script", "rating-widget.com/"));</script>

0 个答案:

没有答案