Insérer un code html avec javascript

  • Bonjour, je souhaite insérer le code ci-dessous dans un widget sur la barre latérale de mon blog. Comment faire svp ? je coince… merci d’avance.

    <script type="text/javascript">
            width='80%';          //the width of the embedded map in pixels or percentage
            height=400;         //the height of the embedded map in pixels or percentage
            border=1;           //the width of border around the map. Zero means no border
            notation=false;     //true or false to display or not the vessel icons and options at the left
            shownames=false;    //true or false to dispaly ship names on the map
            latitude=37.4460;   //the latitude of the center of the map in decimal degrees
            longitude=24.9467;  //the longitude of the center of the map in decimal degrees
            zoom=9;             //the zoom level of the map. Use values between 2 and 17
            maptype=3;          //use 0 for Normal map, 1 for Satellite, 2 for Hybrid, 3 for Terrain
            trackvessel=0;      //the MMSI of the vessel to track, if within the range of the system
            fleet='';           //the registered email address of a user-defined fleet to display
            remember=false;     //true or false to remember or not the last position of the map
    </script>
    <script type="text/javascript" src="http://www.marinetraffic.com/ais/embed.js"></script>

    L’adresse du blog concerné est (visible uniquement pour les utilisateurs connectés).

  • Bonjour,
    L’insertion de java script pur est interdit sur la plateforme pour raison de sécurité. Marinetraffic.com ne semble pas proposer d’alternative. Et google m’a conduite, au mieux, sur cet exemple qui laisse le problème entier. À moins que vous n’ayez un autre code à proposer, je crains qu’il faille renoncer. Navrée. Bonne journée malgré tout.

  • Le sujet ‘Insérer un code html avec javascript’ est fermé aux nouvelles réponses.