Přidat otázku mezi oblíbenéZasílat nové odpovědi e-mailem Proč se mi nezobrazí tento javascript?

Stáhnula jsem si z rating-widget.com tento script. Když ho ale vložím do stránky před tag </body> tak se mi nic nezobrazí. Pomůžete mi prosím? Proč to nefunguje? Funguje Vám to? Mě se ve stránce neukáže nic. Děkuji mnohokrát předem, neumím anglicky a je to škoda.

<!-- Add this element exactly where you want the Rating-Widget to appear -->
<div class="rw-ui-container rw-urid-1"></div>

<!--
      You can add more Rating-Widgets in your site,
      just pick some new rating-widget-unique-id (must be positive integer).
      For example (rating-widget-unique-id = 38):
      <div class="rw-ui-container rw-urid-38"></div>
-->

<!-- Add this javascript code immediately before the </body> tag -->
<div class="rw-js-container">
    <script type="text/javascript">
        // Async Rating-Widget initialization.
        function RW_Async_Init(){
            RW.init("your-unique-user-key",
            {
                size: "large",
                type: "nero"
            });
            RW.render();
        }

        // Append Rating-Widget JavaScript library.
        if (typeof(RW) == "undefined"){
            (function(){
                var rw = document.createElement("script");
                rw.type = "text/javascript"; rw.async = true;
                rw.src = "http://rating-widget.com/js/external.min.php?t=js";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(rw, s);
            })();
        }

    </script>
</div>


Změna kategorie, původně: Ostatní
Pokud posíláte nějaký kód, buď použijte formátovací tlačítko na kód či použijte externí službu.
(martin.developer) (martin.developer)

Předmět Autor Datum
Pošlete stránku, kde je tento JS aplikován. Pokud nejsou veřejné, tak pošlete výpis JS konzole prohl…
martin.developer 14.09.2011 22:05
martin.developer
Omlouvám se ten kód je takto: <!-- Add this element exactly where you want the Rating-Widget to app…
Žofinka pindulka 14.09.2011 22:10
Žofinka pindulka
Je to zřejmě chyba toho poskytovatele. Protože tento JS vytvoří další script element a jako zdroj na… poslední
martin.developer 14.09.2011 22:20
martin.developer

Omlouvám se ten kód je takto:

<!-- Add this element exactly where you want the Rating-Widget to appear -->
<div class="rw-ui-container rw-urid-1"></div>

<!--
      You can add more Rating-Widgets in your site,
      just pick some new rating-widget-unique-id (must be positive integer).
      For example (rating-widget-unique-id = 38):
      <div class="rw-ui-container rw-urid-38"></div>
-->

<!-- Add this javascript code immediately before the </body> tag -->
<div class="rw-js-container">
    <script type="text/javascript">
        // Async Rating-Widget initialization.
        function RW_Async_Init(){
            RW.init("E8570F0E705D760CC485C081EEADA810",
            {
                size: "large",
                type: "nero"
            });
            RW.render();
        }

        // Append Rating-Widget JavaScript library.
        if (typeof(RW) == "undefined"){
            (function(){
                var rw = document.createElement("script");
                rw.type = "text/javascript"; rw.async = true;
                rw.src = "http://rating-widget.com/js/external.min.php?t=js";
                var s = document.getElementsByTagName("script")[0];
                s.parentNode.insertBefore(rw, s);
            })();
        }

    </script>
</div>

v tom prvním není moje ID.
Já ho nemám nikde na webu , zatím to skouším v pc. Nic se mi ale neukáže.

Zpět do poradny Odpovědět na původní otázku Nahoru